GDL
About building parametric objects with GDL.
SOLVED!

Fixed dimensions for multiple models in a single object

Richard Molnar
Booster

Hi All,

 

I am hoping that there is somebody who can help me find the solution as Graphisoft support redirected me to gdl.graphisoft website where I couldn't find the answer.

 

I have 1 single object with multiple models in it and I learned how to switch between the different models. My problem is that the models in the object have different dimensions which all should be fixed. I am sure I can figure out how to make the dimensions fixed and unchangeable, but what I couldn't find an answer to is how to make sure that the placed object's dimensions are set to the picked model. At the moment, all the other options are stretched to the same size as the first/default model. Ticking the box for 'Use Stored Environment' does not do anything to this.

 

Also, I made sure to have only 1 hotspot for each model as they will be connected to another object at the same point,

but when I change the already placed object to a different model it gets relocated. Is there a way to do this too? (It is like having multiple shaped and sized bulbs in 1 bulb object and changing the already placed object will change where the base of the bulb is. My object is not a bulb, btw.)

 

I am a beginner in GDL scripting and since it is not required for my work daily (neither weekly, monthly, or even quarter yearly), I only pick up new knowledge when I need it. But only if I can find it on the internet.

 

I would greatly appreciate your help.

Richard Molnar
AC 6.5-9.0 & 19-27 (latest build)
Windows 10 Pro
Intel i7-6700K 4.00GHz Quad Core, 32GB RAM, NVIDIA Quadro K1200
11 REPLIES 11

Thank you, AllanP!

 

This worked flawlessly.

 

Thank you so much for the detailed explanations. I am very grateful for your help. 🙏

Richard Molnar
AC 6.5-9.0 & 19-27 (latest build)
Windows 10 Pro
Intel i7-6700K 4.00GHz Quad Core, 32GB RAM, NVIDIA Quadro K1200

Thank you, Ling.

 

Your help is greatly appreciated. 🙏

Richard Molnar
AC 6.5-9.0 & 19-27 (latest build)
Windows 10 Pro
Intel i7-6700K 4.00GHz Quad Core, 32GB RAM, NVIDIA Quadro K1200