cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Document & Visualize forum

Layout info in GDL

vfrontiers
Booster

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!

 

 

 

Duane
Visual Frontiers
AC22 6021:|: AC24 4007:|: Enscape3:|:TwinMotion
DellXPS 4.7ghz i7:|: 8gb GPU 1070ti
1 ACCEPTED SOLUTION

Solution
DGSketcher
Rockstar

@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

 

Apple iMac macOS Monterey / AC26UKI (most recent builds)

View solution in original post

1 REPLY 1

Solution
DGSketcher
Rockstar

@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

 

Apple iMac macOS Monterey / AC26UKI (most recent builds)

Start a new conversation!

Labels

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!