<?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: iProperty with pull down menu based on csv or excel in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10711896#M44260</link>
    <description>&lt;P&gt;You can't have a dropdown directly in the iproperties but you can use ilogic to pop up a dialog box and have the list of selections shown there and then set the iproperty to be whatever you selected..&lt;/P&gt;
&lt;P&gt;ilogic rules can be triggered on events like "Before Save", "File Open",etc...&lt;/P&gt;
&lt;P&gt;Do you have your excel list created? Can you post it here?&lt;/P&gt;
&lt;P&gt;Can you also specify exactly which iproperty you want to fill out based on this list?&lt;/P&gt;
&lt;P&gt;Then also please let us know when you would like to be prompted to fill this out? (which event trigger)..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once we have that someone can write the code for you..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Oct 2021 14:02:57 GMT</pubDate>
    <dc:creator>mcgyvr</dc:creator>
    <dc:date>2021-10-25T14:02:57Z</dc:date>
    <item>
      <title>iProperty with pull down menu based on csv or excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10711809#M44259</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for a way to create an iProperty with an pulldown list, which value's are feeded from an external file,&lt;/P&gt;&lt;P&gt;for example an csv or excel sheet.&lt;/P&gt;&lt;P&gt;Can anyone point me in to the right direction?&lt;/P&gt;&lt;P&gt;Just want to mention that i'm a beginner with Inventor. So some more detailed info and patience is much &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;appreciated &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 13:38:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10711809#M44259</guid>
      <dc:creator>m.belkom</dc:creator>
      <dc:date>2021-10-25T13:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: iProperty with pull down menu based on csv or excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10711896#M44260</link>
      <description>&lt;P&gt;You can't have a dropdown directly in the iproperties but you can use ilogic to pop up a dialog box and have the list of selections shown there and then set the iproperty to be whatever you selected..&lt;/P&gt;
&lt;P&gt;ilogic rules can be triggered on events like "Before Save", "File Open",etc...&lt;/P&gt;
&lt;P&gt;Do you have your excel list created? Can you post it here?&lt;/P&gt;
&lt;P&gt;Can you also specify exactly which iproperty you want to fill out based on this list?&lt;/P&gt;
&lt;P&gt;Then also please let us know when you would like to be prompted to fill this out? (which event trigger)..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once we have that someone can write the code for you..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 14:02:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10711896#M44260</guid>
      <dc:creator>mcgyvr</dc:creator>
      <dc:date>2021-10-25T14:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: iProperty with pull down menu based on csv or excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10711988#M44261</link>
      <description>&lt;P&gt;I am in the same boat, and this is as far as I got. The alternate code for pulling data from Excel keeps giving errors when active (it is commented out now), but at least most of the code is there. See attached.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Oct 2021 14:37:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10711988#M44261</guid>
      <dc:creator>Gabriel_Watson</dc:creator>
      <dc:date>2021-10-25T14:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: iProperty with pull down menu based on csv or excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10713273#M44262</link>
      <description>&lt;P&gt;&lt;A href="https://medium.com/autodesk-university/inventor-ilogic-best-practices-and-fundamentals-for-success-b68bce5199f2" target="_blank" rel="noopener"&gt;Here&lt;/A&gt; is a quick overview and get started guide to ilogic.&amp;nbsp;&lt;A href="https://knowledge.autodesk.com/support/inventor-products/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/Inventor-Help/files/GUID-1A217E8E-FE3A-4E84-9926-8E11C81D60D9-htm.html" target="_blank" rel="noopener"&gt;Here&lt;/A&gt; is a link to using ilogic message box and input boxes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a simple example with an explanation of how it works. Place it into a new internal ilogic rule.&amp;nbsp;Create a multivalue user parameter of either text or number depending on the units called "iprop"&lt;/P&gt;&lt;P&gt;Save an excel workbook with name "iProperty" and place some values in Sheet1, Cells, A3 -A20.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Run the below rule&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'Add the values to the parameter from the excel range&lt;BR /&gt;MultiValue.List("iprops") = GoExcel.CellValues("iProperty.xlsx", "Sheet1", "A3", "A20") 'Give the fulll filename of the file or the filename if the excel file is saved inb the same folder as this document&lt;BR /&gt;&lt;BR /&gt;'Allow the user pick a value from the stored list( similar to the parameter drop down)&lt;BR /&gt;iprop = InputListBox("Pick One", MultiValue.List("iprops"), iprop, Title := "iProperties", ListName := "iprops")&lt;BR /&gt;&lt;BR /&gt;'Set a custom iproperty to the selected value&lt;BR /&gt;iProperties.Value("Custom", "iprop") = iprop&lt;BR /&gt;&lt;BR /&gt;'Give the value of custom iprop to a simple variable&lt;BR /&gt;Ans = iProperties.Value("Custom", "iprop")&lt;BR /&gt;&lt;BR /&gt;'Show the value of the variable in a message box&lt;BR /&gt;&lt;EM&gt;MessageBox.Show(Ans, "Custom Property "iprop")&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Any questions on that, feel free to ask away. No question is too trivial at the beginning of the road.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Oct 2021 04:23:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10713273#M44262</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-10-26T04:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: iProperty with pull down menu based on csv or excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10732269#M44263</link>
      <description>&lt;P&gt;Hi ! Thanks for the suggestion and the explaination.&lt;/P&gt;&lt;P&gt;I came a long way (i think..), but I encounter the following error when I select an entry from the selection list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"Error in rule: Desc1, in document: Standard (mm).ipt&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Unable to cast object of type 'System.String' to type 'System.Windows.Forms.IWin32Window'. "&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the More Info TAB I've collected the following :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;System.InvalidCastException: Unable to cast object of type 'System.String' to type 'System.Windows.Forms.IWin32Window'.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at ThisRule.Main()&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions of what I must change?&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 10:41:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10732269#M44263</guid>
      <dc:creator>m.belkom</dc:creator>
      <dc:date>2021-11-03T10:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: iProperty with pull down menu based on csv or excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10732698#M44264</link>
      <description>&lt;P&gt;&lt;SPAN style="font-family: inherit; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;"&gt;I do see an error here where an extra quote is used&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: inherit; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;"&gt;so likely the system string error.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;MessageBox.Show(Ans, "Custom Property "iprop")&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Corrected version with string value between&lt;SPAN&gt;&amp;nbsp;quotations&amp;nbsp;&lt;/SPAN&gt;showing for message box header&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;MessageBox.Show(Ans, "Custom Property-iprop")&lt;/EM&gt;&lt;SPAN style="font-family: inherit; font-size: 16px; color: #3c3c3c; white-space: normal; background-color: #ffffff; -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;If this is not the issue please post the rule you are working with.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 13:37:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10732698#M44264</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-11-03T13:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: iProperty with pull down menu based on csv or excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10733480#M44265</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11597495"&gt;@m.belkom&lt;/a&gt;.&amp;nbsp; Just so you are aware, you can use a list of values (from Excel or elsewhere) to choose from when initially creating an iProperty, but after the iProperty is created it can only hold one value at a time.&amp;nbsp; An iProperty can not contain a multi-value list of possible values like a user parameter can.&amp;nbsp; If you are planning on creating something like an iLogic Form and would like to present the user with a list of possible values to choose from, you can use a user parameter from the Parameters dialog box after you have created one like that.&amp;nbsp; We all would like to have the ability to create and use multi-value iProperties, but that capability does not exist yet.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 18:24:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10733480#M44265</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-11-03T18:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: iProperty with pull down menu based on csv or excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10733779#M44266</link>
      <description>&lt;P&gt;Just as a possible solution, the iPropWiz add-in does support list driven properties. Fort text type properties you can also assign (and edit) multiple values to the property from a&amp;nbsp; list.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 20:25:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10733779#M44266</guid>
      <dc:creator>nmunro</dc:creator>
      <dc:date>2021-11-03T20:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: iProperty with pull down menu based on csv or excel</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10733967#M44267</link>
      <description>&lt;P&gt;Another solution that might work for you is to create your own dialogue window using iLogic. Below you find a very simple example of a rule that presents the user with a window where he/she can select a value. That value is then written to the "Part number" iProperty. (Here is also the list with possible values in the rule...)&lt;/P&gt;&lt;P&gt;But it's also possible to create a window with all the properties that you need to change. Values can be taken from all different kinds of sources. If you start customizing the possibilities are endless, but what the best solution is for you depends on how complicated you want to make it. Do you consider making your own window?&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;list&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;New&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;List&lt;/SPAN&gt;(&lt;SPAN style="color: #ce5c95;"&gt;Of&lt;/SPAN&gt; &lt;SPAN style="color: #ce5c95;"&gt;String&lt;/SPAN&gt;)
