We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

GDL
About building parametric objects with GDL.

Can i get the view name?

LeeJaeYoung
Virtuoso

LeeJaeYoung_0-1655718896932.png

Can i get the view name?

 

n = REQUEST ("Home_story", "", index, story_name)

story_name

LeeJaeYoung_1-1655719046261.png

I want get view name ?

 

I am trying to read the name of the floor plan in the view and use the IF statement.

<DrawingName> 

 

2D Script

IF "<DrawingName>" = "3층 평면도" Then

TEXT2 0,0,"OK"

ENDIF

 

But This code doesn't work.

 

 

 

 

 

AC27 on window 11
2 REPLIES 2
Peter Baksa
Graphisoft
Graphisoft

Hi,

 

autotext contents aren't visible to GDL.

In a drawing title object you can use these parameters to get some information.

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest

I want to read the name of the view.

Since this is a function that is only visible in the title, it cannot be used in an if statement.

LeeJaeYoung_0-1655994952272.png

 

AC27 on window 11