<?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: Updating entire assembly using iLogic in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2879142#M141963</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Hi Mike,&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;It seems that the extra few lines of code you suggested to place into the top level rule to stop the changes running on the Master LOD have caused some serious stability issues in the rest of my model. A bunch of features are not changing or updating as they did previously. I've commented out the lines to return it to the previous state and they're working fine again. Looks like i'll have to attack it in another way...&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;Do you know if the issues mentioned are being addressed for 2012 release?&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jan 2011 22:51:53 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-01-12T22:51:53Z</dc:date>
    <item>
      <title>Updating entire assembly using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2843246#M141954</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having a few troubles updating and saving a couple of iLogic controlled assemblies i'm working on...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Firstly, i want to perform and update and save of the main assembly before triggering the opening of the various IDW files to save as PDF's.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only 2 functions i currently know of are:&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;&amp;amp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;iLogicVb.UpdateWhenDone = True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that InventorVb.DocumentUpdate() doesn't seem to perform a proper "update" in Inventor terms as the geometry is not updating immediately and the update button in Inventor is still active after running the rule using this method.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The iLogicVb.UpdateWhenDone = True works perfectly, the only problem is that if i trigger another rule or perform other functions within the rule containing this function, the resulting drawings aren't updated as the update doesn't complete until after all the rules have finished running (a little pointless in this scenario).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The overall aim is to completely update and save (in order to update BOM) the top level assembly, and then subsequently trigger the opening of the relevant 2D drawings. I have figured out the launching, save as, and closing of the 2D drawing files, but i can't seem to get the information updated and saved before it all happens!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any advice is appreciated...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Dec 2010 04:27:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2843246#M141954</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-04T04:27:56Z</dc:date>
    </item>
    <item>
      <title>Re: Updating entire assembly using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2843390#M141955</link>
      <description>&lt;P&gt;If you're not already doing it, try using this sequence:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RuleParametersOutput()&lt;/P&gt;
&lt;P&gt;InventorVb.DocumentUpdate()&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;RuleParametersOutput() is required if you have changed parameter values directly by assigning values to them in the rule. &amp;nbsp;These changes won't be propagated to Inventor until you use this function (or the rule finishes running).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Dec 2010 21:57:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2843390#M141955</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2010-12-04T21:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Updating entire assembly using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2843466#M141956</link>
      <description>&lt;P&gt;Thanks Mike, that extra line works a treat at the assembly level.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My next problem is that in the drawing file that is opened, all of the information in the parts list, title block etc is updated, however the drawing views are not updating correctly. There are no updates pending, and if you highlight the entire drawing view using window select, it appears that the correct updated view is "invisible" in the background with the previously saved view sitting there in front.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestions why this might be happening and / or are there any additional lines of code to force a complete update on all drawing views?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2010 09:36:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2843466#M141956</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-05T09:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Updating entire assembly using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2843580#M141957</link>
      <description>&lt;P&gt;What version of Inventor are you using?&lt;/P&gt;
&lt;P&gt;Are the drawing views showing an assembly Level of Detail (not the Master LOD)?&amp;nbsp; In that case there might be trouble with iLogic rules that run on the &lt;STRONG&gt;After Open Document&lt;/STRONG&gt; event in either the assembly or the drawing.&amp;nbsp; Do you have any rules that are set to run on that event.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2010 20:40:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2843580#M141957</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2010-12-05T20:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Updating entire assembly using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2843588#M141958</link>
      <description>&lt;P&gt;I'm using Pro 2011.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because i'm using component suppression, i have the assembly and sub-assemblies in "iLogic" LOD and this is reflected in the drawing views.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, both the main rule in the assembly and the main rule in the drawing file are both triggered to run After Open Document...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What is the known issue and how do we work around it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2010 21:29:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2843588#M141958</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-05T21:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Updating entire assembly using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2843590#M141959</link>
      <description>&lt;P&gt;The drawing has to open the assembly custom LOD for the views, but it also opens the Master LOD for the parts list.&amp;nbsp;&amp;nbsp; This causes a conflict between iLogic rules and view update on document open.&amp;nbsp; We are working on a solution.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;To work around this problem, add these lines at the top of&amp;nbsp;all your assembly rules that run on the After Document Open event, or that use the Component.IsActive function:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim doc as AssemblyDocument = ThisDoc.Document
