<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Using LIBARYGLOBAL (MVO) only when MVO-Library is loaded, else directly use Parameter in the object in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Using-LIBARYGLOBAL-MVO-only-when-MVO-Library-is-loaded-else/m-p/256627#M3226</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Dear folks,&lt;BR /&gt;
&lt;BR /&gt;
I want library objects todisplay their user-ID as parameter. So I added these lines to the 2D-Script:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;define style "LibGUID" "Arial", 0.3, 5, 0
set style "LibGUID"
drawindex 0
if show_lib_guid=1 then text2 0,0,lib_guid
&lt;/PRE&gt;

and add the parameters &lt;PRE&gt; lib_guid &lt;/PRE&gt; and &lt;PRE&gt;show_lib_guid  (as boolen y/n) &lt;/PRE&gt;
to the parameter-section.&lt;BR /&gt;
&lt;BR /&gt;
...at last put the line &lt;PRE&gt;parameters lib_guid = glob_intguid&lt;/PRE&gt; in the parameter-script of the object.&lt;BR /&gt;
&lt;BR /&gt;
well, it works fine.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Now, I want manage this setting by using the ModelVieOptions (MVO). So I add the parameter &lt;PRE&gt;show_lib_guid_LG&lt;/PRE&gt; to the global library object "GlobalOption-lib_guid" and add the entry in the UI-script.  &lt;BR /&gt;
&lt;BR /&gt;
well, works also fine  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Now, I want that the user can change the parameter &lt;PRE&gt;show_lib_guid&lt;/PRE&gt; in each LIB-object dialog,&lt;BR /&gt;
WHEN the MVO-Object "GlobalOption-lib_guid" is NOT loaded.&lt;BR /&gt;
I have put these lines in the parameter-script of the LIB-objects:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;LG = LIBRARYGLOBAL ("GlobalOption-lib_guid", "show_lib_guid_LG", show_lib_guid_LG)
if LG &amp;gt; 0 then
	PARAMETERS show_lib_guid = show_lib_guid_LG
	endif
&lt;/PRE&gt;

...but it did not work.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_cry.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Although the "special" MVO-Object "GlobalOption-lib_guid" is NOT loaded, the parameter &lt;PRE&gt;show_lib_guid &lt;/PRE&gt; is locked in the object-dialog.&lt;BR /&gt;
It is not possible to change the value of the boolen parameter &lt;PRE&gt;show_lib_guid &lt;/PRE&gt; in the object properties.&lt;BR /&gt;
&lt;BR /&gt;
Please help me finding the correct code to make using the MVO depending on that it is loaded in the library.&lt;BR /&gt;
&lt;BR /&gt;
I am looking forward to a helping answer, which can solve my (hopefully little) problem.&lt;BR /&gt;
&lt;BR /&gt;
Best regards from vienna,&lt;BR /&gt;
Klaus&lt;/R&gt;&lt;/DIV&gt;</description>
    <pubDate>Mon, 29 Oct 2018 12:25:15 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-10-29T12:25:15Z</dc:date>
    <item>
      <title>Using LIBARYGLOBAL (MVO) only when MVO-Library is loaded, else directly use Parameter in the object</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Using-LIBARYGLOBAL-MVO-only-when-MVO-Library-is-loaded-else/m-p/256627#M3226</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Dear folks,&lt;BR /&gt;
&lt;BR /&gt;
I want library objects todisplay their user-ID as parameter. So I added these lines to the 2D-Script:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;define style "LibGUID" "Arial", 0.3, 5, 0
set style "LibGUID"
drawindex 0
if show_lib_guid=1 then text2 0,0,lib_guid
&lt;/PRE&gt;

and add the parameters &lt;PRE&gt; lib_guid &lt;/PRE&gt; and &lt;PRE&gt;show_lib_guid  (as boolen y/n) &lt;/PRE&gt;
to the parameter-section.&lt;BR /&gt;
&lt;BR /&gt;
...at last put the line &lt;PRE&gt;parameters lib_guid = glob_intguid&lt;/PRE&gt; in the parameter-script of the object.&lt;BR /&gt;
&lt;BR /&gt;
well, it works fine.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Now, I want manage this setting by using the ModelVieOptions (MVO). So I add the parameter &lt;PRE&gt;show_lib_guid_LG&lt;/PRE&gt; to the global library object "GlobalOption-lib_guid" and add the entry in the UI-script.  &lt;BR /&gt;
&lt;BR /&gt;
well, works also fine  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_biggrin.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Now, I want that the user can change the parameter &lt;PRE&gt;show_lib_guid&lt;/PRE&gt; in each LIB-object dialog,&lt;BR /&gt;
WHEN the MVO-Object "GlobalOption-lib_guid" is NOT loaded.&lt;BR /&gt;
I have put these lines in the parameter-script of the LIB-objects:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;LG = LIBRARYGLOBAL ("GlobalOption-lib_guid", "show_lib_guid_LG", show_lib_guid_LG)
if LG &amp;gt; 0 then
	PARAMETERS show_lib_guid = show_lib_guid_LG
	endif
&lt;/PRE&gt;

...but it did not work.  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_cry.gif" style="display : inline;" /&gt;  &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_rolleyes.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
Although the "special" MVO-Object "GlobalOption-lib_guid" is NOT loaded, the parameter &lt;PRE&gt;show_lib_guid &lt;/PRE&gt; is locked in the object-dialog.&lt;BR /&gt;
It is not possible to change the value of the boolen parameter &lt;PRE&gt;show_lib_guid &lt;/PRE&gt; in the object properties.&lt;BR /&gt;
&lt;BR /&gt;
Please help me finding the correct code to make using the MVO depending on that it is loaded in the library.&lt;BR /&gt;
&lt;BR /&gt;
I am looking forward to a helping answer, which can solve my (hopefully little) problem.&lt;BR /&gt;
&lt;BR /&gt;
Best regards from vienna,&lt;BR /&gt;
Klaus&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 29 Oct 2018 12:25:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Using-LIBARYGLOBAL-MVO-only-when-MVO-Library-is-loaded-else/m-p/256627#M3226</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-29T12:25:15Z</dc:date>
    </item>
  </channel>
</rss>

