cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
GDL
About building parametric objects with GDL.

GDL - How to change between multiple visualizations

BiaM
Participant

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?

4 REPLIES 4
Kevin Lee
Advocate

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/

Kevin Lee | Director of Technology | BIM
TZG Architects
ARCHICAD 27 | GDL | Rhino.GH | Solibri | Twinmotion
Certified Graphisoft BIM Manger (2024)
Lingwisyer
Guru
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 3110Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660

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.  

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 3110Help Those Help You - Add a Signature
Self-taught, bend it till it breaksCreating a Thread
Win11 | i9 10850K | 64GB | RX6600 Win11 | R5 2600 | 16GB | GTX1660

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!