automatic A and B values
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-03-28 09:24 PM
2020-03-28
09:24 PM
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

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-03-29 10:02 AM
2020-03-29
10:02 AM
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...
Barry.
Maybe something like …
in the 2D script...
IF layer1=1 THEN FRAGMENT2 1,0 ENDIF IF layer1=21 THEN FRAGMENT2 2,0 ENDIFIn 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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-04-01 03:01 PM
2020-04-01
03:01 PM
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
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