GDL
About building parametric objects with GDL.

You want the overlapping bottom line to be invisible. What should I do?

LeeJaeYoung
Virtuoso

You want the overlapping bottom line to be invisible.
What should I do?

 

FILL "Background"

POLY2_B 4, 1+2+4+32,
19,19,
WHA, -_thk,1,
WHA-_wid, -_thk,1,
WHA-_wid, _thk,1,
WHA, _thk,1

LeeJaeYoung_0-1654183189601.png

 

AC27 on window 11
6 REPLIES 6
A_ Smith
Expert

Try to set different DRAWINDEX for that poly (if it overlaps bottom lines) and project2 or what you have there

AC 22, 24 | Win 10

What is the top element made of?

lines (line2 etc) will always show through polys but polys will hide polys based on the order or the code. 

Creator of Cadswift's parametric GDL libraries
Creator of Infinite Openings and Component Catalogues
Push the envelope & watch it bend
website: https://cadswift.com.au/
YouTube: https://www.youtube.com/user/CADSwift/playlists

I made them all FILL "Background" POLY2_B 4, 1+2+4+32,19,19,.

 

I used drawindex but to no avail.

AC27 on window 11
Peter Baksa
Graphisoft
Graphisoft

Hi,

 

use status code 0 for the edge that which don't want to see.

Péter Baksa
Software Engineer, Library
Graphisoft SE, Budapest
vdentello
Advocate

I achieved that a while ago with DRAWINDEX quite easily, you just have to state it before each part to set up it's order, and it's easily done.

Captura de Tela 2022-06-20 às 11.44.32.png
Captura de Tela 2022-06-20 às 11.46.19.png

Archicad User Since 2013
GDL Developer
Experimenting with API
from Brazil

Perhaps the problem is your frame_fill includes "32" which makes the fill a cut fill. I only ever use "1+2+4" generally.

Or perhaps its more simple like the fill pens you have set are transparent.

try using different fills and playing around with the pens and also draw a line (using Archicad line tool) and a fill (using fill tool) under the placed object to see if they also show through. This will help you isolate the error.

DM me if you would like to send the object through for me to have a quick look.

Creator of Cadswift's parametric GDL libraries
Creator of Infinite Openings and Component Catalogues
Push the envelope & watch it bend
website: https://cadswift.com.au/
YouTube: https://www.youtube.com/user/CADSwift/playlists