<?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: Parts List Table Title Automation in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7466434#M97195</link>
    <description>&lt;P&gt;Thank you very much for that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will try it out at home, as soon as I can, and get back to you.&lt;/P&gt;
&lt;P&gt;I do not have time at work, nor would I be allowed to do it there either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All of my correspondence with the forums is done on my own time,&lt;/P&gt;
&lt;P&gt;and with my own licensed software.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael Kovacik&lt;BR /&gt;.&lt;BR /&gt;Draughting/Designing (Manufacturing) (31 yrs)&lt;BR /&gt;-Drawing Board (3 yrs)&lt;BR /&gt;--Cad (28 yrs)&lt;BR /&gt;---Cadkey (4 yrs)&lt;BR /&gt;---AutoCAD 2d &amp;amp; 3d (16 yrs)&lt;BR /&gt;---Inventor (4 yrs) &lt;BR /&gt;---Autocad and Inventor Simultaneously (4 years)&lt;BR /&gt;---(and recently Autocad/Inventor Customisation)&lt;BR /&gt;.&lt;BR /&gt;Autodesk Product Design Suite Ultimate 2018&lt;BR /&gt;Autocad 2018, Inventor Pro 2018&lt;BR /&gt;(personal licensed copy)&lt;BR /&gt;.&lt;BR /&gt;Johannesburg, South Africa&lt;BR /&gt;.&lt;BR /&gt;(Impossible only means you haven't &lt;BR /&gt;found the solution yet)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Oct 2017 09:59:43 GMT</pubDate>
    <dc:creator>MikeKovacik4928</dc:creator>
    <dc:date>2017-10-17T09:59:43Z</dc:date>
    <item>
      <title>Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7453964#M97189</link>
      <description>&lt;P&gt;Hi all&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I like to add the part number &amp;amp; description of my parent sub assy to the title of the &lt;BR /&gt;part list table to make it easier for the person reading the drawing to link it to the correct view.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I do this by entering it in manually in the Parts List Table Layout, Heading and Table Settings, Title&lt;/P&gt;
&lt;P&gt;It would be nice if you could link iproperties to this title box, so that you could set up a title &lt;BR /&gt;for your parts list to appear automatically and the same for all your title blocks, &lt;BR /&gt;instead of typing it in manually each time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See attached PDF for screenshots of what I am talking about.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IS THERE A WAY OF DOING THIS (WITHOUT USING ILOGIC) ?&lt;/P&gt;
&lt;P&gt;(I have seen similar posts where this has been solved by&amp;nbsp; ilogic)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael Kovacik&lt;BR /&gt;.&lt;BR /&gt;Draughting/Designing (Manufacturing) (31 yrs)&lt;BR /&gt;-Drawing Board (3 yrs)&lt;BR /&gt;--Cad (28 yrs)&lt;BR /&gt;---Cadkey (4 yrs)&lt;BR /&gt;---AutoCAD 2d &amp;amp; 3d (16 yrs)&lt;BR /&gt;---Inventor (4 yrs) &lt;BR /&gt;---Autocad and Inventor Simultaneously (4 years)&lt;BR /&gt;---(and recently Autocad/Inventor Customisation)&lt;BR /&gt;.&lt;BR /&gt;Autodesk Product Design Suite Ultimate 2018&lt;BR /&gt;Autocad 2018, Inventor Pro 2018&lt;BR /&gt;.&lt;BR /&gt;Johannesburg, South Africa&lt;BR /&gt;.&lt;BR /&gt;(Impossible only means you haven't &lt;BR /&gt;found the solution yet)&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 09:43:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7453964#M97189</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2017-10-12T09:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7454451#M97190</link>
      <description>&lt;P&gt;&lt;SPAN&gt;(Impossible only means you haven't used ilogic yet?)&amp;nbsp;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Whats wrong with using ilogic?&lt;/P&gt;
&lt;P&gt;Its perfect for this type of customization..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 12:34:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7454451#M97190</guid>
      <dc:creator>mcgyvr</dc:creator>
      <dc:date>2017-10-12T12:34:39Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7455950#M97191</link>
      <description>&lt;P&gt;Nothing at all, if that is the way it has to be done.&lt;/P&gt;
&lt;P&gt;I am new on ilogic, but am more than willing to learn.&lt;/P&gt;
&lt;P&gt;How is it done?&lt;/P&gt;
&lt;P&gt;Lead the way&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Oct 2017 19:04:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7455950#M97191</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2017-10-12T19:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7457667#M97192</link>
      <description>&lt;P&gt;Any takers?&lt;/P&gt;
&lt;P&gt;I still want to implement this.&lt;/P&gt;
&lt;P&gt;Like I said I am very willing to use ilogic,&lt;/P&gt;
&lt;P&gt;but need help as I am a newbie with ilogic&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael Kovacik&lt;BR /&gt;.&lt;BR /&gt;Draughting/Designing (Manufacturing) (31 yrs)&lt;BR /&gt;-Drawing Board (3 yrs)&lt;BR /&gt;--Cad (28 yrs)&lt;BR /&gt;---Cadkey (4 yrs)&lt;BR /&gt;---AutoCAD 2d &amp;amp; 3d (16 yrs)&lt;BR /&gt;---Inventor (4 yrs) &lt;BR /&gt;---Autocad and Inventor Simultaneously (4 years)&lt;BR /&gt;---(and recently Autocad/Inventor Customisation)&lt;BR /&gt;.&lt;BR /&gt;Autodesk Product Design Suite Ultimate 2018&lt;BR /&gt;Autocad 2018, Inventor Pro 2018&lt;BR /&gt;.&lt;BR /&gt;Johannesburg, South Africa&lt;BR /&gt;.&lt;BR /&gt;(Impossible only means you haven't &lt;BR /&gt;found the solution yet)&lt;/P&gt;</description>
      <pubDate>Fri, 13 Oct 2017 09:49:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7457667#M97192</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2017-10-13T09:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7462609#M97193</link>
      <description>&lt;P&gt;okay&lt;/P&gt;
&lt;P&gt;I guess I will carry on doing this manually for the time being!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 09:34:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7462609#M97193</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2017-10-16T09:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7462917#M97194</link>
      <description>&lt;P&gt;I wrote the following examples below in VBA and the last one is converted to iLogic / VB.net. This is most of the work done for you. now all you need to do is get the part number / property of whatever sub occurrence you were referring to and insert the text where it shows in the below code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would have tried to work that out but It was not clear on what assembly you were trying to pull the iproperty from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope it helps, Matt.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Public Sub ChangeAllPartsLists_AllSheets()

    ' Define and get drawing document
    Dim oDoc As DrawingDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    ' Define sheet and parts list
    Dim oSheet As Sheet
    Dim oPL As PartsList
    
    ' Iterate through all sheets in the active document
    For Each oSheet In oDoc.Sheets
    
        ' Iterate through all parts lists in each sheet
        For Each oPL In oSheet.PartsLists
        
            ' Change the title of the parts list to a string
            oPL.Title = "TEST TITLE HERE"
        Next
    Next
    
End Sub&lt;/PRE&gt;
&lt;PRE&gt;Public Sub ChangeAllPartsLists_ActiveSheet()

    Dim oDoc As DrawingDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    Dim oSheet As Sheet
    Set oSheet = oDoc.ActiveSheet
    
    Dim oPL As PartsList
    
    ' This could be used instead of the For Each loop if there is only ever one parts list on a sheet.
    'Set oPL = oSheet.PartsLists.Item(1)
    
    For Each oPL In oSheet.PartsLists
        oPL.Title = "TEST TITLE HERE"
    Next
    

End Sub&lt;/PRE&gt;
&lt;PRE&gt;' iLogic Rule to change the title text of all parts lists

' Define and get drawing document
Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument

' Iterate through all sheets in the active document
For Each oSheet As Sheet In oDoc.Sheets
	' Iterate through all parts lists in each sheet
	For Each oPL As PartsList In oSheet.PartsLists
		' Change the title of the parts list to a string
		oPL.Title = "ILOGIC TEST TITLE HERE"
	Next
Next
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 11:51:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7462917#M97194</guid>
      <dc:creator>matt_jlt</dc:creator>
      <dc:date>2017-10-16T11:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7466434#M97195</link>
      <description>&lt;P&gt;Thank you very much for that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I will try it out at home, as soon as I can, and get back to you.&lt;/P&gt;
&lt;P&gt;I do not have time at work, nor would I be allowed to do it there either.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All of my correspondence with the forums is done on my own time,&lt;/P&gt;
&lt;P&gt;and with my own licensed software.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael Kovacik&lt;BR /&gt;.&lt;BR /&gt;Draughting/Designing (Manufacturing) (31 yrs)&lt;BR /&gt;-Drawing Board (3 yrs)&lt;BR /&gt;--Cad (28 yrs)&lt;BR /&gt;---Cadkey (4 yrs)&lt;BR /&gt;---AutoCAD 2d &amp;amp; 3d (16 yrs)&lt;BR /&gt;---Inventor (4 yrs) &lt;BR /&gt;---Autocad and Inventor Simultaneously (4 years)&lt;BR /&gt;---(and recently Autocad/Inventor Customisation)&lt;BR /&gt;.&lt;BR /&gt;Autodesk Product Design Suite Ultimate 2018&lt;BR /&gt;Autocad 2018, Inventor Pro 2018&lt;BR /&gt;(personal licensed copy)&lt;BR /&gt;.&lt;BR /&gt;Johannesburg, South Africa&lt;BR /&gt;.&lt;BR /&gt;(Impossible only means you haven't &lt;BR /&gt;found the solution yet)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 09:59:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7466434#M97195</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2017-10-17T09:59:43Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7468406#M97196</link>
      <description>&lt;P&gt;Fantastic!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOW&lt;/P&gt;
&lt;P&gt;WHAT DO I ENTER INTO THE ILOGIC INSTEAD OF&lt;/P&gt;
&lt;P align="LEFT"&gt;"ILOGIC TEST TITLE HERE" TO GET THE IPROPERTIES&lt;/P&gt;
&lt;P align="LEFT"&gt;FROM THE IAM.&lt;/P&gt;
&lt;P align="LEFT"&gt;IN OTHER WORDS I WANT TO USE THE IPROPERTY&lt;/P&gt;
&lt;P&gt;VALUE FROM THE ASSEMBLY, RATHER THAN THE TEXT STRING.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See attached pdf for full description of what I want to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael Kovacik&lt;/P&gt;
&lt;P&gt;Draughting/Designing (Manufacturing) (31 yrs)&lt;BR /&gt;-Drawing Board (3 yrs)&lt;BR /&gt;-Cad (28 yrs)&lt;BR /&gt;--Cadkey (4 yrs)&lt;BR /&gt;--AutoCAD 2d &amp;amp; 3d (16 yrs)&lt;BR /&gt;--Inventor (4 yrs)&lt;BR /&gt;--Autocad and Inventor Simultaneously (4 years)&lt;BR /&gt;--(and recently Autocad/Inventor Customisation)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Autodesk Product Design Suite Ultimate 2018&lt;/P&gt;
&lt;P&gt;(own personal licensed copy)&lt;BR /&gt;Autocad 2018, Inventor Pro 2018&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Johannesburg, South Africa&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(Impossible only means you haven't &lt;BR /&gt;found the solution yet)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 19:04:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7468406#M97196</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2017-10-17T19:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7468941#M97197</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;' iLogic rule to get the iproperties&lt;BR /&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; Define Variables&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;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisDrawing&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Document&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Sheets&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Item&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; Check if there are any views on the sheet&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oSheet&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;DrawingViews&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Count&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;0&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Exit Sub&lt;/SPAN&gt;

&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; Define Variables&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisDrawing&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ModelDocument&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oView&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingView&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;DrawingViews&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Item&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

&lt;SPAN&gt;'&lt;/SPAN&gt;&lt;SPAN&gt; Get Description from model&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;strDescr&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;oDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Item&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Design Tracking Properties&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Item&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Description&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;strPartNo&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;oDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Item&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Design Tracking Properties&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Item&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Part Number&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Value&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;' iLogic Rule to change the title text of all parts lists&lt;BR /&gt;&lt;BR /&gt;' Define and get drawing document&lt;BR /&gt;Dim oDoc As DrawingDocument = ThisApplication.ActiveDocument&lt;BR /&gt;&lt;BR /&gt;' Iterate through all sheets in the active document&lt;BR /&gt;For Each oSheet As Sheet In oDoc.Sheets&lt;BR /&gt; ' Iterate through all parts lists in each sheet&lt;BR /&gt; For Each oPL As PartsList In oSheet.PartsLists&lt;BR /&gt; ' Change the title of the parts list to a string&lt;BR /&gt; oPL.Title = strPartNo &amp;amp; strDescr &amp;amp; "Anytext you want"&lt;BR /&gt; Next&lt;BR /&gt;Next&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Oct 2017 21:45:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7468941#M97197</guid>
      <dc:creator>matt_jlt</dc:creator>
      <dc:date>2017-10-17T21:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7470114#M97198</link>
      <description>&lt;P&gt;Have quickly tried this out during my lunch hour.&lt;/P&gt;
&lt;P&gt;Doesn't seem to work.&lt;/P&gt;
&lt;P&gt;Get error message.&lt;/P&gt;
&lt;P&gt;See jpg's attached.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 09:54:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7470114#M97198</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2017-10-18T09:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7470222#M97199</link>
      <description>&lt;P&gt;That would be because i just did a copy paste to put the two segments together. The error message was stating that there were two variables with the same name. Just had to change the second oDoc to something different which I chose oDrgDoc. I haven't tested it but it should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;' iLogic rule to get the iproperties
' Define Variables
Dim oSheet As Sheet = ThisDrawing.Document.Sheets.Item(1)

' Check if there are any views on the sheet
If oSheet.DrawingViews.Count = 0 Then Exit Sub

' Define Variables
Dim oDoc As Document = ThisDrawing.ModelDocument
Dim oView As DrawingView = oSheet.DrawingViews.Item(1)

' Get Description from model
Dim strDescr As String = oDoc.PropertySets.Item("Design Tracking Properties").Item("Description").Value
Dim strPartNo As String = oDoc.PropertySets.Item("Design Tracking Properties").Item("Part Number").Value   

' iLogic Rule to change the title text of all parts lists

' Define and get drawing document
Dim oDrgDoc As DrawingDocument = ThisApplication.ActiveDocument

' Iterate through all sheets in the active document
For Each oSheet As Sheet In oDrgDoc .Sheets
 ' Iterate through all parts lists in each sheet
 For Each oPL As PartsList In oSheet.PartsLists
 ' Change the title of the parts list to a string
 oPL.Title = strPartNo &amp;amp; strDescr &amp;amp; "Anytext you want"
 Next
Next&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Oct 2017 10:38:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7470222#M97199</guid>
      <dc:creator>matt_jlt</dc:creator>
      <dc:date>2017-10-18T10:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7470292#M97200</link>
      <description>Dim invApp As Inventor.Application&lt;BR /&gt;invApp = ThisApplication&lt;BR /&gt;&lt;BR /&gt;If invApp.ActiveDocumentType = kDrawingDocumentObject Then&lt;BR /&gt;&lt;BR /&gt;Else&lt;BR /&gt;MsgBox ("You can access in this rule!")&lt;BR /&gt;Exit Sub&lt;BR /&gt;End If&lt;BR /&gt;&lt;BR /&gt;Dim oDWGDoc As DrawingDocument&lt;BR /&gt;oDWGDoc = ThisApplication.ActiveDocument&lt;BR /&gt;&lt;BR /&gt;Dim oSheet As Sheet&lt;BR /&gt;Dim oPartlist As PartsList&lt;BR /&gt;&lt;BR /&gt;Dim PartNo As String&lt;BR /&gt;Dim Desc As String&lt;BR /&gt;Dim Mass as String&lt;BR /&gt;&lt;BR /&gt;Dim oModelDoc As Document&lt;BR /&gt;Dim oAssyDocType As AssemblyDocument&lt;BR /&gt;Dim oPartDocType As PartDocument&lt;BR /&gt;&lt;BR /&gt;For Each oSheet In oDWGDoc.Sheets&lt;BR /&gt;For Each oPartlist In oSheet.PartsLists&lt;BR /&gt;oModelDoc = oPartlist.ReferencedDocumentDescriptor.ReferencedDocument '(Get Data From Part List Document)&lt;BR /&gt;&lt;BR /&gt;PartNo = oModelDoc.PropertySets.Item("Design Tracking Properties").Item("Part Number").Value&lt;BR /&gt;Desc = oModelDoc.PropertySets.Item("Design Tracking Properties").Item("Description").Value&lt;BR /&gt;&lt;BR /&gt;If oModeldoc.documenttype = kAssemblyDocumentObject Then&lt;BR /&gt;oAssyDocType = oModelDoc&lt;BR /&gt;PropMass = Round(oAssyDocType.ComponentDefinition.MassProperties.Mass, 2) ' get mass&lt;BR /&gt;Else&lt;BR /&gt;oPartDocType = oModelDoc&lt;BR /&gt;PropMass = Round(oPartDocType.ComponentDefinition.MassProperties.Mass, 2) ' get mass&lt;BR /&gt;End If&lt;BR /&gt;oPartlist.Title = "PART LIST; " &amp;amp; PartNo &amp;amp; " ; " &amp;amp; Desc &amp;amp; " ; MASS - " &amp;amp; PropMass &amp;amp; " Kg"&lt;BR /&gt;Next&lt;BR /&gt;Next</description>
      <pubDate>Wed, 18 Oct 2017 11:12:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7470292#M97200</guid>
      <dc:creator>dgreatice</dc:creator>
      <dc:date>2017-10-18T11:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7470300#M97201</link>
      <description>You can use this code even no base view (only partlist)</description>
      <pubDate>Wed, 18 Oct 2017 11:15:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7470300#M97201</guid>
      <dc:creator>dgreatice</dc:creator>
      <dc:date>2017-10-18T11:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7470898#M97202</link>
      <description>&lt;P&gt;Still doesn't work&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See attached message&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 14:21:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7470898#M97202</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2017-10-18T14:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7471180#M97203</link>
      <description>&lt;P&gt;Did you try my code mike?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 15:27:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7471180#M97203</guid>
      <dc:creator>dgreatice</dc:creator>
      <dc:date>2017-10-18T15:27:28Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7471866#M97204</link>
      <description>&lt;P&gt;Perfect Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2017 18:26:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7471866#M97204</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2017-10-18T18:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7473614#M97205</link>
      <description>&lt;P&gt;Thanks for that ilogic programme. It worked perfectly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you remove the mass part from&amp;nbsp;your programme.&lt;/P&gt;
&lt;P&gt;or tell me what to remove from the ilogic programme,&lt;/P&gt;
&lt;P&gt;I don't want the mass to appear in the title block title.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Michael Kovacik&lt;BR /&gt;.&lt;BR /&gt;Draughting/Designing (Manufacturing) (31 yrs)&lt;BR /&gt;-Drawing Board (3 yrs)&lt;BR /&gt;--Cad (28 yrs)&lt;BR /&gt;---Cadkey (4 yrs)&lt;BR /&gt;---AutoCAD 2d &amp;amp; 3d (16 yrs)&lt;BR /&gt;---Inventor (4 yrs) &lt;BR /&gt;---Autocad and Inventor Simultaneously (4 years)&lt;BR /&gt;---(and recently Autocad/Inventor Customisation)&lt;BR /&gt;.&lt;BR /&gt;Autodesk Product Design Suite Ultimate 2018&lt;BR /&gt;Autocad 2018, Inventor Pro 2018&lt;BR /&gt;(personal licensed copy)&lt;BR /&gt;.&lt;BR /&gt;Johannesburg, South Africa&lt;BR /&gt;.&lt;BR /&gt;(Impossible only means you haven't &lt;BR /&gt;found the solution yet)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:47:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7473614#M97205</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2017-10-19T09:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7473692#M97206</link>
      <description>It simple.&lt;BR /&gt;&lt;BR /&gt;At row 3 from bottom. Type ' after Desc&lt;BR /&gt;&lt;BR /&gt;It seem like this:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;oPartlist.Title = "PART LIST; " &amp;amp; PartNo &amp;amp; " ; " &amp;amp; Desc ' &amp;amp; " ; MASS - " &amp;amp; PropMass &amp;amp; " Kg"&lt;BR /&gt;&lt;BR /&gt;For the futher if you want to activated mass value, just delete '</description>
      <pubDate>Thu, 19 Oct 2017 10:33:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7473692#M97206</guid>
      <dc:creator>dgreatice</dc:creator>
      <dc:date>2017-10-19T10:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7486351#M97207</link>
      <description>&lt;P&gt;Fantastic&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think I must start learning ilogic as one of my next tasks!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Tue, 24 Oct 2017 09:59:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/7486351#M97207</guid>
      <dc:creator>MikeKovacik4928</dc:creator>
      <dc:date>2017-10-24T09:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Parts List Table Title Automation</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/8920271#M97208</link>
      <description>&lt;P&gt;dgreatice,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx for posting your elegant code.&lt;/P&gt;&lt;P&gt;I used it and it works like a charm.&lt;/P&gt;&lt;P&gt;Thanx!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is one challenge, however, which I can't figure out after many hours of trying.&lt;/P&gt;&lt;P&gt;If you (or anybody else who knows how to code) would please help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Challenge: The macro fails when the iProperty does not exist.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To try to solve this, I added some of Curtis' code (adds iProperties to a part or assembly). His code works great as a stand-alone macro, but I can't figure out how to get his code to act on the assembly which the Parts List is referencing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When running this macro from the drawing file, would you please help me know how to reference the assembly file?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the relevant line is this:&lt;/P&gt;&lt;P&gt;oModelDoc = oPartlist.ReferencedDocumentDescriptor.ReferencedDocument ' (Get Data From Part List Document)&lt;/P&gt;&lt;P&gt;I've annotated it with a note typed in all uncials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanx for any input you may be able to give!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2019 20:36:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/parts-list-table-title-automation/m-p/8920271#M97208</guid>
      <dc:creator>cadman777</dc:creator>
      <dc:date>2019-07-19T20:36:52Z</dc:date>
    </item>
  </channel>
</rss>

