Developer forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Creating elements from GDL code

Stanislav_S
Contributor

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 ACCEPTED SOLUTION

Solution

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 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

View solution in original 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 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

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

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 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

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?

Solution

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 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

View solution in original post

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!