&lt;SPAN style="color: #db9652;"&gt;list&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"aaa"&lt;/SPAN&gt;)
&lt;SPAN style="color: #db9652;"&gt;list&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"bbb"&lt;/SPAN&gt;)
&lt;SPAN style="color: #db9652;"&gt;list&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Add&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"ccc"&lt;/SPAN&gt;)

&lt;SPAN style="color: #ce5c95;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #db9652;"&gt;newValue&lt;/SPAN&gt; = &lt;SPAN style="color: #9d6bce;"&gt;InputListBox&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Prompt"&lt;/SPAN&gt;, &lt;SPAN style="color: #db9652;"&gt;list&lt;/SPAN&gt;, &lt;SPAN style="color: #db9652;"&gt;list&lt;/SPAN&gt;.&lt;SPAN style="color: #db9652;"&gt;Item&lt;/SPAN&gt;(0) , &lt;SPAN style="color: #db9652;"&gt;Title&lt;/SPAN&gt; := &lt;SPAN style="color: #35b173;"&gt;"Title"&lt;/SPAN&gt;, &lt;SPAN style="color: #db9652;"&gt;ListName&lt;/SPAN&gt; := &lt;SPAN style="color: #35b173;"&gt;"List"&lt;/SPAN&gt;)
&lt;SPAN style="color: #9d6bce;"&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN style="color: #9d6bce;"&gt;Value&lt;/SPAN&gt;(&lt;SPAN style="color: #35b173;"&gt;"Project"&lt;/SPAN&gt;, &lt;SPAN style="color: #35b173;"&gt;"Part Number"&lt;/SPAN&gt;) = &lt;SPAN style="color: #db9652;"&gt;newValue&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Nov 2021 22:02:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/iproperty-with-pull-down-menu-based-on-csv-or-excel/m-p/10733967#M44267</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2021-11-03T22:02:38Z</dc:date>
    </item>
  </channel>
</rss>

