<?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 Re: Zones GDL Parameters in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/Zones-GDL-Parameters/m-p/230251#M2246</link>
    <description>I don't know exactly what did you meant, saying about MVO trigger. I didn't found any global gdl parameter, so I used this method: &lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://gdl.graphisoft.com/tips-and-tricks/custom-made-model-view-options-object" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="https://gdl.graphisoft.com/tips-and-tricks/custom-made-model-view-options-object" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;https://gdl.graphisoft.com/tips-and-tri ... ons-object&amp;quot;&amp;gt;https://gdl.graphisoft.com/tips-and-tricks/custom-made-model-view-options-object&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="https://gdl.graphisoft.com/tips-and-tri ... ons-object"&gt;https://gdl.graphisoft.com/tips-and-tricks/custom-made-model-view-options-object&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
I added my custom Zone Stamp to Library Global Settings subtype. &lt;BR /&gt;
Then, I created part of MVO interface and now I am trying to stick my custom parameters to it. It gives a way to make it MVO-profile-dependent. It is not really what I meant to create from the very beginning, but seems like it's going to work! (:&lt;BR /&gt;
&lt;BR /&gt;
Thank you guys, I will put my complete solution when I finish (:</description>
    <pubDate>Thu, 06 Jun 2019 10:20:30 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-06-06T10:20:30Z</dc:date>
    <item>
      <title>Zones GDL Parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Zones-GDL-Parameters/m-p/230247#M2242</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Hi! &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I would like to create zone which shows information according to the name of the view. It's needed for ceiling plans.  I would like to make the same zone which displays differently into different views. Default UI gives a chance to create only scale dependent stamp.&lt;BR /&gt;
&lt;BR /&gt;
I found a fragment of the code responsible for displaying specific information. &lt;BR /&gt;

&lt;PRE&gt;if usedRows[orderIdx]	= ORDER_ZONE_NAME		then showGroupDisplay[ORDER_ZONE_NAME] = 1
if usedRows[orderIdx]	= ORDER_ZONE_NUMBER		then showGroupDisplay[ORDER_ZONE_NUMBER] = 1

&lt;/PRE&gt;

&lt;BR /&gt;
Then, i would like make it drawing-name-dependent&lt;BR /&gt;
&lt;BR /&gt;
So I tried to use global parameters like:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;ac_drawingName
ac_drawingNumber
ac_storyName
&lt;/PRE&gt;

&lt;BR /&gt;
So it could look like:&lt;BR /&gt;

&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;IF ac_drawingName = Ceiling Plan THEN

if usedRows[orderIdx]	= ORDER_ZONE_NAME		then showGroupDisplay[ORDER_ZONE_NAME] = 1

ENDIF
&lt;/PRE&gt;

&lt;BR /&gt;
It would give a chance to call my view "Ceiling Plan" and disable name of the zone (ORDER_ZONE_NAME)&lt;BR /&gt;
It works when I use local parameters but when I use global ones (mentioned above)  says that is either&lt;BR /&gt;
"Uninitialized variable" or "Numeric type expression required". &lt;BR /&gt;
It's strange, because global parameter "ac_drawingName" is decribed as a String.&lt;/R&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 05 Jun 2019 13:03:15 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Zones-GDL-Parameters/m-p/230247#M2242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-05T13:03:15Z</dc:date>
    </item>
    <item>
      <title>Re: Zones GDL Parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Zones-GDL-Parameters/m-p/230248#M2243</link>
      <description>&lt;PRE&gt;IF ac_drawingName = "Ceiling Plan" THEN&lt;/PRE&gt;

&lt;BR /&gt;
Not a variable, so it should be in quotations. Whether that is the issue is a different question...&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Thu, 06 Jun 2019 01:17:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Zones-GDL-Parameters/m-p/230248#M2243</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-06-06T01:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Zones GDL Parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Zones-GDL-Parameters/m-p/230249#M2244</link>
      <description>Use rather a switch refering to MVO regerding ceilings... than autotext value, because autotext values cannot be phrased by GDL.&lt;BR /&gt;
&lt;BR /&gt;
Piotr</description>
      <pubDate>Thu, 06 Jun 2019 04:55:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Zones-GDL-Parameters/m-p/230249#M2244</guid>
      <dc:creator>Piotr Dobrowolski</dc:creator>
      <dc:date>2019-06-06T04:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Zones GDL Parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Zones-GDL-Parameters/m-p/230250#M2245</link>
      <description>Ah, that is another thing... While &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ac_drawingname&lt;E&gt;&lt;/E&gt; is not an autotext but a global variable, it is only available for Drawing Title objects. Piotr's suggestion of using MVO states is probably your best alternative.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ling.</description>
      <pubDate>Thu, 06 Jun 2019 06:18:46 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Zones-GDL-Parameters/m-p/230250#M2245</guid>
      <dc:creator>Lingwisyer</dc:creator>
      <dc:date>2019-06-06T06:18:46Z</dc:date>
    </item>
    <item>
      <title>Re: Zones GDL Parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Zones-GDL-Parameters/m-p/230251#M2246</link>
      <description>I don't know exactly what did you meant, saying about MVO trigger. I didn't found any global gdl parameter, so I used this method: &lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="https://gdl.graphisoft.com/tips-and-tricks/custom-made-model-view-options-object" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="https://gdl.graphisoft.com/tips-and-tricks/custom-made-model-view-options-object" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;https://gdl.graphisoft.com/tips-and-tri ... ons-object&amp;quot;&amp;gt;https://gdl.graphisoft.com/tips-and-tricks/custom-made-model-view-options-object&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="https://gdl.graphisoft.com/tips-and-tri ... ons-object"&gt;https://gdl.graphisoft.com/tips-and-tricks/custom-made-model-view-options-object&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
I added my custom Zone Stamp to Library Global Settings subtype. &lt;BR /&gt;
Then, I created part of MVO interface and now I am trying to stick my custom parameters to it. It gives a way to make it MVO-profile-dependent. It is not really what I meant to create from the very beginning, but seems like it's going to work! (:&lt;BR /&gt;
&lt;BR /&gt;
Thank you guys, I will put my complete solution when I finish (:</description>
      <pubDate>Thu, 06 Jun 2019 10:20:30 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Zones-GDL-Parameters/m-p/230251#M2246</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-06T10:20:30Z</dc:date>
    </item>
    <item>
      <title>Re: Zones GDL Parameters</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/Zones-GDL-Parameters/m-p/230252#M2247</link>
      <description>Yes, I did it, &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Piotr Dobrowolski&lt;E&gt;&lt;/E&gt;  helped me a lot. He gave me zone stamp which was ready to work, but I decided to make something simple on my own.&lt;BR /&gt;
&lt;BR /&gt;
Its really simple. &lt;BR /&gt;
&lt;BR /&gt;
1. I created &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;myCustom.gsm&lt;E&gt;&lt;/E&gt; file and saved it as a library global settings subtype. &lt;BR /&gt;
2. Inside the file I made bloolean parameter &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;bNameMVO&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
3. In Zone Stamp file I created next parameter &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;bNameSwitch&lt;E&gt;&lt;/E&gt;&lt;BR /&gt;
4. Then I used this scheme:&lt;BR /&gt;
&lt;BR /&gt;

&lt;PRE&gt;success = LIBRARYGLOBAL ("MyCustom", "bNameMVO", bNameSwitch)
if success &amp;gt; 0 then
elsetext2 0, 0, det
    text2 0, 0, "Not available"
endif&lt;/PRE&gt;

&lt;BR /&gt;
I attached variables needed and created switch in MyCustom.gsm Interface script. &lt;BR /&gt;
&lt;BR /&gt;
This is basic way of communicate MVO interface with library part objects. For me it was important to create zone stamp which was easy to change without scale-dependency. It works! (:</description>
      <pubDate>Thu, 13 Jun 2019 08:03:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/Zones-GDL-Parameters/m-p/230252#M2247</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-06-13T08:03:47Z</dc:date>
    </item>
  </channel>
</rss>

