Design forum
cancel
Showing results for 
Search instead for 
Did you mean: 

REQUEST line type definition

Bruce
Booster
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
http://www.brucepwalker.com
https://www.mindmeister.com/65450406

-- since v8.1 --
AC22 6025 INT Full | macOS Mojave 10 | 3.2 GHz Intel Xeon W | 32 Gb RAM | Radeon Pro Vega 56 8 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.
....................................................................................................
Laszlo Nagy, Lead Moderator, Community Admin
Get Archicad Tips at https://twitter.com/laszlonagy
AMD Ryzen 1700X CPU, 48 GB RAM, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), WIN10 PRO ENG, AC20-AC25
Loving Archicad since 1995

Bruce
Booster
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
http://www.brucepwalker.com
https://www.mindmeister.com/65450406

-- since v8.1 --
AC22 6025 INT Full | macOS Mojave 10 | 3.2 GHz Intel Xeon W | 32 Gb RAM | Radeon Pro Vega 56 8 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.
....................................................................................................
Laszlo Nagy, Lead Moderator, Community Admin
Get Archicad Tips at https://twitter.com/laszlonagy
AMD Ryzen 1700X CPU, 48 GB RAM, Nvidia GTX 1060 6GB, 500 GB NVMe SSD
2x28" (2560x1440), WIN10 PRO ENG, AC20-AC25
Loving Archicad since 1995

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 25
Dell XPS- i7-6700 @ 3.4Ghz, 16GB ram, GeForce GTX 960 (2GB), Windows 10
Dell Precision 3510 - i7 6820HQ @ 2.70GHz, 16GB RAM, AMD FirePro W5130M, Windows 10

Didn't find the answer? Start a new discussion

Labels

Still looking?

Browse more topics

Back to forum

See latest solutions

Accepted solutions

Start a new discussion!