<?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: Assembly iProperties Exel Importing in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3748682#M138033</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;iLogic is based on VB.net. Most API of .net could be used within it. e.g. you can iterate a folder to get the documents and use Inventor API to open it one by one, finally do your own work. Please refer to MSDN on more info about these methods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oFolder&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; 
&lt;SPAN&gt;oFolder&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;c:\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Files&lt;/SPAN&gt;  &lt;SPAN&gt;As&lt;/SPAN&gt;  &lt;SPAN&gt;String&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt; 
&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; filter ipt&lt;/SPAN&gt;&lt;SPAN&gt;Files&lt;/SPAN&gt;  &lt;SPAN&gt;=&lt;/SPAN&gt;  &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Directory&lt;/SPAN&gt;.&lt;SPAN&gt;GetFiles&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;oFolder&lt;/SPAN&gt;,&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;*.ipt&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;  
 &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oEachDocument&lt;/SPAN&gt;
 &lt;SPAN&gt;For&lt;/SPAN&gt;  &lt;SPAN&gt;Each&lt;/SPAN&gt;  &lt;SPAN&gt;s&lt;/SPAN&gt;  &lt;SPAN&gt;In&lt;/SPAN&gt;  &lt;SPAN&gt;Files&lt;/SPAN&gt;  
      &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; s is each file name&lt;/SPAN&gt;      &lt;SPAN&gt;oEachDocument&lt;/SPAN&gt;  &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;Open&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;s&lt;SPAN&gt;)&lt;/SPAN&gt;     
 &lt;SPAN&gt;Next&lt;/SPAN&gt;  &lt;/PRE&gt;</description>
    <pubDate>Wed, 09 Jan 2013 02:14:26 GMT</pubDate>
    <dc:creator>xiaodong_liang</dc:creator>
    <dc:date>2013-01-09T02:14:26Z</dc:date>
    <item>
      <title>Assembly iProperties Exel Importing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3263650#M138026</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;i have made a iLogic Module who, whit an external rules, import the iProperties value from an external exel file.&lt;/P&gt;&lt;P&gt;The exel file is connected from SQL with the our managerial software.&lt;/P&gt;&lt;P&gt;This in the external rule:&lt;/P&gt;&lt;PRE&gt;i = GoExcel.FindRow("Z:\DISEGNI_INVENTOR\Descrizioni.xls", "Descrizioni", "Cod.Art.", "=", iProperties.Value ("Project", "Part Number"))
