2024-01-30 11:05 AM - last edited on 2024-09-26 01:22 PM by Doreena Deng
Hi all,
I know you can implement property manager autotext in gdl by adding poperty_id of autotext.
I get the ID by saving label with that autotext i a new object. I there a way to get id of autotext by not saving labels constantly?
And is there a way to use autotexts in IF conditions?
example:
if poperty_id="30" then gosub "wall 30":
if poperty_id="60" then gosub "wall 60":
if poperty_id="90" then gosub "wall 90":
P.S.
I am working on a label for fire resistance, when you put a label on a wall label geometry has to change based on the autotext.
Autotext contains duration of fire resistance like REI-30,REI-60,REI-90
Solved! Go to Solution.
2024-02-06 09:33 AM - edited 2024-02-06 09:37 AM
Hi,
GDL doesn't see the value of an autotext, so you can't use them as parameters.
You can get values of properties: https://gdl.graphisoft.com/tips-and-tricks/display-properties-with-labels
Non-built-in properties have a project-specific ID, so you can't hardcode them in the GDL script, the user has to select the property on the UI. Alternatively the code can try to match a fixed property name if localization is not an issue.
2024-02-06 09:33 AM - edited 2024-02-06 09:37 AM
Hi,
GDL doesn't see the value of an autotext, so you can't use them as parameters.
You can get values of properties: https://gdl.graphisoft.com/tips-and-tricks/display-properties-with-labels
Non-built-in properties have a project-specific ID, so you can't hardcode them in the GDL script, the user has to select the property on the UI. Alternatively the code can try to match a fixed property name if localization is not an issue.