Using LIBARYGLOBAL (MVO) only when MVO-Library is loaded, else directly use Parameter in the object
Anonymous
Not applicable
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2018-10-29 01:25 PM
2018-10-29
01:25 PM
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_guidand add the parameters
lib_guidand
show_lib_guid (as boolen y/n)to the parameter-section.
...at last put the line
parameters lib_guid = glob_intguidin 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_LGto 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_guidin 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_guidis locked in the object-dialog.
It is not possible to change the value of the boolen parameter
show_lib_guidin 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