2025-08-08 12:33 AM - last edited on 2025-08-08 02:08 AM by Barry Kelly
I have three objects that I'd like to merge into one, but with different options for visualization, e.g. the eletric one, that you choose in the object definition and then both the 2d and 3d adjust. I can't find any direct tutorial for this, and I am a beginner at GDL. Can someone help?
2025-08-08 02:59 AM
There are few options but it sounds like macro option will help you merge or control different options!
https://gdl.graphisoft.com/gdl-basics/subroutines-macros/
2025-08-08 03:02 AM
IF x then
draw y
ELSE
draw z
endIF
Where x is some parameter you can set. It is not very clear what you are trying to do. Adjust as in what? What are these different options? Are the three objects the same thing?
Ling.
| AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
2025-08-14 10:35 PM
To give an example, it's like having the objetct "outlet" with variants, like type A, B or C. They are very similar, but with minor modifications in the 3d. I could make all three objects in PARAM-O, but I prefer to let them all in just one object in the library but with a selectable option. I really liked Param-o but GDL is very confusing to me, since there is so few more direct tutorials, so it feels like having to learn the whole dictionary to figure out how to spell a single word.
2025-08-15 03:13 AM
I would just model your multiple faceplates, save them as GDL objects, then open and merge them all into a single object using the IF then ELSE endIF I mentioned before.
IF x = "Single" then
[single geometry]
ELSE
IF x = "Double" then
[double geometry]
ELSE
[triple geometry]
endIF
endIF
Ling.
| AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
| Self-taught, bend it till it breaks | Creating a Thread |
| Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |