We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Title size Parameters?

TomWaltz
Participant
Has anyone figured out how to get the widht/height of a placed Drawing for use in a title object?

How about any "request" information or built-in parameters? There does not seem to be anything in the GDL Dev Kit or the Reference Manual about it.
Tom Waltz
8 REPLIES 8
Frank Beister
Moderator
Create a new object and change to subtype "title block"/"drawing title" (? "Zeichnungstitel" in GER). You will see some optinal parameters (blue) wich will contain the informations you are looking for. (I guess 😉 )
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
TomWaltz
Participant
I was hoping to find a little more information the the rectangle arrays. I'll have to spend some quality time with them later this week when I have a few less fires burning.
Tom Waltz
Frank Beister
Moderator
Maybe this will help you:
IF  not(AC_TextFont="") THEN

	Zeichensatz = AC_TextFont
	sh = AC_TextSize
	! HIDEPARAMETER "Zeichensatz","sh"

	ENDIF


!+++ DEFINITIONS

start = 500
GOSUB 100 !=ende

DEFINE STYLE "Links" zeichensatz, sh,3,1
DEFINE STYLE "Rechts" zeichensatz, sh,1,0

s=-sh/1000*GLOB_SCALE*1.5
t=-s/2



!+++ PRINT

FOR unterprogramm=start TO ende STEP 5
	GOSUB unterprogramm
	NEXT unterprogramm

END


!+++ SUBROUTINES

500:
STYLE "Links"  : TEXT2 0,f*s,"AC_ManualPosition: "
STYLE "Rechts" : TEXT2 0,f*s,AC_ManualPosition
f=f+1
RETURN

505:
STYLE "Links"  : TEXT2 0,f*s,"AC_DrawingGUID: "
STYLE "Rechts" : TEXT2 0,f*s,AC_DrawingGUID
f=f+1
RETURN

510:
STYLE "Links"  : TEXT2 0,f*s,"AC_TitleFitMode: "
STYLE "Rechts" : TEXT2 0,f*s,AC_TitleFitMode
f=f+1
RETURN

515:
STYLE "Links"  : TEXT2 0,f*s,"AC_TextFont: "
STYLE "Rechts" : TEXT2 0,f*s,AC_TextFont
f=f+1
RETURN

520:
STYLE "Links"  : TEXT2 0,f*s,"AC_TextSize: "
STYLE "Rechts" : TEXT2 0,f*s,AC_TextSize
f=f+1
RETURN

525:
STYLE "Links"  : TEXT2 0,f*s,"AC_TextPen: "
STYLE "Rechts" : TEXT2 0,f*s,AC_TextPen
f=f+1
RETURN

530:
STYLE "Links"  : TEXT2 0,f*s,"AC_TextStyle: "
STYLE "Rechts" : TEXT2 0,f*s,AC_TextStyle
f=f+1
RETURN

535:
STYLE "Links"  : TEXT2 0,f*s,"AC_UseUniformTextFormat: "
STYLE "Rechts" : TEXT2 0,f*s,AC_UseUniformTextFormat
f=f+1
RETURN

540:
STYLE "Links"  : TEXT2 0,f*s,"AC_PreviewType: "
STYLE "Rechts" : TEXT2 0,f*s,AC_PreviewType
f=f+1
RETURN

545:
STYLE "Links"  : TEXT2 0,f*s,"AC_ConvertedTitle: "
STYLE "Rechts" : TEXT2 0,f*s,AC_ConvertedTitle
f=f+1
RETURN

550:
STYLE "Links"  : TEXT2 0,f*s,"AC_LayoutRect[1]: "
STYLE "Rechts" : TEXT2 0,f*s,AC_LayoutRect[1]
f=f+1
RETURN

555:
STYLE "Links"  : TEXT2 0,f*s,"AC_LayoutRect[2]: "
STYLE "Rechts" : TEXT2 0,f*s,AC_LayoutRect[2]
f=f+1
RETURN

560:
STYLE "Links"  : TEXT2 0,f*s,"AC_LayoutRect[3]: "
STYLE "Rechts" : TEXT2 0,f*s,AC_LayoutRect[3]
f=f+1
RETURN

565:
STYLE "Links"  : TEXT2 0,f*s,"AC_LayoutRect[4]: "
STYLE "Rechts" : TEXT2 0,f*s,AC_LayoutRect[4]
f=f+1
RETURN

