Layout size

This topic contains 2 replies, has 2 voices, and was last updated by  shaun coomber 5 months, 1 week ago.

  • 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
    Library Developer, Library Team
    GRAPHISOFT SE

  • #4077

    shaun coomber
    Participant

    Perfect, thank you

You must be logged in to reply to this topic.