Libraries & objects
About Archicad and BIMcloud libraries, their management and migration, objects and other library parts, etc.

Set a parameter based on a saved view in Viewmap

Anonymous
Not applicable
Hi there,
Can I get an object to cjhange a parameter based on what view I have saved in viewmap,
ie I have presentation plans & construction sometimes on the same storey but different layer combination.
I want an object to appear different (text font etc) depending on what the view has been save as.
4 REPLIES 4
Barry Kelly
Moderator
You can't do anything based on layer combinations.
But as part of saving your different views of the same plan you can save different Model View Options.
You can script your objects to pick up some of the MVO settings or even better now you can create your own Library Global settings that can manipulate your opjects globally across the model.
Some of the standard library objects use these MVO settings already so you might be able to figure out how to add your own.

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
sinceV6
Advocate
Is there any REAL documentation about MVO in GDL (examples, how to use/code)? I remember reading here that scripted MVO objects needed three library parts or something like that... and although a bit hard to code at first, the big reward comes with View dependant settings!!!

I have some pending ideas for GDL objects (but not that much time, sadly) and MVO are the only way to make them work; and the GDL docs are rather scarce on the subject.
Barry Kelly
Moderator
I don't recall any specific examples - only what is in the GDL manual.
I just "reverse engineered" what was in the default library and "saved as" to something new and modified it to suit my needs.

From memory there is the "Library_Globals.gsm" file that contains the user interface that you see in the MVO dialogue.

Then there are the macros that are called from the objects that look for the values that are set in the MVO.

And of course your main object that CALLS the macro that looks at the MVO settings.

I think they are the 3 parts you are referring to.
It has been a while since I have played with this so i would have to go back through it all to refresh my memory properly.

Barry.
One of the forum moderators.
Versions 6.5 to 27
i7-10700 @ 2.9Ghz, 32GB ram, GeForce RTX 2060 (6GB), Windows 10
Lenovo Thinkpad - i7-1270P 2.20 GHz, 32GB RAM, Nvidia T550, Windows 11
sinceV6
Advocate
Wow. I guess that is the result of trying to add new things over arcaic base code. I'll have to dig into it, but that's a great start. Thanks!