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

Using LIBARYGLOBAL (MVO) only when MVO-Library is loaded, else directly use Parameter in the object

Anonymous
Not applicable
Dear folks,

I want library objects todisplay their user-ID as parameter. So I added these lines to the 2D-Script:

define style "LibGUID" "Arial", 0.3, 5, 0
set style "LibGUID"
drawindex 0
if show_lib_guid=1 then text2 0,0,lib_guid
and add the parameters
 lib_guid 
and
show_lib_guid  (as boolen y/n) 
to the parameter-section.

...at last put the line
parameters lib_guid = glob_intguid
in the parameter-script of the object.

well, it works fine.

Now, I want manage this setting by using the ModelVieOptions (MVO). So I add the parameter
show_lib_guid_LG
to the global library object "GlobalOption-lib_guid" and add the entry in the UI-script.

well, works also fine

Now, I want that the user can change the parameter
show_lib_guid
in each LIB-object dialog,
WHEN the MVO-Object "GlobalOption-lib_guid" is NOT loaded.
I have put these lines in the parameter-script of the LIB-objects:

LG = LIBRARYGLOBAL ("GlobalOption-lib_guid", "show_lib_guid_LG", show_lib_guid_LG)
if LG > 0 then
	PARAMETERS show_lib_guid = show_lib_guid_LG
	endif
...but it did not work.

Although the "special" MVO-Object "GlobalOption-lib_guid" is NOT loaded, the parameter
show_lib_guid 
is locked in the object-dialog.
It is not possible to change the value of the boolen parameter
show_lib_guid 
in the object properties.

Please help me finding the correct code to make using the MVO depending on that it is loaded in the library.

I am looking forward to a helping answer, which can solve my (hopefully little) problem.

Best regards from vienna,
Klaus
0 REPLIES 0