Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.

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

I need help with a very simple gdl script!

Anonymous
Not applicable
Hi,

I can't figure out how to script a simple stupid polyline... It's the arcs that bugs me. I know it should be simple but please help me with this one. I gather it will fall together when I see the script. I have actually read the GDL manual but I wish they could explain things so a stupid mind like mine can understand...

I attached an image of the polyline object I want to create and also my stupid code...

Cheers and thanx on beforehand,
Mats

I stink at gdl.jpg
2 REPLIES 2
Anonymous
Not applicable
With Poly2 you can use only x and y parameters.
To use a mask value like you do at line 3 you need to use Poly2_ (x, y, mask)
Try this, it should work.
Poly2_ 4, 1
0, 0, 1,
a, b, 1
r, -90, 2001,
e, f, 1
Anonymous
Not applicable
Merci beaucoup Olivier,

Ça marche très bien.

Mats
Olivier wrote:
With Poly2 you can use only x and y parameters.
To use a mask value like you do at line 3 you need to use Poly2_ (x, y, mask)
Try this, it should work.
Poly2_ 4, 1
0, 0, 1,
a, b, 1
r, -90, 2001,
e, f, 1