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

Modelview Options & Library Global

Vitruvius
Booster
Hi,

A lot of my old symbols have options to make them appear in either the Plan, RCP or both.

!!! MODELVIEW OPTIONS ||||||||||||||||||||||||||||||||||||||
MVreq = REQUEST ("Floor_Plan_Option","",modelview)

IF modelview = 0 THEN
TEXT2 0,0,'Floorplan'
ENDIF

IF modelview = 1 THEN
TEXT2 0,0,'RCP'
ENDIF

I noticed that the MVO panel now has the following options:

1 - Realistic (similar to plan)
2 - Electric (newish option)
3 - RCP (as before)

Item 2 doesn't get addressed by REQUEST ("Floor_Plan_Option"," ",show).

How can I get my symbol to understand whether it can draw itself as option 1 (Realistic) or option 2 (Electric Symbol)? I've tried dabbling in the LIBRARYGLOBAL but it's really quite complicated and I'm stumped.

Many thanks!

Lamp HVAC Symbols.png
Cameron Hestler, Architect
Archicad 27 / Mac Studio M1 Max - 32 GB / LG24" Monitors / 14.5 Sonoma
3 REPLIES 3
rocorona
Booster
Things evolve. Not easy to stay updated,when the changes are not clearly stated.

Now you need to use
MVreq = LIBRARYGLOBAL ("LibraryGlobals13", "iLSymbol", modelview)

modelview will take the value 1, 2 or 3 according to the MV Option.
_________________

--Roberto Corona--
www.archiradar.com
AC18 - ITA full on Win10
_________________
_________________
Vitruvius
Booster
Thank you Roberto - just what I was looking for!!

I find many of the newer features aren't really well documented (if at all). Which is fine with the program because you can experiment. Experimenting is not so fine with GDL because it's rather less forgiving.

I've also discovered that by inserting the following in the 2D & Parameter script:

CALL "RequestPlanViewGlobals" PARAMETERS ALL RETURNED_PARAMETERS gs_symbtype_2D_m (this has gotta be all one line!!!!!)

With new Parameters:
gs_symbtype_2D_ (text)
gs_symbtype_2D_m (integer)

You can select the MV options from within your symbols and have them respond accordingly.

Nifty stuff, but some documentation would help.

Cheers
Cameron Hestler, Architect
Archicad 27 / Mac Studio M1 Max - 32 GB / LG24" Monitors / 14.5 Sonoma
Bruce
Advisor
I know this is an old post, but the current GDL guide still lists this (or a close variation) as a valid coding option. However, I can't figure out how to set the MVO to be "Ceiling Plan" apart from Lamp options - which doesn't affect this REQUEST.

http://gdl.graphisoft.com/gdl-docs/gdl-guide/chapter-12-miscellaneous/request-options/

(do a page search for "storyViewpointType" - it's near the bottom)

Any ideas?
Bruce Walker
Barking Dog BIM YouTube
Mindmeister Mindmap
-- since v8.1 --
AC27 5060 INT Full | Windows 11 64 Pro | 12th Gen Intel i7-12700H 2.30 GHz | 64 Gb RAM | NVIDIA GeForce RTX 3060 32 Gb