FWIW I got this official reply from GS on setting the stretchiness of titles and their position relative to the drawing:
1) how do I make the title block "stretchy" to match the width of the drawing?
It is not so simple, please see the attached sample object (Example Drawing Title.gsm). In the 2D script at "Draw Your own Drawing Title below this" comment can you write the shape of the Drawing Title.
In custom scripts you can use "titleWidth" GDL variable to set the width of the title.
This sample object demonstrates:
- alignment to a Drawing, Grid, Layout
- automatic streching to Drawing/Grid/Layout width
- setting vertical position
To get Autostrech you have to know the following GDL parameters:
- "AC_TitleFitMode" : indicates the alignment of the object (Drawing, Grid, or Layout)
- "AC_ManualPosition" indicates if the user moved the Drawing Title object manually from the drawing ("Move sub-element" editing method on the Pet palette)
- “AC_DrawingRect”, “AC_GridRect”, and “AC_LayoutRect” indicates the upper-right and upper-left corner position, of the Drawing/Grid/Layout to the Drawing, and the bounding box rotation angle of the Drawing/Grid/Layout.
Using this data the object is capable to compute the width.
2) the title blocks I create always wind up overlapping the drawing meaning the bottom of the title block aligns with the bottom of the drawing. How do I make the top of the title block line up with the bottom of the drawing?
In the 2D script you have to offset the coordinate system vertically using ADD2 GDL command. The offset amount is equal to the height of the Drawing Title.
The "Example Drawing Title" object uses "titleOffset" variable.
Cheers,
Link.