570:
STYLE "Links"  : TEXT2 0,f*s,"AC_LayoutRect[5]: "
STYLE "Rechts" : TEXT2 0,f*s,AC_LayoutRect[5]
f=f+1
RETURN

575:
STYLE "Links"  : TEXT2 0,f*s,"AC_GridRect[1]: "
STYLE "Rechts" : TEXT2 0,f*s,AC_GridRect[1]
f=f+1
RETURN

580:
STYLE "Links"  : TEXT2 0,f*s,"AC_GridRect[2]: "
STYLE "Rechts" : TEXT2 0,f*s,AC_GridRect[2]
f=f+1
RETURN

585:
STYLE "Links"  : TEXT2 0,f*s,"AC_GridRect[3]: "
STYLE "Rechts" : TEXT2 0,f*s,AC_GridRect[3]
f=f+1
RETURN

590:
STYLE "Links"  : TEXT2 0,f*s,"AC_GridRect[4]: "
STYLE "Rechts" : TEXT2 0,f*s,AC_GridRect[4]
f=f+1
RETURN

595:
STYLE "Links"  : TEXT2 0,f*s,"AC_GridRect[5]: "
STYLE "Rechts" : TEXT2 0,f*s,AC_GridRect[5]
f=f+1
RETURN

600:
STYLE "Links"  : TEXT2 0,f*s,"AC_DrawingRect[1]: "
STYLE "Rechts" : TEXT2 0,f*s,AC_DrawingRect[1]
f=f+1
RETURN

605:
STYLE "Links"  : TEXT2 0,f*s,"AC_DrawingRect[2]: "
STYLE "Rechts" : TEXT2 0,f*s,AC_DrawingRect[2]
f=f+1
RETURN

610:
STYLE "Links"  : TEXT2 0,f*s,"AC_DrawingRect[3]: "
STYLE "Rechts" : TEXT2 0,f*s,AC_DrawingRect[3]
f=f+1
RETURN

615:
STYLE "Links"  : TEXT2 0,f*s,"AC_DrawingRect[4]: "
STYLE "Rechts" : TEXT2 0,f*s,AC_DrawingRect[4]
f=f+1
RETURN

620:
STYLE "Links"  : TEXT2 0,f*s,"AC_DrawingRect[5]: "
STYLE "Rechts" : TEXT2 0,f*s,AC_DrawingRect[5]
f=f+1
RETURN

!+++ end of parameters
100:
ende = 620
RETURN
2D script is its right place. I try to figure it out, too.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
TomWaltz
Participant
My first thought was that the DrawingRect was the size of the rectangle, but it seems to be a distance from the origin of the marker to the extremes of the drawing size, so that [1] and [3] add up to the total X dimension and [2] and [4] add up to the total Y dimension.

[5] does not seem to do anything.

Is that what you have found as well?
Tom Waltz
Frank Beister
Moderator
[5] is the drawing angle. But I do not find the relation to the origin. As strange as the label positioning.
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm
TomWaltz
Participant
F. wrote:
[5] is the drawing angle. But I do not find the relation to the origin. As strange as the label positioning.
Not surprisingly, it's in the same goofy logic as the labels, though.\

Maybe GS would be kind enough to clue us in some day?
Tom Waltz
LiHigh
Newcomer
I wish GS is doing these instead of me!

Origin = bottom left corner of the Drawing.

Drawing Width = AC_DrawingRect[3]
Drawing Height = AC_DrawingRect[4]

Layout Width = AC_LayoutRect[3]-AC_LayoutRect[1]
Layout Height = AC_LayoutRect[4]-AC_LayoutRect[2]

Cell Width = AC_GridRect[3]-AC_GridRect[1]
Cell Height = AC_GridRect[4]-AC_GridRect[2]
Howard Phua

Win 10, Archicad 19 INT
Frank Beister
Moderator
The reference for the three rect parameters is zero-point of the object. Anywhere, where you position it on the layout screen. The orientation of the title block give also the rotation of the coordinate system for the three parameter arrays.
Because it is as the label coordinates, it is nothing new. 😉

The fifth parameter is, because there is no way to rotate the layout or the grid, every time a zero (angle).

To get the right positioning "in space" the parameters SYMB_POS_X and SYMB_POS_Y work too.

But some other of these optional parameters seem not to work:

AC_ConvertedTitle
AC_PreviewType
AC_TitleFitMode
bim author since 1994 | bim manager since 2018 | author of selfGDL.de | openGDL | skewed archicad user hall of fame | author of bim-all-doors.gsm