We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-11-24 11:58 AM - last edited on 2024-09-26 01:45 PM by Doreena Deng
I'm trying to get the GLOB_STRUCTURE_DISPLAY value from title. What should I do?
2023-11-24 01:12 PM
What do you mean with „from title“.
2023-11-24 01:27 PM - edited 2023-11-24 01:30 PM
S is a structural drawing.
A is an architectural drawing.
I'm trying to read this function to distinguish it.
Is there a function at the top that can be read even once?
Number 1 is the drawing number entered into this layout.
In Revit it is sorted automatically.
2023-11-24 05:26 PM
Hello @LeeJaeYoung ,
GLOB_STRUCTURE_DISPLAY isn't what you're looking for. This is a global variable that hold the info on how the model is currently displayed, it is linked with this option : https://help.graphisoft.com/ac/26/int/index.htm#t=_AC26_Help%2F050_ViewsVB%2F050_ViewsVB-112.htm
2023-11-25 06:23 AM
From your picture, it seems that you want to obtain the name of the drawing or layout.
SO, you can take a look here to see if there is anything you want.
HOMEDB_INFO
n = REQUEST("HOMEDB_INFO", "", homeDBIntId, homeDBUserId, homeDBName, homeContext)
Returns in the given variables the internal ID (integer), the user ID and name (strings) of the home database (where the library part containing
this request was placed).
homeContext: the contents of homeDBIntId, homeDBUserId, homeDBName depend on the home database
1: placed on the floor plan: the story internal ID, index as a string and name
2: placed on a section: the section internal ID, reference ID and name
3: placed on a detail: the detail internal ID, reference ID and name
4: placed on a master layout: the layout internal ID, empty string and name
5: placed on a layout: the layout internal ID, number and name
For labels the returned data refers to the labeled element. The collected data can be used to uniquely identify elements in different Archicad
databases of a plan file. Causes warning if used in parameter script.