The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

Everything about GDL - Doors/Windows/Objects/Stairs etc. (Example: I created an object that prints an error message in 3D all the time, please help!)

Moderators: Barry Kelly, Karl Ottenstein, LaszloNagy, ejrolon, gkmethy, Gergely Feher

Code: Select all_reqMVO6 = 0 r6 = LIBRARYGLOBAL ("Custom Model View Options", "pos_1_mvo", p1value) if r6 then if (p1value= px1) then pos_1 = p1 endif if (p1value= px2) then pos_1 = p2 endif if (p1value= px3) then pos_1 = p3 endif endif
So here is my bit of script for a library global command. It should work besides the fact it is picking up px1, px2 and px3 as uninitialized variables. I believe this is because they are Text type variables. How can I get this script to work?

my values in my Custom Model View Options are defined as shown below:
Code: Select allpx1 = "Room Name" px2 = "Room Number" px3 = "Room Area" values "pos_1_mvo" px1, px2, px3