If doc.ComponentDefinition.RepresentationsManager.ActiveLevelOfDetailRepresentation.LevelOfDetail = LevelOfDetailEnum.kMasterLevelOfDetail  Then Return

If (Not (doc Is ThisApplication.ActiveDocument)) Then Return

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will prevent the rule from running in the Master LOD, and it will also prevent it from running if the assembly was opened from the drawing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;You also might have to avoid opening the drawing and the assembly in separate windows at the same time.&amp;nbsp; I would recommend making changes in the assembly without the drawing open, save and close the assembly, then open the drawing by itself.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2010 21:42:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2843590#M141959</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2010-12-05T21:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Updating entire assembly using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2843622#M141960</link>
      <description>&lt;P&gt;Ahh i see!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I need to do is open the main assembly which triggers the linking to a unique xls file, updates the model and saves (in an iLogic LOD) and then opens 3 drawings (one after the other is fine), updates the views and adjusts the view scales and positions, saves as pdf and then closes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the main assembly working well (after the updates in your first reply - thanks!) and the triggering of the drawing to open, as well as the view scale, position and save as pdf all work well. The only issue is the updating of the drawing views upon opening the drawing file...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to run the open / update / save as / close operations on the 3 drawings from a rule in the main assembly and have the main assembly close(d)?&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2010 23:20:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2843622#M141960</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-05T23:20:20Z</dc:date>
    </item>
    <item>
      <title>Re: Updating entire assembly using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2843642#M141961</link>
      <description>&lt;P&gt;If you want to automate the whole process,&amp;nbsp;I would recommend&amp;nbsp;putting the top-level rule in another document (not the main assembly) or in an external rule or external program.&amp;nbsp; Have the top level rule&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;open the assembly (which will update by itself)&lt;/P&gt;
&lt;P&gt;- close the assembly&lt;/P&gt;
&lt;P&gt;- open each drawing (which will update and save as PDF)&lt;/P&gt;
&lt;P&gt;- close each drawing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2010 01:36:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2843642#M141961</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2010-12-06T01:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: Updating entire assembly using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2844354#M141962</link>
      <description>&lt;P&gt;You might also have to remove the drawing rule(s) from the list of rules to run on the After Open Document event. &amp;nbsp;There might be a conflict with the view update.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2010 18:07:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2844354#M141962</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2010-12-06T18:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Updating entire assembly using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2879142#M141963</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;Hi Mike,&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;It seems that the extra few lines of code you suggested to place into the top level rule to stop the changes running on the Master LOD have caused some serious stability issues in the rest of my model. A bunch of features are not changing or updating as they did previously. I've commented out the lines to return it to the previous state and they're working fine again. Looks like i'll have to attack it in another way...&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE&gt;Do you know if the issues mentioned are being addressed for 2012 release?&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jan 2011 22:51:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2879142#M141963</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-01-12T22:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Updating entire assembly using iLogic</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2879284#M141964</link>
      <description>&lt;P&gt;Andrew,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I'm not sure exactly what's causing the problems.&amp;nbsp; If you can upload the model or get it to me by email or Buzzsaw, then I can take a look at it and test it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Note that saving (or saving as) the model within a rule that's within the same model&amp;nbsp;doesn't always work.&lt;/P&gt;
&lt;P&gt;In a previous reply I recommended:&lt;/P&gt;
&lt;P&gt;If you want to automate the whole process, I would recommend putting the top-level rule in another document (not the main assembly) or in an external rule or external program.&amp;nbsp; Have the top level rule&lt;/P&gt;
&lt;P&gt;- open the assembly (which will update by itself)&lt;/P&gt;
&lt;P&gt;- close the assembly&lt;/P&gt;
&lt;P&gt;- open each drawing (which will update and save as PDF)&lt;/P&gt;
&lt;P&gt;- close each drawing&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Did you try that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2011 02:03:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/updating-entire-assembly-using-ilogic/m-p/2879284#M141964</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2011-01-13T02:03:34Z</dc:date>
    </item>
  </channel>
</rss>

