We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-11-19 06:52 PM - last edited on 2024-09-26 01:45 PM by Doreena Deng
Can’t the building name be used in the title in the project info?
text2 0,0,"<PROJECTNAME>" is possible.
"<BUILDINGNAME>","<BUILDING NAME>"... did not work.
2023-11-20 04:15 AM - edited 2023-11-20 04:15 AM
Try ... "<BUILDING_NAME>"
Just create some text in the plan using the autotext from project info.
Then save that text as an object, open the GDL script and you will see the autotext commands used.
Barry.
2023-11-20 11:22 AM
text2 _endX - (_TWidth / 2.0) , 0, "<BUILDING_NAME>" !!! + "<Dong Name> " + "<LAYOUTNAME>" !!! "<DRAWINGNAME>"
2023-11-22 12:46 AM
This may not make any difference, but what happens if you use the code without the quotation marks? Does it work then? So, instead of:
text2 0, 0, "<BUILDING_NAME>"
try this:
text2 0, 0, <BUILDING_NAME>
2023-11-22 12:52 AM
I just checked the GDL Reference Guide and I found this command. Maybe this is the solution:
AUTOTEXT_LIST
n = REQUEST("AUTOTEXT_LIST", "", autoTextListArray)
Returns one AUTOTEXT array of the autotexts used in the project with the following triplets ["ID", "Category", "Name"]. Expression returns
0 and contains dummy return values (empty string or 0) if used in parameter script, causing additional warning. Can be used only in UI script. The ID is stored
in the parameter via the UI_CUSTOM_POPUP... commands.
Contains all autotexts from Project Info and Autotext Dialog (Text tool - Insert Autotext).
Compatibility: introduced in Archicad 20.
Example:
DIM autoTextListArray[]
n = REQUEST ("AUTOTEXT_LIST", "", autoTextListArray)
! autoTextListArray = [ID1, CategoryName1, TextName1,
! ID2, CategoryName2, TextName2,
! ...
! IDn, CategoryNamen, TextNamen]
It is found on Page 531 of
https://help.graphisoft.com/AC/27/INT/GDL.pdf