<?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: ilogic automactly place parts list in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/8879555#M98320</link>
    <description>&lt;P&gt;Try this code instead of the short one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;oPartsList1 = oSheet.PartsLists.Add(oDrawingView, oPlacementPoint, PartsListLevelEnum.kStructuredAllLevels)&lt;/PRE&gt;&lt;P&gt;It works in my case. You need to add&amp;nbsp;&amp;nbsp;"PartsListLevelEnum. ...." .&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2019 14:55:38 GMT</pubDate>
    <dc:creator>galin.filipov</dc:creator>
    <dc:date>2019-06-28T14:55:38Z</dc:date>
    <item>
      <title>ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7354068#M98310</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When placing a base view, I would like to have the part list inmediatly placed on the top right border. I have different parts list styles. One for assemblies, and one for individual parts. Is there a way to also incorporate this in the Ilogic rule?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 09:47:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7354068#M98310</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-05T09:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7354299#M98311</link>
      <description>&lt;P&gt;Sorry that its a bit messy but here is some logic I wrote a long time ago for placing a Parts List.&amp;nbsp; I'm not quite sure how you would go about getting the logic to automatically trigger when you place a drawing view.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDrawingDoc&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;DrawingDocument&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDrawingDoc&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;ActiveDocument&lt;/SPAN&gt;
    
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oSheet&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;Sheet&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oSheet&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDrawingDoc&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;ActiveSheet&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;Detect if the template has a parts list&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Try&lt;/SPAN&gt; 
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPartslistCheck&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;PartsList&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPartslistCheck&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oSheet&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;PartsLists&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;partslistpresent&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;True&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Catch&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;partslistpresent&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;False&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Try&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;partslistpresent&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;True&lt;/SPAN&gt;
        
        &lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;Delete the current parts list&lt;/SPAN&gt;
        &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPartsList&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;PartsList&lt;/SPAN&gt;
        &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPartsList&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDrawingDoc&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;ActiveSheet&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;PartsLists&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Item&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
        &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPartsList&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Delete&lt;/SPAN&gt;
        
&lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;If&lt;/SPAN&gt;
                
    &lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt; Set a reference to the first drawing view on&lt;/SPAN&gt;
    &lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt; the sheet. This assumes the first drawing&lt;/SPAN&gt;
    &lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt; view on the sheet is not a draft view.&lt;/SPAN&gt;
    &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDrawingView&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;DrawingView&lt;/SPAN&gt;
    &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDrawingView&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oSheet&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;DrawingViews&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
    
    &lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt; Set a reference to the sheet's border&lt;/SPAN&gt;
    &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oBorder&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;Border&lt;/SPAN&gt;
    &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oBorder&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oSheet&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;Border&lt;/SPAN&gt;
    
    &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPlacementPoint&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;Point2d&lt;/SPAN&gt;
    
        &lt;SPAN style="color: rgb(128, 0, 0);"&gt;xrev&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oBorder&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;RangeBox&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;MaxPoint&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;X&lt;/SPAN&gt;
        &lt;SPAN style="color: rgb(128, 0, 0);"&gt;yrev&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oBorder&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;RangeBox&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;MaxPoint&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Y&lt;/SPAN&gt;
        
        &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPlacementPoint&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;TransientGeometry&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;CreatePoint2d&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;xrev&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;yrev&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
        
    &lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 128, 128); font-style: italic;"&gt; Create the parts list.&lt;/SPAN&gt;
    &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPartsList1&lt;/SPAN&gt; &lt;SPAN style="color: rgb(255, 0, 0); font-weight: bold;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;PartsList&lt;/SPAN&gt;
    &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPartsList1&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oSheet&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;PartsLists&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Add&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDrawingView&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPlacementPoint&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPartsLis1t&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDrawingDoc&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;ActiveSheet&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;PartsLists&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Item&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;


&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPartsList1&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Sort&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;PART NUMBER&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPartsList1&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Renumber&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPartsList1&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Style&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;UpdateFromGlobal&lt;/SPAN&gt; 
&lt;BR /&gt;'Switch style back and forth to ensure style is up-to-date    
    &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPartsList1&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Style&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDrawingDoc&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;StylesManager&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;PartsListStyles&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Item&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;Parts List (ANSI)&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;
    &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oPartsList1&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Style&lt;/SPAN&gt; &lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;=&lt;/SPAN&gt; &lt;SPAN style="color: rgb(128, 0, 0);"&gt;oDrawingDoc&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;StylesManager&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;PartsListStyles&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 0);"&gt;Item&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;Parts List (ISO)&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 128, 128);"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;)&lt;/SPAN&gt;

