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.

LIBRARYGLOBAL ("object_name - text not a variable", parameter, value)

gaba
Enthusiast

Maybe it'll be useful to someone 😎
I have a ton of MVO scripts and spent the last two days trying to solve a problem where ArchiCAD 29 wouldn't refresh the 2/3D model after changing settings in MVO. After every change in settings in MVO, I had to manually force a rebuild of the 2/3D model.


1. Until ArchiCAD 27, the following code worked flawlessly for me:

object_name="myobject_mvo.gsm"
LIBRARYGLOBAL(object_name, parameter, value)

Although the GDL manual warns that this doesn't refresh the 2/3D model, it did!

 

2. In ArchiCAD 29, the above code no longer works, and indeed, you shouldn't use object_name as a variable, but as a literal macro name:

LIBRARYGLOBAL("myobject_mvo", parameter, value)


Phew, luckily the solution turned out to be so simple.

 

Operating system used: Windows

"When you seek knowledge, you will eventually find it. Then you will become its source - until such time as you must seek it again."
AC 7 - 27 (29), Twinmotion | Windows 10 Pro for Workstations
Dell 7740 Xeon | 128GB | Quadro RTX 5000 16GB + LG 2560x1080
0 REPLIES 0

Setup info provided by author

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!