GDL
About building parametric objects with GDL.
SOLVED!

Property manager autotext in GDL

Domagoj Lukinic
Booster

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

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Peter Baksa
Graphisoft
Graphisoft

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.

 

 

Péter Baksa
Software Engineer, Library
Graphisoft SE, Budapest

View solution in original post

1 REPLY 1
Solution
Peter Baksa
Graphisoft
Graphisoft

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.

 

 

Péter Baksa
Software Engineer, Library
Graphisoft SE, Budapest

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!