&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;InventorVb&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0);"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: rgb(128, 0, 128); font-weight: bold;"&gt;DocumentUpdate&lt;/SPAN&gt;&lt;SPAN style="color: rgb(0, 0, 0); font-weight: bold;"&gt;()&lt;/SPAN&gt;

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 11:24:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7354299#M98311</guid>
      <dc:creator>waynehelley</dc:creator>
      <dc:date>2017-09-05T11:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7354473#M98312</link>
      <description>&lt;P&gt;Thank you for this code. Placing the parts list works well. But regardless if it is an .iam or .ipt, it still places the parts list with the same style. Can you help me with that last part&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 12:12:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7354473#M98312</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-05T12:12:51Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7354562#M98313</link>
      <description>&lt;P&gt;Using&amp;nbsp;something like this should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;Dim&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; oRefDocType &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;As&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;DocumentTypeEnum&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;oRefDocType = oDrawingView.ReferencedDocumentDescriptor.ReferencedDocumentType&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;Select&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Consolas" size="2"&gt;Case&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt; oRefDocType&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;Case&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;DocumentTypeEnum&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.kPartDocumentObject&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;nbsp;&amp;nbsp; MsgBox(&lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;"This is a part"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;Case&lt;/FONT&gt; &lt;FONT color="#2b91af" face="Consolas" size="2"&gt;DocumentTypeEnum&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;.kAssemblyDocumentObject&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; MsgBox(&lt;/FONT&gt;&lt;FONT color="#a31515" face="Consolas" size="2"&gt;"This is an assembly"&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;)&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Consolas" size="2"&gt;End&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Consolas" size="2"&gt;Select&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 12:45:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7354562#M98313</guid>
      <dc:creator>waynehelley</dc:creator>
      <dc:date>2017-09-05T12:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7354901#M98314</link>
      <description>&lt;P&gt;Thanks!!!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 14:13:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7354901#M98314</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-05T14:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7797792#M98315</link>
      <description>&lt;P&gt;Any idea's why this wouldn't work with Inventor 2018?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It fails on this line&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt; &lt;SPAN&gt;oPartsList1&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;PartsLists&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Add&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;oDrawingView&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;oPlacementPoint&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2018 02:20:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7797792#M98315</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-22T02:20:45Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7801711#M98316</link>
      <description>&lt;P&gt;@Anonymous&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There could be a lot of reasons, which I addressed in the other thread. But a more wordy reasoning of why it might not work:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. The variable you are trying to assign it to is not the proper type for what the function returns - or the function may not even be a function, and may have no return value, in which case it also wouldn't work. If you were to have oPartsList1 typed as anything but a parts list somewhere else in the code, it wouldn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. You are not providing a proper "parent" for the function call. If oSheet is not in fact a Sheet, it would not work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. The parameters you are trying to pass the method call are not proper. You need to look up the documentation in the API regarding this as it is different for every method, and there are often exceptions that are documented there ****** THIS IS VERY OFTEN THE CASE****&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. You could have things spelled wrong.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;5. There could be invisible characters on the line&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;6. Syntax could be wrong depending if you are using VB or VBA&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;7. It could just be an invalid method/operation - which kind of goes back to Item 2. If the oSheet belongs to a drawing document that already has a different type of partslist placed somewhere, it could also fail.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;8. The things you are doing are not possible through the UI for valid reasons... Sometimes you can do extra things through API that you can't through UI, but the default assumption should be that if you can't do the steps through the UI without error, then you probably can't do it through the API without error.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Feb 2018 00:15:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7801711#M98316</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-02-23T00:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7955599#M98317</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My name is Milan.&lt;/P&gt;&lt;P&gt;I am new to API and codes, recently tried this code for BOM placing in inventor but didnot work for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can anyone guide me how to exactly run this code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regads,&lt;/P&gt;&lt;P&gt;Milan Kantaria&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 13:20:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7955599#M98317</guid>
      <dc:creator>milan5</dc:creator>
      <dc:date>2018-04-24T13:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7955746#M98318</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4229445"&gt;@milan5&lt;/a&gt;&amp;nbsp;Google is the most powerful tool of the 21st century, and if you use proper keywords, you can usually find answers to your questions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For Example, if I google "Autodesk Inventor + iLogic + how to use rule"&lt;/P&gt;
