BIM Coordinator Program (INT) April 22, 2024

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

GDL
About building parametric objects with GDL.

2d symbol with different colors

ae91a8a4
Contributor

hi, i try to call a macro with a drawn 2d-symbol with default parameters, but everything turns black.

if i place the library part directly on the floorplan the colors are correct.

only when i embed it in another library part, it turns all black.

 

the simplest version of the problem looks like this:

2d script:

call "test_2d_symbol_with_different_colors"

 

there is no code in "test_2d_symbol_with_different_colors". just a drawn 2d-symbol

 

the goal is a user-editable symbol without the need for pasting code or anything.

the second reason i like the 2d-symbol is that i can place the object with its origin.

(without the mul2 A/xx, B/yy add2 vv, ww nightmare at the beginning)

 

is this a bug or is there a solution to this problem?

 

thanks


2d symbol.png
3 REPLIES 3
ae91a8a4
Contributor

i think i found a solution. i just had to add the fragment2 command to the 2d script.

You can also "borrow the code" from any drawing(drag to 2d script), instead of the binary fragments, and then You can change any property of any part of it.

that's a neat trick i didn't know about. thanks

Learn and get certified!

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!