Layout size

Viewing 2 reply threads
  • Author
    Posts
    • #4075
      shaun coomber
      Participant

      Hi

      Is it possible to request the current layout size (width and height) from a drawing title?

      Thanks
      Shaun

    • #4076
      Dominika Bobály
      Keymaster

      Hi Shaun,

      there are 3 fix named optional parameters containing data about the layout and the drawing. These are only available in the drawing title objects themselves. (not sure why do you want to request this info elsewhere?).
      AC_LayoutRect: Length – one-dimension array with 5 rows. Contains the geometry definition of the Layout´s bounding rect (measured in the Drawing Title object´s coordinate sytem)

      • AC_LayoutRect[1] lower left corner X
      • AC_LayoutRect[2] lower left corner Y
      • AC_LayoutRect[3] upper right corner X
      • AC_LayoutRect[4] upper right corner Y
      • AC_LayoutRect[5] direction angle (The bottom side´s angle of the rect. Measured in the Drawing Title object´s coordinate system. 0 <= angle > 360)

      AC_GridRect:Length – Contains the geometry definition of the Cell´s bounding rect. The structure is same as with the AC_LayoutRect.

      AC_DrawingRect:Length – Contains the geometry definition of the Drawing´s bounding rect. The structure is same as with the AC_LayoutRect.
      You can check examples for them in any of the shipped INT Drawing Title objects (Framing Title for example).
      I’m adding this topic to the “things we need to document better” pile now:).
      In the meantime, hope this info helps!

      Dominika Bobály
      Product Manager
      GRAPHISOFT SE

    • #4077
      shaun coomber
      Participant

      Perfect, thank you

Viewing 2 reply threads
  • The forum ‘Informations from the environment’ is closed to new topics and replies.