&lt;P&gt;the first link that pops up is quite valuable. As is the 2nd link, and so on and so forth.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are also tutorials done by Autodesk on the topic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However, noted below is also pretty much the exact same steps that&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 1: Identify if code is VB or VBA:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- There are no variable assignment lines that begin with "set", so we can guess this is likely vb.net - which is used in the rule environment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 2: Enable the iLogic browser.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- In the ribbon bar: Tools &amp;gt; Addins. Ensure iLogic is set to load automatically, and is loaded.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Also in the ribbon bar (while you have a document open:): View &amp;gt; User Interface. Ensure iLogic Browser is checked&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 3:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; - Copy the code from the forums.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 4:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- In the iLogic Browser, go to the external rules tab.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Right click the "Standard Directories"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Click "Create New External&amp;nbsp;Rule"&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Establish the file name&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Paste the copied code from the forums into the rule editor window that pops up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Click Save&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Close the rule dialog&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Step 5:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Right click the rule name in the iLogic browser&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;- Click "Run Rule"&lt;/P&gt;</description>
      <pubDate>Tue, 24 Apr 2018 14:17:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/7955746#M98318</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-04-24T14:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/8448073#M98319</link>
      <description>&lt;P&gt;I know this is an old thread but I was reading through and saw that the question regarding the error on the "PartsLists.Add()" line may not have gotten an answer.&amp;nbsp; If you're doing this in VBA you'll need to put a "Set" keyword in front of that line.&amp;nbsp; It should look something like this:&lt;/P&gt;
&lt;PRE&gt;Set oPartsList1 = oSheet.PartsLists.Add(oDrawingView, oPlacementPoint)&lt;/PRE&gt;</description>
      <pubDate>Wed, 05 Dec 2018 20:03:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/8448073#M98319</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-05T20:03:02Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/8879555#M98320</link>
      <description>&lt;P&gt;Try this code instead of the short one.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;oPartsList1 = oSheet.PartsLists.Add(oDrawingView, oPlacementPoint, PartsListLevelEnum.kStructuredAllLevels)&lt;/PRE&gt;&lt;P&gt;It works in my case. You need to add&amp;nbsp;&amp;nbsp;"PartsListLevelEnum. ...." .&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2019 14:55:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/8879555#M98320</guid>
      <dc:creator>galin.filipov</dc:creator>
      <dc:date>2019-06-28T14:55:38Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/9716406#M98321</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1104010"&gt;@waynehelley&lt;/a&gt;&amp;nbsp;, What i have to do to move partlist to top left corner.&lt;/P&gt;&lt;P&gt;Thank&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 02:12:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/9716406#M98321</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-28T02:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/9716849#M98322</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you would just need to replace 'MaxPoint' with 'MinPoint' for the x-axis.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 09:03:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/9716849#M98322</guid>
      <dc:creator>waynehelley</dc:creator>
      <dc:date>2020-08-28T09:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/9720239#M98323</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1104010"&gt;@waynehelley&lt;/a&gt;&amp;nbsp;, i already repalced but the position seems still wrong like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/813232i76E3D42F5EC99D15/image-size/medium?v=v2&amp;amp;px=400" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I think we need to calculate partlists frame size then + with it, but when i replaced this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;xrev = oBorder.RangeBox.MinPoint.X&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;by this one&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;xrev = oBorder.RangeBox.MinPoint.X + (oPartsList.RangeBox.MaxPoint.X - oPartsList.RangeBox.MinPoint.X)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;then run rule it said&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error on Line 37 : 'oPartsList' is not declared. It may be inaccessible due to its protection level.&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ngoc1357_0-1598854782678.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/813231i683364B3159A196C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ngoc1357_0-1598854782678.png" alt="ngoc1357_0-1598854782678.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;here is my code&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Dim oDrawingDoc As DrawingDocument
oDrawingDoc = ThisApplication.ActiveDocument
    
Dim oSheet As Sheet
oSheet = oDrawingDoc.ActiveSheet

'Detect if the template has a parts list
Try 
Dim oPartslistCheck As PartsList
oPartslistCheck = oSheet.PartsLists(1)
partslistpresent=True
Catch
partslistpresent=False
End Try

