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.

How to make 2D display of Door with Cross

Anonymous
Not applicable
I tried to use the empty door as the opening for Pipes. The 2D display are wished to be Contour with Cross.(Fig. 01) Is it possible to add some 2D scripts for realize my purpose?

My first idea is to add the following scripts:

line2 -a/2,0,a/2, Wall_Thickness
line2 -a/2,Wall_Thickness,a/2,0

However it is apparent the parameter "wall_thickness" does not exist !

Any help?

Fig_1.jpg
4 REPLIES 4
David Maudlin
Rockstar
Kent:

This should work, and showed a cross when I pasted your code at the top of the 2D Script for the "Simple Door Opening" library part. Where in the script is the code added? Best would be to zip the library part and post it here so others can look at the entire library part.

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
Laszlo Nagy
Community Admin
Community Admin
WALL_THICKNESS is a GDL Global variable so it should be storing the thickness of the Wall the Window/Door is placed into.

Are you saying that the cross does not adjust to the Wall thickness of the Wall?
Can you attach a screenshot of the incorrect result?
Loving Archicad since 1995 - Find Archicad Tips at x.com/laszlonagy
AMD Ryzen9 5900X CPU, 64 GB RAM 3600 MHz, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), Windows 10 PRO ENG, Ac20-Ac27
Anonymous
Not applicable
laszlonagy wrote:
WALL_THICKNESS is a GDL Global variable so it should be storing the thickness of the Wall the Window/Door is placed into.

Are you saying that the cross does not adjust to the Wall thickness of the Wall?
Can you attach a screenshot of the incorrect result?
After modify the parameter "WALL_THICKNESS" as capital word instead of "Wall_Thickness", the scripts could work.

line2 -a/2,0,a/2,WALL_THICKNESS
line2 -a/2,WALL_THICKNESS,a/2,0

By the way, how to match the Cross Line's Style with the Contour's Line's Style. Thank you!
David Maudlin
Rockstar
Kent wrote:
By the way, how to match the Cross Line's Style with the Contour's Line's Style. Thank you!
You need to set the line type before the lines command:
SET LINE_TYPE gs_wcont_line_in
or
SET LINE_TYPE gs_wcont_line_out
depending on whether you want to use the Inside or Outside line type.

To use the pen setting:
PEN gs_wcont_line_pen
Notice in the GDL main library window interface the Type column, which shows you the type of variable being used (line type, pen, etc).
Kent wrote:
[After modify the parameter "WALL_THICKNESS" as capital word instead of "Wall_Thickness", the scripts could work.

line2 -a/2,0,a/2,WALL_THICKNESS
line2 -a/2,WALL_THICKNESS,a/2,0
The upper or lower case makes no difference, even WaLl_ThIcKnEsS works, there must some other issue, sometimes invisible characters can be copied into the GDL script, creating unreadable lines.

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