cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Reilly
Booster

Draw order for 2D elements in objects - GDL question

I am having trouble with an object that I've created that I haven't encountered before. For some reason, the 2D elements are not being drawn in the correct order. I tried using the DRAWINDEX command, which worked, but it caused other issues when being called up in the script of another object. From what I understand, 2D elements are usually drawn in the order that they are scripted. I.e., if I have lines of three different pens, the first pen used should be drawn at the bottom and the last pen used should be drawn at the top. This has worked for a number of other 2D objects I have created, but for some reason in this object the lines all overlap in random ways. Is there a way to fix this without using the DRAWINDEX command? The .gsm file for the object is attached below.

 

Operating system used: Mac Apple Silicon

Setup info provided by author
1 Solution

Accepted Solutions
runxel
Moderator

The drawing order kind of depends on the order of the commands – but only kind of. There are still some internal rules that should be drawn upon what.

But! If you do not want to use draw index you can force the order with this button in the compatibility options: (sorry for German screenshot)

 

runxel_0-1735905305901.png

 

Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»

Go to post

2 Replies 2
runxel
Moderator

The drawing order kind of depends on the order of the commands – but only kind of. There are still some internal rules that should be drawn upon what.

But! If you do not want to use draw index you can force the order with this button in the compatibility options: (sorry for German screenshot)

 

runxel_0-1735905305901.png

 

Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
Reilly
Booster

That did it, thank you! I figured there was some setting I was missing.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!