iProperties.Value ("Project", "Description") = GoExcel.CurrentRowValue("Descr. Articolo Princ.")
'iProperties.Value("Project", "Project") = GoExcel.CurrentRowValue("Gruppo")
iProperties.Value ("Custom", "Descrizione inglese") = GoExcel.CurrentRowValue("Descr. tradotta")
iProperties.Value ("Custom", "Descr. Agg. ITA") = GoExcel.CurrentRowValue("Descr. Agg. Articolo Princ.")
iProperties.Value ("Custom", "Descr. Agg. ENG") = GoExcel.CurrentRowValue("Descr. Agg. tradotta")
iProperties.Value("Custom", "FileName") = ThisDoc.FileName(True)
'Da abilitare e correggere solo quanto in SAM funzionerà il campo della descrizione in RUSSO!!!
iProperties.Value ("Custom", "Descrizione_Russo") = ("") 'GoExcel.CurrentRowValue("Descrizione. Russo")
iLogicVb.UpdateWhenDone=True&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;It's work fine but i have same question.&lt;/P&gt;&lt;P&gt;There is some string to refresh an iLogic Module? When i push the ruel button the rule add the custom value in iProperties, but there are disabled,&amp;nbsp;i have close the module an reopen it for correct display the value of the iProperties.&lt;IMG title="ff.jpeg" alt="ff.jpeg" align="center" src="http://forums.autodesk.com/t5/image/serverpage/image-id/17938i4C773D9F31D4096D/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Onother question, the most important,&amp;nbsp;is: this module work with single parts. Can I do an rule who do the same thing of my string but in one assembly, do this for every parts of assembly automaticly???&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.s. Exuse me for my bad english.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2011 07:51:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3263650#M138026</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-15T07:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly iProperties Exel Importing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3265404#M138027</link>
      <description>&lt;P&gt;Nobody can help me?? Please! &lt;img id="mansurprised" class="emoticon emoticon-mansurprised" src="https://forums.autodesk.com/i/smilies/16x16_man-surprised.png" alt="Man Surprised" title="Man Surprised" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2011 08:43:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3265404#M138027</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-16T08:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly iProperties Exel Importing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3266266#M138028</link>
      <description>&lt;P&gt;I would try adding:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;InventorVB.DocumentUpdate()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to the code you wrote.&amp;nbsp; This shoud update the iproperties in the document and when I have used it with ilogic forms, the iproperties updated in the form.&amp;nbsp; Does the model you are using have the custom iproperties already added or is the rule creating and populating the custom iproperties?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your second question, I don't know of a way to change the iproperties of a part in an assembly without using the bill of materials.&amp;nbsp; It is something that I will be experimenting with shortly, as I have the same need.&amp;nbsp; I have created an API code in the past that cycled through open files and performed updates, then closed the files.&amp;nbsp; The loop continued until there were no more open files.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Dec 2011 20:36:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3266266#M138028</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-16T20:36:33Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly iProperties Exel Importing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3267352#M138029</link>
      <description>&lt;P&gt;he model who i use some times have this custom&amp;nbsp;iproperties and sometime these must be created.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Dec 2011 07:42:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3267352#M138029</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-19T07:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly iProperties Exel Importing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3268948#M138030</link>
      <description>&lt;P&gt;So i try to explain me&amp;nbsp;better.&lt;/P&gt;&lt;P&gt;When i open one parts or assembly this don't have the custom iProperties. I open my module (the immage on top)&amp;nbsp;with my externar ilogic rule i copy the custom iProperties from the excel file, but when i open the module the form are disabled.&lt;/P&gt;&lt;P&gt;When i press the buttom the value appare in the form but there are always disabled. I must close and reopen the module for activate this form. I searching for some string to put an the end of my esternar rule vho refresh the module and activate the form with the new value.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2011 07:59:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3268948#M138030</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-12-20T07:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly iProperties Exel Importing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3735510#M138031</link>
      <description>&lt;P&gt;I need this function so i retriy here&amp;nbsp;&lt;img id="smileyindifferent" class="emoticon emoticon-smileyindifferent" src="https://forums.autodesk.com/i/smilies/16x16_smiley-indifferent.png" alt="Smiley Indifferent" title="Smiley Indifferent" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the single parte (ipt) i use this ilogic rule that compile the&amp;nbsp;iProperties i nedd copy this from the excel file.&lt;/P&gt;&lt;P&gt;I nedd the same story for the assembly file (iam) in this my ilogi rule must be aply for every single part of assembly, after that i can save all the part (ipt) with the corect&amp;nbsp;iProperties.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Dec 2012 13:56:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3735510#M138031</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-13T13:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly iProperties Exel Importing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3736996#M138032</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;&lt;P&gt;I would try adding:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;InventorVB.DocumentUpdate()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to the code you wrote.&amp;nbsp; This shoud update the iproperties in the document and when I have used it with ilogic forms, the iproperties updated in the form.&amp;nbsp; Does the model you are using have the custom iproperties already added or is the rule creating and populating the custom iproperties?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For your second question, I don't know of a way to change the iproperties of a part in an assembly without using the bill of materials.&amp;nbsp; It is something that I will be experimenting with shortly, as I have the same need.&amp;nbsp; I have created an API code in the past that cycled through&lt;STRONG&gt; open files and performed updates&lt;/STRONG&gt;, then closed the files.&amp;nbsp; The loop continued until there were no more open files.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;So this is what i need. I need a loop who open every single part in assembly and lunch the my external roule who update all te&amp;nbsp;&lt;SPAN&gt;iproperties!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 14 Dec 2012 07:49:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3736996#M138032</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-12-14T07:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: Assembly iProperties Exel Importing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3748682#M138033</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;iLogic is based on VB.net. Most API of .net could be used within it. e.g. you can iterate a folder to get the documents and use Inventor API to open it one by one, finally do your own work. Please refer to MSDN on more info about these methods.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oFolder&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; 
&lt;SPAN&gt;oFolder&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;c:\&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Files&lt;/SPAN&gt;  &lt;SPAN&gt;As&lt;/SPAN&gt;  &lt;SPAN&gt;String&lt;/SPAN&gt;&lt;SPAN&gt;()&lt;/SPAN&gt; 
&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; filter ipt&lt;/SPAN&gt;&lt;SPAN&gt;Files&lt;/SPAN&gt;  &lt;SPAN&gt;=&lt;/SPAN&gt;  &lt;SPAN&gt;System&lt;/SPAN&gt;.&lt;SPAN&gt;IO&lt;/SPAN&gt;.&lt;SPAN&gt;Directory&lt;/SPAN&gt;.&lt;SPAN&gt;GetFiles&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;oFolder&lt;/SPAN&gt;,&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;*.ipt&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;  
 &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oEachDocument&lt;/SPAN&gt;
 &lt;SPAN&gt;For&lt;/SPAN&gt;  &lt;SPAN&gt;Each&lt;/SPAN&gt;  &lt;SPAN&gt;s&lt;/SPAN&gt;  &lt;SPAN&gt;In&lt;/SPAN&gt;  &lt;SPAN&gt;Files&lt;/SPAN&gt;  
      &lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; s is each file name&lt;/SPAN&gt;      &lt;SPAN&gt;oEachDocument&lt;/SPAN&gt;  &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;Documents&lt;/SPAN&gt;.&lt;SPAN&gt;Open&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;s&lt;SPAN&gt;)&lt;/SPAN&gt;     
 &lt;SPAN&gt;Next&lt;/SPAN&gt;  &lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Jan 2013 02:14:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/assembly-iproperties-exel-importing/m-p/3748682#M138033</guid>
      <dc:creator>xiaodong_liang</dc:creator>
      <dc:date>2013-01-09T02:14:26Z</dc:date>
    </item>
  </channel>
</rss>

