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

Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Layers 1..16 in GDL 2D preview: what for?

Sam Karli
Enthusiast
Hi,
there are layers 1..16 in GDL 2D preview, but I cannot use them at all and seemingly the docs about them is quite "compact".

At first it mentions that you can call the separate layers as macros ("A rétegek különösen hasznosak a jelkép részleteinek csoportosítására és ismételt felhasználására (ilyenkor mindegyik réteg makróként viselkedik). Rajzoljon egy ábrát a 2D-s leírás-ablakban a rendelkezésre álló grafikus eszközökkel, majd hivatkozzon erre az ábrára a rétegszámmal a GDL 2D-s leírásban.")

I tried to use it like
call "1"
or something but id didn't work.

The GDL Reference Guide doesn't seem to know about it.

Is it work, is there a material about it?

My goal is to have a GDL object that has different visibility on the containing story and the above stories (but to achieve it with only by drawing and not by coding much). Is it possible?

Thx.
GDL/Python/C++ dev
14 REPLIES 14
Anonymous
Not applicable
Ok I got it working after a few trials
Barry Kelly
Moderator
I should have said when you drag don't let go of the left mouse button.
You must hold it as you drag from one window to the other.
The cursor will change to an arrow with a box under if it is gong to work.

Unfortunately no you can't do it with 3D elements as there is no 3D symbol window where you can construct 3D elements - that would be nice though.

The 2D view and 3D view windows are simply views of what you have already scripted in the 2D & 3D scripts.

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
David Maudlin
Rockstar
Constantin wrote:
By the way, is it possible to generate a 3D script in the same way?
You cannot do it within the GDL editor, but you can drag elements from the main ArchiCAD 2D (Plan) window into the GDL 3D Script window and the code will be automatically generated. Use the Project Origin in the 2D Window in the same location as the GDL origin.

David
David Maudlin / Architect
www.davidmaudlin.com
Digital Architecture
AC27 USA • iMac 27" 4.0GHz Quad-core i7 OSX11 | 24 gb ram • MacBook Pro M3 Pro | 36 gb ram OSX14
Barry Kelly
Moderator
David wrote:
You cannot do it within the GDL editor, but you can drag elements from the main ArchiCAD 2D (Plan) window into the GDL 3D Script window and the code will be automatically generated.
I always forget this - but I am usually happy scripting from scratch.
I do use it though to create an automatic CALL statement.
Place the object as you want it in the 2D Archicad window and drag it into the 2D script window and then you have a Call with all the parameters listed.
Edit and delete the parameters as needed - it can save a lot of time and cutting & pasting when you have a lot of parameters involved.

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
matjashka
Advocate
The 16 layers are very handy for creating AutoCAD-like drafting blocks with some built-in smarts.

Try this: create a new object based on Drawing Symbol subtype (basically a GDL object that lacks 3D script) and then

1) in the Parameters, create 16 new parameters called show1, show2, ..., show16, each one a Boolean type which means it's an on/off switch.

2) in the 2D script crate the following 16 lines:
IF show1 THEN FRAGMENT2 1, 0
IF show2 THEN FRAGMENT2 2, 0
(...)
IF show16 THEN FRAGMENT2 16, 0
You can draw whatever you want on the 16 "internal" layers and just turn on/off what you don't need. Very handy for details.
Matt Krol [LinkedIn]
BHMS Architects and Planners, Chicago
AC 10 ... 26 USA