2022-11-01 03:07 PM
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
2022-11-01 03:41 PM
i think i found a solution. i just had to add the fragment2 command to the 2d script.
2022-11-03 11:46 AM
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.
2022-11-04 10:08 AM
that's a neat trick i didn't know about. thanks