2022-06-13 06:42 PM
I am trying to find the parameter that represents the drawing WIDTH in GDL...
I know it exists because Graphisoft's titles take advantage of it and it is clearly shown in every drawing in the layout in the SETTINGS dialog..
In addition, I have my own title that uses the GRID of the layout (as determined by the drawing)... But I wen to the current GDL MANUAL and did a search and even that doesn't appear...
AC_GridRect[1]
If someone would be so kind as to point me in the correct direction, I'd appreciate it!
Solved! Go to Solution.
2022-06-13 08:28 PM
@vfrontiers See if any of the following helps. I snipped it from the "Built-in Drawing Tile.gsm".
If the object subtype is Drawing Title then you may find a Parameter AC_DrawingRect containing an array of values you can work with to determine the width. Uncharted territory for me so hope it is pointing you in the right direction...
! ==============================================================================
! Bounding Box Calculations
! ==============================================================================
if AC_titleFitMode = TITLEFITMODE_DRAWING then ! Fit to Drawing Rect
titlePosX = AC_DrawingRect[1]
titlePosY = AC_DrawingRect[2]
titleAlpha = AC_DrawingRect[5]
xo = AC_DrawingRect[1]: yo = AC_DrawingRect[2]
x1 = AC_DrawingRect[3]: y1 = AC_DrawingRect[4]
x2 = x1 + cos(titleAlpha - 90): y2 = y1 + sin(titleAlpha - 90)
endif
2022-06-13 08:28 PM
@vfrontiers See if any of the following helps. I snipped it from the "Built-in Drawing Tile.gsm".
If the object subtype is Drawing Title then you may find a Parameter AC_DrawingRect containing an array of values you can work with to determine the width. Uncharted territory for me so hope it is pointing you in the right direction...
! ==============================================================================
! Bounding Box Calculations
! ==============================================================================
if AC_titleFitMode = TITLEFITMODE_DRAWING then ! Fit to Drawing Rect
titlePosX = AC_DrawingRect[1]
titlePosY = AC_DrawingRect[2]
titleAlpha = AC_DrawingRect[5]
xo = AC_DrawingRect[1]: yo = AC_DrawingRect[2]
x1 = AC_DrawingRect[3]: y1 = AC_DrawingRect[4]
x2 = x1 + cos(titleAlpha - 90): y2 = y1 + sin(titleAlpha - 90)
endif