<?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: gdl parameter menu in Libraries &amp; objects</title>
    <link>https://community.graphisoft.com/t5/Libraries-objects/gdl-parameter-menu/m-p/55559#M38258</link>
    <description>Scott: &lt;BR /&gt;
 &lt;BR /&gt;
A brief overview. &lt;BR /&gt;
 &lt;BR /&gt;
In the Parameters script, you will need a line of code like: &lt;BR /&gt;
&lt;FONT color="red"&gt;Values "Cond_Type" "new", "existing", "demo"&lt;/FONT&gt; &lt;BR /&gt;
where &lt;FONT color="red"&gt;Cond_Type&lt;/FONT&gt; is the name of the parameter and the other names in quotes are the text options you want to appear in the parameter pop up list. &lt;BR /&gt;
 &lt;BR /&gt;
Then in the 2D script, you will need conditional statements like: &lt;BR /&gt;
&lt;FONT color="red"&gt;If Cond_Type="new" then Gosub 10 &lt;BR /&gt;
If Cond_Type="existing" then  Gosub 20 &lt;BR /&gt;
If Cond_Type="demo" then  Gosub 30&lt;/FONT&gt; &lt;BR /&gt;
where you can define the appearance of the part in the subroutines called here. &lt;BR /&gt;
 &lt;BR /&gt;
There are other ways to structure options within the code (If/Then statements), choose a method that makes sense to you. Also, if you can find an existing library part that shows options in a way that is similar to what you desire, then use that code, substituting parameter names and subroutines that fit your needs, so you don't end up reinventing the wheel. &lt;BR /&gt;
 &lt;BR /&gt;
Hope this helps. &lt;BR /&gt;
 &lt;BR /&gt;
David</description>
    <pubDate>Sun, 03 Apr 2005 14:44:58 GMT</pubDate>
    <dc:creator>David Maudlin</dc:creator>
    <dc:date>2005-04-03T14:44:58Z</dc:date>
    <item>
      <title>gdl parameter menu</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/gdl-parameter-menu/m-p/55558#M38257</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;T&gt;Forgive me this has already been addressed, and if so , please direct me to the correct thread.  I am trying to create a symbols library for my various schedules (electrical, mechanical,...etc.) . I am hoping to learn how to create a menu item that will show 3 or 4 options, i.e. existing, new, demo... or in the example of switches, to show in the menu d for dimmer, 3 for 3-way switch, 4 - 4 way switch...  &lt;BR /&gt;
this is  (i think) similar to the boolean option of the parameter screen, but more that just an on/off selection.  I know how to do on/off or just an keyboard inputs, but I want just to show only the selectable options in the object window.&lt;BR /&gt;
I know I may need to explain this more clearly, written communication is not my best skill, but any help in this arena would be very much appreciated.&lt;/T&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 24 May 2023 10:11:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/gdl-parameter-menu/m-p/55558#M38257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-05-24T10:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: gdl parameter menu</title>
      <link>https://community.graphisoft.com/t5/Libraries-objects/gdl-parameter-menu/m-p/55559#M38258</link>
      <description>Scott: &lt;BR /&gt;
 &lt;BR /&gt;
A brief overview. &lt;BR /&gt;
 &lt;BR /&gt;
In the Parameters script, you will need a line of code like: &lt;BR /&gt;
&lt;FONT color="red"&gt;Values "Cond_Type" "new", "existing", "demo"&lt;/FONT&gt; &lt;BR /&gt;
where &lt;FONT color="red"&gt;Cond_Type&lt;/FONT&gt; is the name of the parameter and the other names in quotes are the text options you want to appear in the parameter pop up list. &lt;BR /&gt;
 &lt;BR /&gt;
Then in the 2D script, you will need conditional statements like: &lt;BR /&gt;
&lt;FONT color="red"&gt;If Cond_Type="new" then Gosub 10 &lt;BR /&gt;
If Cond_Type="existing" then  Gosub 20 &lt;BR /&gt;
If Cond_Type="demo" then  Gosub 30&lt;/FONT&gt; &lt;BR /&gt;
where you can define the appearance of the part in the subroutines called here. &lt;BR /&gt;
 &lt;BR /&gt;
There are other ways to structure options within the code (If/Then statements), choose a method that makes sense to you. Also, if you can find an existing library part that shows options in a way that is similar to what you desire, then use that code, substituting parameter names and subroutines that fit your needs, so you don't end up reinventing the wheel. &lt;BR /&gt;
 &lt;BR /&gt;
Hope this helps. &lt;BR /&gt;
 &lt;BR /&gt;
David</description>
      <pubDate>Sun, 03 Apr 2005 14:44:58 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Libraries-objects/gdl-parameter-menu/m-p/55559#M38258</guid>
      <dc:creator>David Maudlin</dc:creator>
      <dc:date>2005-04-03T14:44:58Z</dc:date>
    </item>
  </channel>
</rss>