If partslistpresent=True
        
        'Delete the current parts list
        Dim oPartsList As PartsList
        oPartsList = oDrawingDoc.ActiveSheet.PartsLists.Item(1)
        oPartsList.Delete
        
End If
                
    ' Set a reference to the first drawing view on
    ' the sheet. This assumes the first drawing
    ' view on the sheet is not a draft view.
    Dim oDrawingView As DrawingView
    oDrawingView = oSheet.DrawingViews(1)
    
    ' Set a reference to the sheet's border
    Dim oBorder As Border
    oBorder = oSheet.Border
    
    Dim oPlacementPoint As Point2d
    
        xrev = oBorder.RangeBox.MinPoint.X + (oPartsList.RangeBox.MaxPoint.X - oPartsList.RangeBox.MinPoint.X)
        yrev = oBorder.RangeBox.MaxPoint.Y
        
        oPlacementPoint = ThisApplication.TransientGeometry.CreatePoint2d(xrev, yrev)
        
    ' Create the parts list.
    Dim oPartsList1 As PartsList
    oPartsList1 = oSheet.PartsLists.Add(oDrawingView, oPlacementPoint)
oPartsLis1t = oDrawingDoc.ActiveSheet.PartsLists.Item(1)


oPartsList1.Sort("PART NUMBER")
oPartsList1.Renumber

oPartsList1.Style.UpdateFromGlobal 

'Switch style back and forth to ensure style is up-to-date    
    oPartsList1.Style = oDrawingDoc.StylesManager.PartsListStyles.Item("Parts List (ANSI)")
    oPartsList1.Style = oDrawingDoc.StylesManager.PartsListStyles.Item("Parts List (ISO)")

InventorVb.DocumentUpdate()&lt;/LI-CODE&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 31 Aug 2020 06:23:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/9720239#M98323</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-31T06:23:03Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/10685792#M98324</link>
      <description>&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/6270849"&gt;@galin.filipov&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for your suggestion to add the PartsListLevelEnum option.&lt;BR /&gt;I had similar code to above which worked for most assemblies, but failed on a few.&lt;BR /&gt;The few that failed I discovered had BOM 'Structured' and 'Parts Only' tabs both enabled.&lt;BR /&gt;Apparently the iLogic code could not decide which level to use.&lt;BR /&gt;Problem solved with your code. Well done!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Jerry</description>
      <pubDate>Wed, 13 Oct 2021 14:00:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/10685792#M98324</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2021-10-13T14:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/10685886#M98325</link>
      <description>Our top-level assemblies use BOM 'Structured', while most subassemblies use BOM 'Parts Only'.&lt;BR /&gt;I will need to test the assembly to see which level is available.&lt;BR /&gt;'StructuredAllLevels' option seems to fail if that BOM tab has not been enabled in the assembly.&lt;BR /&gt;I am using Try-Catch statements, but will search for a better solution.&lt;BR /&gt;</description>
      <pubDate>Wed, 13 Oct 2021 14:34:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/10685886#M98325</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2021-10-13T14:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/10783865#M98326</link>
      <description>&lt;P&gt;i found too solve error&amp;nbsp;&lt;/P&gt;&lt;P&gt;switch in viewproperites&amp;nbsp; to firstlevel&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards Johan&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/582192"&gt;@JBerns&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViewProperties.PNG" style="width: 781px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/994184iCE253CE2D1CAECEE/image-size/large?v=v2&amp;amp;px=999" role="button" title="ViewProperties.PNG" alt="ViewProperties.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ViewProperties2.PNG" style="width: 717px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/994186i6D35CA60BA80CC53/image-size/large?v=v2&amp;amp;px=999" role="button" title="ViewProperties2.PNG" alt="ViewProperties2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Nov 2021 14:37:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/10783865#M98326</guid>
      <dc:creator>JMGunnar</dc:creator>
      <dc:date>2021-11-26T14:37:06Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/11986106#M98327</link>
      <description>&lt;P&gt;Thomas Fitzgerald has written some code with the same outcome. The partlist is positioned in the upright corner of the active document.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AlexFielder/iLogic/blob/master/Autodesk/Thomas%20Fitzgerald/Parts%20List.iLogicVb" target="_blank"&gt;https://github.com/AlexFielder/iLogic/blob/master/Autodesk/Thomas%20Fitzgerald/Parts%20List.iLogicVb&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 14:26:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/11986106#M98327</guid>
      <dc:creator>MichaëlStienstra</dc:creator>
      <dc:date>2023-05-24T14:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/11986132#M98328</link>
      <description>&lt;P&gt;This is the code I am using now. The list is located on the up left corner of the drawing. If you want it is pretty easy to change the position with use of lines 12 and 13.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Main&lt;/SPAN&gt;
 &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;invDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
 &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt; = &lt;SPAN&gt;invDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveSheet&lt;/SPAN&gt;
 &lt;SPAN&gt;Try&lt;/SPAN&gt;
 &lt;SPAN&gt;DeletePartsList&lt;/SPAN&gt;(&lt;SPAN&gt;oSheet&lt;/SPAN&gt;)
 &lt;SPAN&gt;Catch&lt;/SPAN&gt;
 &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
 &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrawingView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&lt;/SPAN&gt; = &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;(1)
 &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oBorder&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Border&lt;/SPAN&gt; = &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;Border&lt;/SPAN&gt;
 &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPlacementPoint&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Point2d&lt;/SPAN&gt;
 &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Not&lt;/SPAN&gt; &lt;SPAN&gt;oBorder&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;xrev&lt;/SPAN&gt; = &lt;SPAN&gt;oBorder&lt;/SPAN&gt;.&lt;SPAN&gt;RangeBox&lt;/SPAN&gt;.&lt;SPAN&gt;MinPoint&lt;/SPAN&gt;.&lt;SPAN&gt;X&lt;/SPAN&gt;+&lt;SPAN&gt;"17"&lt;/SPAN&gt;
	&lt;SPAN&gt;yrev&lt;/SPAN&gt; = &lt;SPAN&gt;oBorder&lt;/SPAN&gt;.&lt;SPAN&gt;RangeBox&lt;/SPAN&gt;.&lt;SPAN&gt;MaxPoint&lt;/SPAN&gt;.&lt;SPAN&gt;Y&lt;/SPAN&gt;
	&lt;SPAN&gt;oPlacementPoint&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN&gt;CreatePoint2d&lt;/SPAN&gt;(&lt;SPAN&gt;xrev&lt;/SPAN&gt;, &lt;SPAN&gt;yrev&lt;/SPAN&gt;)
 &lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;partsListBomType&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartsListLevelEnum&lt;/SPAN&gt; = 46593
 &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPartsList&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartsList&lt;/SPAN&gt; = &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;PartsLists&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oDrawingView&lt;/SPAN&gt;,
