BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

GDL
About building parametric objects with GDL.
SOLVED!

How to use Autotext in IF statement condition?

LeeJaeYoung
Virtuoso
LeeJaeYoung_0-1686385523786.png
aa = "<NOTES>" 

 

if  aa = "222" then
      text2 0,0, 11111
endif 
 

This if statement doesn't work.

The intent is to lock the GDL.
They say they want to prove that they belong to our company by putting in the company name and phone number and making it not work if it is different from this.

If not, I would like it to be.

 
 
 

As I tested, the value is not changed, but only calculated with "<NOTES>". The number of characters is 7, and the values of strsub 1 and 2 are "<N".

It seems that there is a way to get the value from request etc.
Is this an unsolvable problem?
Should I add it to my wishlist?

AC27 on window 11
11 REPLIES 11
Solution
Joachim Suehlo
Advisor

Have you seen this Website: https://gdl.graphisoft.com/tips-and-tricks/display-properties-with-labels
There is shown how to work with properties. Is that what you are looking for?

Joachim Suehlo . AC12-27 . MAC OSX 13.5 . WIN11
GDL object creation: b-prisma.de

Aaaaah yes that's what I am looking for. Thank you so much! 

Learn and get certified!

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!