cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…

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

automatic A and B values

Anonymous
Not applicable
Hey guys,

I draw a lot in the 2d symbol putting things in different layers and using code like

IF layer1=1 THEN
FRAGMENT2 1,0
ENDIF

for every layer so I can turn things on and off.

The problem is the values of A and B don’t adjust automatically. I activated the “FIT size to 2D symbol” and the “create a bounding box”(compatibility options).

in layer 1 there is a box of 100 X 200
in layer 2 there is a box of 300 X 800

Archicad makes a perfect bounding box depending on the layer but the values of A and B are entire layers limits so they end up being always A=300 B=800.

Any code that i can make the A and B values= bounding box?

Thanks in advance
Luis
2 REPLIES 2
Barry Kelly
Moderator
As well as changing the fragment for each different layer, you will also need ti rest the A & B values.

Maybe something like …

in the 2D script...
IF layer1=1 THEN
FRAGMENT2 1,0
ENDIF

IF layer1=21 THEN
FRAGMENT2 2,0
ENDIF
In the parameter script …
IF layer1=1 THEN
A= 0.100
B=0.-200
PARAMETERS A=A, B=B
ENDIF

IF layer1=21 THEN
A= 0.300
B=0.-800
PARAMETERS A=A, B=B
ENDIF


Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
Anonymous
Not applicable
Hi Barry,

Thanks a lot for replying.

Ok, I though there was a way the program would do it automatically. ok then i will do it as you say.

Thanks

Luis