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
2 ACCEPTED SOLUTIONS

Accepted Solutions
Solution
Jochen Suehlo
Moderator

You cannot work with Autotext in Operations in GDL. You only can display autotext.
Attached an object which requests all autotexts.

https://download.b-prisma.de/objekte/Autotext-Selector.gsm 

Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de

View solution in original post

Solution
Jochen Suehlo
Moderator

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?

Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de

View solution in original post

11 REPLIES 11
LeeJaeYoung
Virtuoso
DIM autoTextListArray[]
n = REQUEST ("AUTOTEXT_LIST", "", autoTextListArray)

 Looking at which gsm file can I create this interface?

 

 

DIM autoTextListArray[]
n = REQUEST ("AUTOTEXT_LIST", "", autoTextListArray)

ui_style 0, 1
ui_outfield "Select Property", 10, 10, 100, 20
ui_Style 0, 0 


ui_style 0, 1
ui_outfield "Select Property", 10, 10, 100, 20
ui_Style 0, 0 
ui_custom_popup_infield "myProperty", 
70, 30, 370, 20, ! X Position, Y Position, Width, Height
1,
3, 
1,  
_displayName,
autoTextListArray    !! This is error
 
LeeJaeYoung_1-1686394482041.png
AC27 on window 11
runxel
Legend

GDL sadly can't "see" Autotext...

Lucas Becker | AC 27 on Mac | Graphisoft Insider Panelist | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text | My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
Sorry, but how can I see this code?
I would like to know how to display a list in an interface.
 
ui_style 0, 1
ui_outfield "Select Property", 10, 10, 100, 20
ui_Style 0, 0 
ui_custom_popup_infield "myProperty", 
70, 30, 370, 20, ! X Position, Y Position, Width, Height
1,
3, 
1,  
_displayName,
autoTextListArray
AC27 on window 11
Solution
Jochen Suehlo
Moderator

You cannot work with Autotext in Operations in GDL. You only can display autotext.
Attached an object which requests all autotexts.

https://download.b-prisma.de/objekte/Autotext-Selector.gsm 

Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de

Hi there,  is there a way that I can see all listed autotexts?

 

 

DomagojLukinic_0-1702890591135.png

 

 


@Domagoj Lukinic wrote:

Hi there,  is there a way that I can see all listed audiotexts autotexts?


I am not quite sure what you mean.

There is no list that you can print out if that is what you want.

Just expand the list you show in your image and you will see them all.

Better still, just start typing something in the search at the top to see what might be applicable for what you need.

 

Barry.

One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11

No no no, I was asking is there a GDL object like Joachim Suehlo made that has a dropdown menu like that one that has listing of all autotext-s like property's

Jochen Suehlo
Moderator

What do you need additionally to the object "Autotext-Selector"?

Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation: b-prisma.de

Hi there, I would need list of custom property's and general parameters... 

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!