GDL
About building parametric objects with GDL.

About the label of the opening

Nami Furuta
Booster

Create the opening label GDL yourself.


I want to put  「X」 mark on the opening at the same time as placing the opening label.
For that, I want to get the coordinates of the opening, but how do I get the coordinates of the opening from the opening label? please tell me.

 

I want to use "OPENING_SYMBOL_GEOMETRY" in a GDL2D script, but I don't know how to use it.

5 REPLIES 5
Barry Kelly
Moderator

Seems to be a similar post going on here ...

 

https://community.graphisoft.com/t5/Developer-forum/Opening-Symbol-as-Label/td-p/323785

 

Maybe this will help.

 

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
Nami Furuta
Booster

Thank you Barry.

 

I coded "OPENING_SYMBOL_GEOMETRY.boundingBox2D" and "OPENING_SYMBOL_GEOMETRY.polygon2D.contour" in the way I was taught, but when I save the GDL I get the following error message:

There is a 2D script error. If you use this library part in a project, it will be displayed as its 2D symbol.

 

Do you know what the cause is?


@Nami Furuta wrote:

Do you know what the cause is?


No, sorry.

I haven't looked into any of this.

 

Is there any reason why you are not using the built-in 2D symbol of the opening to place the 'X' ?

You can still add a separate label if you need more information, but then the opening symbol is not dependent on the label.

 

Or are you trying to add the 'X' in elevation?

 

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

I don't use the 2D symbol GDL because I want to put  X mark at the same time as placing the opening label.

 

I want to put  X mark on both the floor plan and the elevation.

 

 

Nami.

 

 

 

Hi,

 

OPENING_SYMBOL_GEOMETRY is not set in labels.

And opening symbols can't draw text, it can't be done in the same GDL object.

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