BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

"Minimal Space"

Anonymous
Not applicable
Hi! Please, anybody knows how can I change the minimal space in cabinet and objects? Thanks
10 REPLIES 10
Anonymous
Not applicable
The details depend on which object you want to change
the minimal space for. I assume you mean changing
the dimensions of the minimal space.
As an example, look at the 2D script for "Refrigerator 10".
The part of the code that starts with

1:

if gs_min_space=1 then

define fill "Platzbedarf" 68,136,17,34,68,136,17,34,
0.08*A_/100,45,1,1,0,0,0,1,1

set fill "Platzbedarf"

poly2_ 4,2+4,
0,0,0,
a,0,0,
a,-0.9,0,
0,-0.9,0

hotspot2 0,-0.9
hotspot2 a,-0.9

endif

This code draws a polygon that is as wide as the refrigerator
and is .09 meters tall. You can change this to any dimension
you want (pay attention to the sign).
The code also inserts two hotspots that are the lower corners
of the minimal space. Their "Y" values must be changed to
the new "Y" values you have written for the polygon.
Peter Devlin
Erich
Contributor
Peter,

Giuseppe asked about the minimum space for a GS cabinet object. I was going to answer, expecting to find just what you indicated in the 2D script. However when looking the in script for the Cab Base-MultiDrawer 11 cabinet object, I can't seem to find any reference in any of the scripts, other than a boolean definition for the gs_min_space parameter.

I am only just getting my feet wet in GDL so perhaps it is referenced in some manner with which I am currently unfamiliar. If you could clarify this I would surely not only help Giuseppe but also aid those of us trying to learn GDL.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Anonymous
Not applicable
In AC10 the minimal space parameters do not appear and cannot be adjusted, unless you edit the library part Peter Devlin suggests.

Fortunately in AC11 they got around to adding the parameters so you now can change the dimensions under '2d representation' on most furniture library parts.

Is this what you were after?
Anonymous
Not applicable
Erich,
I do not have AC 11 but I checked "Cab Base-MultiDrawer 10"
and the 2D script calls a Macro that apparently draws the entire
2D symbol. So the polygon for the minimal space must be
coded in the macro. You will have to open the macro to find it.
I would strongly suggest not editing any objects or macros
in the AC library but editing copies saved under a different name.
Peter Devlin
Anonymous
Not applicable

Thank you so much. I don't know much about GDL but I will try to make it works.
Thanks again
Erich
Contributor
Peter,

I assume that would be the CALL function in the 2D script. Now if I can figure out where the macro's live in AC11...

In any case thanks for the information.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
David Maudlin
Virtuoso
Erich wrote:
Now if I can figure out where the macro's live in AC11...
Erich:

If you select the name of the macro in the script, for example:
CALL "fa_counter_sink" PARAMETERS ALL
(select just the name, not the quotation marks) then go to GDL Objects > Open Object..., the selected macro will open automatically. Most of them should be in the MACROS 11 folder in the Object Library 11 folder.

HTH

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Erich
Contributor
David,

OK, where do I find GDL Objects > Open Object? I assume this is a menu item, but I don't see this anywhere. Going to my Work Environment settings and looking through all commands I don't see it either.

I am sure I am missing something obvious. Can you provide any more help?

Thanks
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Erich
Contributor
Oh, I see! If when the object is already open you select the marco as David said about then go to Libraries and Objects > Open Object AC will then open the macro.

Thanks all for the hints.
Erich

AC 19 6006 & AC 20
Mac OS 10.11.5
15" Retina MacBook Pro 2.6
27" iMac Retina 5K
Learn and get certified!

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!