cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Stanislav_S
Contributor

Creating elements from GDL code

Is it possible to create Arhicad elements (polyline, grid, hatching, wall, beam, hole, etc.) directly from the GDL script code? To access or change their properties?

1 Solution

Accepted Solutions
Barry Kelly
Moderator

GDL objects can not talk to each other directly.

They can communicate through external text files - but I would not call it a good solution - you have to force one object to write to a text file and another to read from it.

It is not an automatic process.

 

In GDL one object can CALL and use another object - but they are not separate instances of the object placed independently in a file.

It basically becomes one object.

 

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

Go to post

5 Replies 5
Barry Kelly
Moderator

GDL can only create objects (which includes doors, windows, openings (holes?)), and they are controlled via the door, window and opening tool settings (they are special subtypes of objects and have their own tool).

 

GDL can mimic other elements such as polylines, walls, beams, etc., but they can not be controlled with the tool settings for those elements.

Only through object parameters.

 

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
Stanislav_S
Contributor

The opening object somehow gets a dependency on the WALL object on which it is installed. Is it possible to use similar functions to create a similar binding to the object for newly created objects. I would call it a point of contact. It would be possible to create objects that adapt to the parent object with which the connection is established

Stanislav_S
Contributor

And another question: Is it possible only by means of GDL without writing Addon's to create a parent object that receives data about changes in child objects? And able to change the properties of child objects without user intervention?

Barry Kelly
Moderator

Yes, doors, windows and openings can only exist when placed in a wall.

It is not possible for other objects to have this dependency except with accessories add-ons or possibly creating your own API add-ons.

 

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
Barry Kelly
Moderator

GDL objects can not talk to each other directly.

They can communicate through external text files - but I would not call it a good solution - you have to force one object to write to a text file and another to read from it.

It is not an automatic process.

 

In GDL one object can CALL and use another object - but they are not separate instances of the object placed independently in a file.

It basically becomes one object.

 

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

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!