Find the next step in your career as a Graphisoft Certified BIM Manager!

GDL
About building parametric objects with GDL.
SOLVED!

GDL: Make projected edges visible on floor plan even if they are not visible in 3D

kovacsv
Booster

So I have a GDL object that builds up from primitives, like this:

VERT 0, 0, 0
VERT 1, 0, 0
VERT 1, 1, 0

PEN 5
MATERIAL 55
EDGE 1, 2, 1, -1, 0
EDGE 2, 3, 1, -1, 0
EDGE 3, 1, 1, -1, 0

PGON 3, 0, 0, 1, 2, 3

I'd like to make the 2D script as a projection of 3D with different pen color, like this:

PEN 3
PROJECT2 3, 270, 2 + 32

 It works like a charm, but when I make the edges invisible in 3D (set status to 1) they are disappearing from the 2D view, too, so my object won't have a 2D view at all.

 

Is there any way to use PROJECT2 in a way that it shows edges even if they are not visible in 3D?

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Joachim Suehlo
Advisor

Why don't you make the edges visible in 2D and unvisible in 3D with a case distinction like:
IF GLOB_VIEW_TYPE = 3 THEN status = 1 ELSE status = 0

Joachim Suehlo . AC12-27 . MAC OSX 13.5 . WIN11
GDL object creation: b-prisma.de

View solution in original post

2 REPLIES 2
Solution
Joachim Suehlo
Advisor

Why don't you make the edges visible in 2D and unvisible in 3D with a case distinction like:
IF GLOB_VIEW_TYPE = 3 THEN status = 1 ELSE status = 0

Joachim Suehlo . AC12-27 . MAC OSX 13.5 . WIN11
GDL object creation: b-prisma.de

@Joachim Suehlo wrote:

Why don't you make the edges visible in 2D and unvisible in 3D with a case distinction like:
IF GLOB_VIEW_TYPE = 3 THEN status = 1 ELSE status = 0


Because I'm awfully bad at GDL. 🙂

Thanks a lot, it solved the problem.