&lt;SPAN&gt;oPlacementPoint&lt;/SPAN&gt;, &lt;SPAN&gt;partsListBomType&lt;/SPAN&gt;)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;
&lt;SPAN&gt;Private&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;DeletePartsList&lt;/SPAN&gt;(&lt;SPAN&gt;oSheet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Sheet&lt;/SPAN&gt;)
 &lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPartList&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartsList&lt;/SPAN&gt;
 &lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oPartList&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt;.&lt;SPAN&gt;PartsLists&lt;/SPAN&gt;
 &lt;SPAN&gt;oPartList&lt;/SPAN&gt;.&lt;SPAN&gt;Delete&lt;/SPAN&gt;()
 &lt;SPAN&gt;Next&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 14:37:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/11986132#M98328</guid>
      <dc:creator>MichaëlStienstra</dc:creator>
      <dc:date>2023-05-24T14:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: ilogic automactly place parts list</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/12948244#M98329</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10782352"&gt;@MichaëlStienstra&lt;/a&gt;this Ilogic rule worked well for me, however I want to change the style as I have 3 different part list but can i identify the correct PartsListLevelEnum = ?????&lt;BR /&gt;&lt;BR /&gt;thank you&lt;/P&gt;&lt;P&gt;as you can see in the picture, the ilogic rule add the parts list (iso) template, but I want to add the Cut list (ISO) templete for all drawing that are frames&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="engineeringSEZWD_0-1723161575487.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1396078i5C99B4F69173745A/image-size/medium?v=v2&amp;amp;px=400" role="button" title="engineeringSEZWD_0-1723161575487.png" alt="engineeringSEZWD_0-1723161575487.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Aug 2024 00:00:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-automactly-place-parts-list/m-p/12948244#M98329</guid>
      <dc:creator>engineeringSEZWD</dc:creator>
      <dc:date>2024-08-09T00:00:39Z</dc:date>
    </item>
  </channel>
</rss>

