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

display values for GDL 2d lines?

David Collins
Advocate
I've been scripting plan symbols for GDL objects and I'm wondering if there's a way to set the new display values (drafting, cut line, skin separator) for LINE2 objects.

I see the various POLY2_ objects have updated status codes notes explaining how to set values for cut and cover fills, but can't find anything about lines...?

I did try to drag and drop some various 2d lines into the 2d Script window, thinking I could see the script that way, but no luck: I gather that only works for 3d objects?
David Collins

Win10 64bit Intel i7 6700 3.40 Ghz, 32 Gb RAM, GeForce RTX 3070
AC 27.0 (4001 INT FULL)
7 REPLIES 7
David Collins
Advocate
First of all, you imbecile, you certainly can drag and drop 2d elements into the 2d script window. Doubtless you tried, but it proved to be completely beyond your obviously feeble skills.
Next, though I'm sure you won't have the least idea what I'm talking about, 2d line properties can be scripted with LINE_PROPERTY 0, 1 or 2.
Somebody check this guy's credentials.
David Collins

Win10 64bit Intel i7 6700 3.40 Ghz, 32 Gb RAM, GeForce RTX 3070
AC 27.0 (4001 INT FULL)
Dwight
Newcomer
Best ever!
Dwight Atkinson
Aussie John
Newcomer
yep great post but...

LINE_PROPERTY expr
expr values
0: all lines are generic lines
1: all lines are inner
2: all lines are contour

Can anyone give an example of how this works?
Cheers John
John Hyland : ARINA : www.arina.biz
User ver 4 to 12 - Jumped to v22 - so many options and settings!!!
OSX 10.15.6 [Catalina] : Archicad 22 : 15" MacBook Pro 2019
[/size]
LiHigh
Newcomer
AFAIK, line property is to control how 2d line is been displayed in accordance to the display option set. For instance:

LINE PROPERTY 0 ---- [Drafting Line] Under any option, 2d line will be displayed. It will respond to Line Weight change but not Bold Cut Line.

LINE PROPERTY 1 ---- [Skin Seperator Line] If Cut Fill option is set to "No Fill" or "Solid w/o Seperation Lines", 2d line will not be displayed. It will respond to Line Weight change but not Bold Cut Line.

LINE PROPERTY 2 ---- [Cut Line] Same as LINE PROPERTY 0 except it will respond to Bold Cut Line.

Again, Graphisoft need to make the manual more infomative!!!!!!!!!!!
Howard Phua

Win 10, Archicad 19 INT
David Collins
Advocate
If you drag a simple line into a GDL script window you get this:

PEN 5
LINE_PROPERTY 2
LINE2 0,0, 1.00, 1.00

The 2 value means it will appear as a bold line using hairline display. It doesn't affect the actual line weight for publication, but I find it useful and certainly easier on the eyes.
David Collins

Win10 64bit Intel i7 6700 3.40 Ghz, 32 Gb RAM, GeForce RTX 3070
AC 27.0 (4001 INT FULL)
Vitruvius
Booster
Does anyone know if there is a similar function for fills? It would be great to have a FILL PROPERTY to determine whether the fill should be a Drafting, Cover or Cut Fill.

Currently the only way you seem to be able to do this is using a DEFINE FILL [FILLTYPES_MASK] which is a command for masochists.
Cameron Hestler, Architect
Archicad 27 / Mac Studio M1 Max - 32 GB / LG24" Monitors / 14.5 Sonoma
David Collins
Advocate
Vitruvius wrote:
Does anyone know if there is a similar function for fills?
Its done with the frame_fill variable and the mask values for each node: here's two identical fills, created in ArchiCAD and then dragged into a GDL 2d script window:

SET FILL "Grass"
POLY2_B{2} 5, 35, 57, 0,
0, 0, 0,
0, 0, 1,
2, 0, 1,
2, 2, 1,
0, 2, 1,
0, 0, 1


SET FILL "25 %"
POLY2_B{2} 5, 3, 57, 0,
0, 0, 0,
0, 0, 33,
2, 0, 33,
2, 2, 33,
0, 2, 33,
0, 0, 33

The first "grass" fill has a drafting contour and the second, "25%" has a cut contour. You can see the different values for frame_fill and the mask value for each node. See POLY2_ in the GDL manual.
David Collins

Win10 64bit Intel i7 6700 3.40 Ghz, 32 Gb RAM, GeForce RTX 3070
AC 27.0 (4001 INT FULL)