Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Why can't I change the X, Y dimensions of 2D Objects?

Anonymous
Not applicable

2D Object Question from a GDL Novice...

When I create an object by copying AC elements (lines, arcs, fills) and pasting them into the 2D symbol window, I end up with a library part in which the x and y dimensions are variable based on what I enter in the object settings dialog box. Bottom line - I can change the size of the object but can't change anything else.

When I take the same object, create new parameters, and write a simple 2D script using the Fragment2 command to allow me to select fill types, pen settings, etc. in the object settings dialog box, I am no longer able to change the size of the object. No matter what dimensions are entered in the object settings - the size is fixed. Bottom line - I can edit fill and line types and colors but I can't change the size.

What am I missing? It seems to me I should be able to have the best of both worlds here. Any help would be greatly appreciated.
3 REPLIES 3
TomWaltz
Participant
Michael

the problem is in the behaviour native to Archicad. If there is no 2D script at all, the 2D symbol is treated as its own stretchable object.

If you DO have a 2D script, you need to use a MUL2 statement to give the script the ability to stretch the object FRAGMENT you have created. Once you start scripting, you have to define every single action you want the object to take.

In this instance, you want to make your MUL2 statement relate to the A & B values in the object settings, and the size of your 2D symbol. To do this, you will need to know the actual X and Y extrema of your object.

The statement will be:
MUL2   A/<x-extrema>,  B/<y-extrema>
Hope that helps!
Tom Waltz
Anonymous
Not applicable
THAT DID IT!

Thanks for your help Tom!
TomWaltz
Participant
always glad to help someone else from this part of the country!
Tom Waltz