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

REQUEST line type definition

Bruce
Expert
Is there a way to query a line type definition?

I would like to mimic the user-selected line type in 3D, but can't without knowing the dash and gap definitions of the line type in question.

I've looked through the REQUEST section of the GDL guide, but can't see anything.
Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC26 5002 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
4 REPLIES 4
Laszlo Nagy
Community Admin
Community Admin
I don't see any such REQUEST command either.

I guess this would be rather complicated because there are not only simple linetypes what are composed of Dashes and Gap, but also Symbol linetypes, that could be composed of any number of line segments and arc, their position, size, rotation, etc. Sounds kind of hard to query such a linetype definition.
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
Bruce
Expert
I agree - to a point. But this definition is stored in the active file, so should (technically) be able to be queried.

However, I am only after a simplified return - it would have to be assumed that the GDL script would only be useful in dealing with non-symbol line types.

If the REQUEST returned an array of dash and gap lengths, this would suffice. Seeing as symbol fills also have these dash and gap fields, it would still retrieve the values, so could still be interpreted (i.e. not fail if the user chose a symbol line type).

An example code snippet would be:
DIM ltDef[][]

rrr = REQUEST("Line_type_definition", gs_line_type, ltDef)

The result would then be something like:
1, 0.004, 0.001
2, 0.002, 0.002

Oh well, maybe it will happen after beam cover fills
Bruce Walker
www.brucepwalker.com
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC26 5002 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb
Laszlo Nagy
Community Admin
Community Admin
Make a wish for it so we can vote. Then I can submit the wish to GRAPHISOFT. Please post the link of the wish into this thread.
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
Barry Kelly
Moderator
The wish was moved and can now be found here ...

http://archicad-talk.graphisoft.com/viewtopic.php?p=270294

Barry.
One of the forum moderators.
Versions 6.5 to 27
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11