automatic A and B values

Home Forums Problems and solutions in GDL Object design automatic A and B values

This topic contains 1 reply, has 2 voices, and was last updated by  Barry Kelly 3 months, 2 weeks ago.

  • Author
    Posts
  • #18661

    Luis cardoso
    Participant

    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

    Attachments:
  • #18663

    Barry Kelly
    Participant

    Answered over on Archicad-talk.

    https://archicad-talk.graphisoft.com/viewtopic.php?f=6&t=69433

    It is probably better to post in one forum or the other, and then if you get no reply try the other forum.
    It gets a bit tricky when the same conversation is happening on two different forums.

    Barry.

    Versions 6.5 to 22
    Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
    Dell Precision M6800 - i7 4700MQ @ 2.40GHz, 16GB RAM, AMD FirePro M6100 (2GB), Windows 7 64bit

You must be logged in to reply to this topic.