<?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: Material of the model property in drawing view label. in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/11815218#M62392</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;Can you help me what I need to do to show the materials per part?&lt;/P&gt;&lt;P&gt;I have an assembly with different parts, each part has a different material. In the assembly I create different views which I then transfer to the drawing. In these views I would like to have the material of the parts in addition to the model name and the scale.&lt;/P&gt;&lt;P&gt;Unfortunately I can't find a solution for the materials.&lt;/P&gt;</description>
    <pubDate>Sat, 11 Mar 2023 22:50:55 GMT</pubDate>
    <dc:creator>max.baumann07</dc:creator>
    <dc:date>2023-03-11T22:50:55Z</dc:date>
    <item>
      <title>Material of the model property in drawing view label.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/9560423#M62385</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I use the code below to add Part number and quantity per each view in the drawing.&lt;/P&gt;&lt;P&gt;I would like to show the part material as well but not being able to find anything similar.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;' Set a reference to the drawing document.' This assumes a drawing document is active.
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
Dim oActiveSheet As Sheet
oActiveSheet = oDrawDoc.ActiveSheet
Dim oViews As DrawingViews
Dim oView As DrawingView

oViews = oActiveSheet.DrawingViews
For Each oView In oViews
	If oView.ViewType &amp;lt;&amp;gt; 10504 And oView.ViewType &amp;lt;&amp;gt; 10502 And oView.ViewType &amp;lt;&amp;gt; 10503 And oView.IsFlatPatternView = False Then ' Not kProjectedDrawingViewType
		'Get the full filename Of the view model
		Dim oModelFileName As String
		oModelFileName = oView.ReferencedDocumentDescriptor.ReferencedDocument.PropertySets.Item(3).Item(2).Value



		
		'format the text first line
		oStringItem = "&amp;lt;StyleOverride Underline='True' FontSize='0.35'&amp;gt; ITEM " &amp;amp; oItemValue &amp;amp; " &amp;lt;/StyleOverride&amp;gt;"
		'format the text second line
		oStringScale = "&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride FontSize='0.3'&amp;gt;(Scale &amp;lt;DrawingViewScale/&amp;gt;)&amp;lt;/StyleOverride&amp;gt;"
		'add to the view label
		oQty = "&amp;lt;StyleOverride Font='" &amp;amp; sFont &amp;amp; "' FontSize='" &amp;amp; sFSize1 &amp;amp; "' Bold='FALSE'&amp;gt;" _
		&amp;amp; "Quantity: " &amp;amp; "&amp;lt;Property Document='model' PropertySet='User Defined Properties' Property='Qty' "  &amp;amp; _
		"FormatID='{D5CDD505-2E9C-101B-9397-08002B2CF9AE}' &amp;gt;Qty&amp;lt;/Property&amp;gt;&amp;lt;/StyleOverride&amp;gt;" 
		

		oView.Label.FormattedText = oModelFileName &amp;amp; "&amp;lt;Br/&amp;gt;" _
		&amp;amp; oQty
		CentText = ThisApplication.TransientGeometry.CreatePoint2d(oView.Center.X - oView.Width/5, oView.Center.Y - oView.Height / 1.8 )
		oView.Label.Position= CentText
		oView.Label.HorizontalJustification = HorizontalTextAlignmentEnum.kAlignTextLeft
		oView.ShowLabel = True

	End If
Next&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 04 Jun 2020 13:59:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/9560423#M62385</guid>
      <dc:creator>aurel_e</dc:creator>
      <dc:date>2020-06-04T13:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: Material of the model property in drawing view label.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/9560508#M62386</link>
      <description>&lt;P&gt;Try it with this edit:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #808080;"&gt;' Set a reference to the drawing document.' This assumes a drawing document is active.&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDrawDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oViews&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingViews&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDrawDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveSheet&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;DrawingViews&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DrawingView&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oPropSet&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PropertySet&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;' "Design Tracking Properties" set&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oModelFileName&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oMaterial&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;String&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oViews&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ViewType&lt;/SPAN&gt; &amp;lt;&amp;gt; 10504 &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ViewType&lt;/SPAN&gt; &amp;lt;&amp;gt; 10502 &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ViewType&lt;/SPAN&gt; &amp;lt;&amp;gt; 10503 &lt;SPAN style="color: #ff0000;"&gt;And&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;IsFlatPatternView&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt; &lt;SPAN style="color: #808080;"&gt;' Not kProjectedDrawingViewType&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oPropSet&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ReferencedDocumentDescriptor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ReferencedDocument&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;PropertySets&lt;/SPAN&gt;(3)
		&lt;SPAN style="color: #808080;"&gt;'Get the full filename Of the view model&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oModelFileName&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPropSet&lt;/SPAN&gt;(2).&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;

		&lt;SPAN style="color: #808080;"&gt;'format the text first line&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oStringItem&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"&amp;lt;StyleOverride Underline='True' FontSize='0.35'&amp;gt; ITEM "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;oItemValue&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;" &amp;lt;/StyleOverride&amp;gt;"&lt;/SPAN&gt;
		&lt;SPAN style="color: #808080;"&gt;'format the text second line&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oStringScale&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"&amp;lt;Br/&amp;gt;&amp;lt;StyleOverride FontSize='0.3'&amp;gt;(Scale &amp;lt;DrawingViewScale/&amp;gt;)&amp;lt;/StyleOverride&amp;gt;"&lt;/SPAN&gt;
		&lt;SPAN style="color: #808080;"&gt;'add to the view label&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oQty&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"&amp;lt;StyleOverride Font='"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;sFont&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;"' FontSize='"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;sFSize1&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;"' Bold='FALSE'&amp;gt;"&lt;/SPAN&gt; _
		&amp;amp; &lt;SPAN style="color: #008080;"&gt;"Quantity: "&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;"&amp;lt;Property Document='model' PropertySet='User Defined Properties' Property='Qty' "&lt;/SPAN&gt;  &amp;amp; _
		&lt;SPAN style="color: #008080;"&gt;"FormatID='{D5CDD505-2E9C-101B-9397-08002B2CF9AE}' &amp;gt;Qty&amp;lt;/Property&amp;gt;&amp;lt;/StyleOverride&amp;gt;"&lt;/SPAN&gt; 
		&lt;SPAN style="color: #800000;"&gt;oMaterial&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oPropSet&lt;/SPAN&gt;(10).&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt;
		
		&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Label&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;FormattedText&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oModelFileName&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;"&amp;lt;Br/&amp;gt;"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;oQty&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #008080;"&gt;"&amp;lt;Br/&amp;gt;"&lt;/SPAN&gt; &amp;amp; &lt;SPAN style="color: #800000;"&gt;oMaterial&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;CentText&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreatePoint2d&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Center&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;X&lt;/SPAN&gt; - &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Width&lt;/SPAN&gt;/5, &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Center&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Y&lt;/SPAN&gt; - &lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Height&lt;/SPAN&gt; / 1.8 )
		&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Label&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Position&lt;/SPAN&gt;= &lt;SPAN style="color: #800000;"&gt;CentText&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Label&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;HorizontalJustification&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;HorizontalTextAlignmentEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kAlignTextLeft&lt;/SPAN&gt;
		&lt;SPAN style="color: #800000;"&gt;oView&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ShowLabel&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;

	&lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 04 Jun 2020 14:35:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/9560508#M62386</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2020-06-04T14:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Material of the model property in drawing view label.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/9560567#M62387</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wow! It's what I was looking for.&lt;/P&gt;&lt;P&gt;I tried for 2 hours to find something in web but no success.&lt;/P&gt;&lt;P&gt;Where did you find that&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;oMaterial = oPropSet(10).Value&lt;/LI-CODE&gt;&lt;P&gt;I suppose this is an experience matter, but I was looking to identify the model properties in the left side of the Ilogic editor interface:&amp;nbsp;&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="2020-06-04 15_54_54-Edit Rule_ Rule15.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/779855iB8B26DF829E94147/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2020-06-04 15_54_54-Edit Rule_ Rule15.png" alt="2020-06-04 15_54_54-Edit Rule_ Rule15.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 14:56:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/9560567#M62387</guid>
      <dc:creator>aurel_e</dc:creator>
      <dc:date>2020-06-04T14:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: Material of the model property in drawing view label.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/9560592#M62388</link>
      <description>&lt;P&gt;You can find the local iProperty for the local Material under the Snippets / System tab / iProperties / Material, but that isn't what I used, because that wouldn't work for your situation.&amp;nbsp; I have a rule that writes all iProperties to a TXT file, which I keep a copy of in MyDocuments, for quick reference.&amp;nbsp; It lists every PropertySet (in order, and by name), and every Property (in order, and by name) within each PropertySet.&amp;nbsp; This makes it quick and simple to know exactly what PropertySet item number or name, and exactly what Property item number or name to use in my codes.&amp;nbsp; Like a cheat sheet or quick reference.&amp;nbsp; There is also a property further down the same set for "Material Identifier" (item # 52).&lt;/P&gt;&lt;P&gt;Of course there is also the iProperties.Value(oComp or oDoc,"PropertySet Name","Property Name") = , or iProperties.Expression(.... route too.&amp;nbsp; Whichever you prefer.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jun 2020 15:11:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/9560592#M62388</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2020-06-04T15:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Material of the model property in drawing view label.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/10249064#M62389</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any chance you could post either the TXT file or that rule that lists all he properties?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 01:19:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/10249064#M62389</guid>
      <dc:creator>dlongley</dc:creator>
      <dc:date>2021-04-19T01:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Material of the model property in drawing view label.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/10250546#M62390</link>
      <description>&lt;P&gt;Sure.&amp;nbsp; Here is one of the simpler iLogic rules for writing out a list of all the iProperty names &amp;amp; ID's to a new text file.&lt;/P&gt;&lt;P&gt;As you can see, line two is pointing to the Windows Temp folder, which is where the new text file will be created, if not changed.&amp;nbsp; Just so you know where the file will be located, even though the last line launches that text file for you to view.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oDoc As Document = ThisDoc.Document
Dim oTxtFile As String = "C:\Temp\List Of All iProperties.txt"
If System.IO.File.Exists(oTxtFile) Then
	oAns = MsgBox("The text file already exists." &amp;amp; vbCrLf &amp;amp; _
	"Do you want to overwrite it?", vbYesNo + vbQuestion, "FILE EXISTS")
	If oAns = vbNo Then Exit Sub
End If
Dim oWriter As System.IO.StreamWriter
oWriter = System.IO.File.CreateText(oTxtFile)
oWriter.WriteLine("List Of All iProperties:")
oWriter.WriteLine("")
For i As Integer = 1 To oDoc.PropertySets.Count
	Dim oSet As PropertySet = oDoc.PropertySets.Item(i)
	oWriter.WriteLine("")
	oWriter.WriteLine(i &amp;amp; ")  " &amp;amp; oSet.Name &amp;amp; " (Internal Name = " &amp;amp; oSet.InternalName &amp;amp; ")")
	For j As Integer = 1 To oSet.Count
		Dim oProp As Inventor.Property = oSet.Item(j)
		oWriter.WriteLine(vbTab &amp;amp; j &amp;amp; ")  " &amp;amp; oProp.Name &amp;amp; " (PropID = " &amp;amp; oProp.PropId &amp;amp; ")")
	Next
Next
oWriter.Close()
ThisDoc.Launch(oTxtFile)&lt;/LI-CODE&gt;&lt;P&gt;There is a lot more info that could be written out to the text file about these items, but I wanted to keep this version simple.&amp;nbsp; I also have some other similar rules that write more data out, and some that write data out to Excel, instead of a text file.&amp;nbsp; Similar steps can be used to list out data about Parameters and other similar complex lists/collections of objects that you may reference often.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN style="background-color: green; color: white;"&gt;&lt;STRONG&gt;ACCEPT SOLUTION&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;If you want and have time, I would appreciate your Vote(s) for &lt;A href="https://forums.autodesk.com/t5/forums/recentpostspage/post-type/message/interaction-style/idea/user-id/7812054/" target="_blank"&gt;My IDEAS &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt;&lt;/SPAN&gt;&lt;/A&gt;or you can Explore &lt;A href="https://knowledge.autodesk.com/profile/LTSUSR7HXMSAE/articles" target="_blank"&gt;My CONTRIBUTIONS &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 13:51:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/10250546#M62390</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-04-19T13:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: Material of the model property in drawing view label.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/10252044#M62391</link>
      <description>&lt;P&gt;That's excellent, answers some questions about how to get at some of the info.&amp;nbsp; Many thanks for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Apr 2021 22:55:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/10252044#M62391</guid>
      <dc:creator>dlongley</dc:creator>
      <dc:date>2021-04-19T22:55:39Z</dc:date>
    </item>
    <item>
      <title>Re: Material of the model property in drawing view label.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/11815218#M62392</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;Can you help me what I need to do to show the materials per part?&lt;/P&gt;&lt;P&gt;I have an assembly with different parts, each part has a different material. In the assembly I create different views which I then transfer to the drawing. In these views I would like to have the material of the parts in addition to the model name and the scale.&lt;/P&gt;&lt;P&gt;Unfortunately I can't find a solution for the materials.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2023 22:50:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/11815218#M62392</guid>
      <dc:creator>max.baumann07</dc:creator>
      <dc:date>2023-03-11T22:50:55Z</dc:date>
    </item>
    <item>
      <title>Re: Material of the model property in drawing view label.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/12947950#M62393</link>
      <description>&lt;P&gt;here is a simple solution for adding anything you want to your labels that is linked:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Dim oApp As Application = ThisApplication
Dim dDoc As DrawingDocument = TryCast(oApp.ActiveDocument, DrawingDocument)

If IsNothing(dDoc) Then
    Logger.Debug("Not A Drawing Document")
    Exit Sub
End If

' Get User to select a view
Dim PickView As DrawingView = oApp.CommandManager.Pick(SelectionFilterEnum.kDrawingViewFilter, "Select a View")
If IsNothing(PickView) Then
    Exit Sub ' If nothing gets selected then we're done
End If

' Set a reference to the drawing document.' This assumes a drawing document is active.
Dim oDrawDoc As DrawingDocument = ThisApplication.ActiveDocument
Dim oViews As DrawingViews = oDrawDoc.ActiveSheet.DrawingViews
Dim oView As DrawingView
Dim oPropSet As PropertySet ' "Design Tracking Properties" set
Dim oModelFileName As String
Dim oMaterial As String

oPropSet = PickView.ReferencedDocumentDescriptor.ReferencedDocument.PropertySets(3)
oModelFileName = oPropSet(2).Value
PickView.Label.FormattedText = "&amp;lt;Property Document='model' FormatID='{32853F0F-3444-11D1-9E93-0060B03C1CA6}' PropertyID='5'&amp;gt;Part Number&amp;lt;/Property&amp;gt;"
PickView.ShowLabel = True

'List Of All iProperties:


'1)  Inventor Summary Information (Internal Name = {F29F85E0-4FF9-1068-AB91-08002B27B3D9})
'	1)  Title (PropID = 2)
'	2)  Subject (PropID = 3)
'	3)  Author (PropID = 4)
'	4)  Keywords (PropID = 5)
'	5)  Comments (PropID = 6)
'	6)  Last Saved By (PropID = 8)
'	7)  Revision Number (PropID = 9)
'	8)  Thumbnail (PropID = 17)

'2)  Inventor Document Summary Information (Internal Name = {D5CDD502-2E9C-101B-9397-08002B2CF9AE})
'	1)  Category (PropID = 2)
'	2)  Manager (PropID = 14)
'	3)  Company (PropID = 15)

'3)  Design Tracking Properties (Internal Name = {32853F0F-3444-11D1-9E93-0060B03C1CA6})
'	1)  Creation Time (PropID = 4)
'	2)  Part Number (PropID = 5)
'	3)  Project (PropID = 7)
'	4)  Cost Center (PropID = 9)
'	5)  Checked By (PropID = 10)
'	6)  Date Checked (PropID = 11)
'	7)  Engr Approved By (PropID = 12)
'	8)  Engr Date Approved (PropID = 13)
'	9)  User Status (PropID = 17)
'	10)  Material (PropID = 20)
'	11)  Part Property Revision Id (PropID = 21)
'	12)  Catalog Web Link (PropID = 23)
'	13)  Part Icon (PropID = 28)
'	14)  Description (PropID = 29)
'	15)  Vendor (PropID = 30)
'	16)  Document SubType (PropID = 31)
'	17)  Document SubType Name (PropID = 32)
'	18)  Proxy Refresh Date (PropID = 33)
'	19)  Mfg Approved By (PropID = 34)
'	20)  Mfg Date Approved (PropID = 35)
'	21)  Cost (PropID = 36)
'	22)  Standard (PropID = 37)
'	23)  Design Status (PropID = 40)
'	24)  Designer (PropID = 41)
'	25)  Engineer (PropID = 42)
'	26)  Authority (PropID = 43)
'	27)  Parameterized Template (PropID = 44)
'	28)  Template Row (PropID = 45)
'	29)  External Property Revision Id (PropID = 46)
'	30)  Standard Revision (PropID = 47)
'	31)  Manufacturer (PropID = 48)
'	32)  Standards Organization (PropID = 49)
'	33)  Language (PropID = 50)
'	34)  Defer Updates (PropID = 51)
'	35)  Size Designation (PropID = 52)
'	36)  Categories (PropID = 56)
'	37)  Stock Number (PropID = 55)
'	38)  Weld Material (PropID = 57)
'	39)  Mass (PropID = 58)
'	40)  SurfaceArea (PropID = 59)
'	41)  Volume (PropID = 60)
'	42)  Density (PropID = 61)
'	43)  Valid MassProps (PropID = 62)
'	44)  Flat Pattern Width (PropID = 63)
'	45)  Flat Pattern Length (PropID = 64)
'	46)  Flat Pattern Area (PropID = 65)
'	47)  Sheet Metal Rule (PropID = 66)
'	48)  Last Updated With (PropID = 67)
'	49)  Sheet Metal Width (PropID = 68)
'	50)  Sheet Metal Length (PropID = 69)
'	51)  Sheet Metal Area (PropID = 70)
'	52)  Material Identifier (PropID = 71)
'	53)  Appearance (PropID = 72)
'	54)  Flat Pattern Defer Update (PropID = 73)

'4)  Inventor User Defined Properties (Internal Name = {D5CDD505-2E9C-101B-9397-08002B2CF9AE})
'	1)  Scale (PropID = 5)
'	2)  2 Place Decimal (PropID = 7)
'	3)  3 Place Decimal (PropID = 8)
'	4)  Checker Date (PropID = 10)
'	5)  Creation Date (PropID = 11)
'	6)  Degrees (PropID = 12)
'	7)  Designer Date (PropID = 14)
'	8)  Next Assy 1 (PropID = 19)
'	9)  Next Assy 2 (PropID = 20)
'	10)  Next Assy 3 (PropID = 21)
'	11)  Next Assy 4 (PropID = 22)
'	12)  Next Assy 5 (PropID = 23)
'	13)  Used On 1 (PropID = 25)
'	14)  Used On 2 (PropID = 26)
'	15)  Used On 3 (PropID = 27)
'	16)  Used On 4 (PropID = 28)
'	17)  Used On 5 (PropID = 29)
'	18)  Elec. Eng. Date (PropID = 31)
'	19)  Flat Pattern (PropID = 33)
'	20)  Mech. Eng. Date (PropID = 34)
'	21)  Checker (PropID = 35)
'	22)  Elec. Engineer (PropID = 36)
'	23)  Mech. Engineer (PropID = 37)
'	24)  Designer (PropID = 38)
'	25)  By (PropID = 40)
'	26)  Date (PropID = 41)
'	27)  Doc Type (PropID = 42)

'5)  Piping Style (Internal Name = {344C6667-62E9-41A8-87AD-1C862B5638BF})
'	1)  Name (PropID = 3)
'	2)  ActiveState (PropID = 4)
'	3)  PipeType (PropID = 5)
'	4)  RoutePreview (PropID = 6)
'	5)  Material (PropID = 7)
'	6)  Standard (PropID = 8)
'	7)  FittingMaterial (PropID = 9)
'	8)  FittingStandard (PropID = 10)
'	9)  RouteDirection90 (PropID = 11)
'	10)  RouteDirection45 (PropID = 12)
'	11)  DiameterType (PropID = 13)
'	12)  Diameter (PropID = 14)
'	13)  Schedule (PropID = 15)
'	14)  OD (PropID = 16)
'	15)  ID (PropID = 17)
'	16)  Ending (PropID = 18)
'	17)  IntermediateSegmentsMin (PropID = 19)
'	18)  IntermediateSegmentsMax (PropID = 20)
'	19)  IntermediateSegmentsInc (PropID = 21)
'	20)  TerminationSegmentsMin (PropID = 22)
'	21)  TerminationSegmentsMax (PropID = 23)
'	22)  TerminationSegmentsInc (PropID = 24)
'	23)  RoundUpValue (PropID = 25)
'	24)  DefaultBendRadius (PropID = 26)
'	25)  BendRadius (PropID = 27)
'	26)  SolidRoutePreviewColor (PropID = 28)
'	27)  PipingComponentColor (PropID = 29)
'	28)  PipeKey (PropID = 30)
'	29)  CouplingKey (PropID = 31)
'	30)  StartFittingKey (PropID = 32)
'	31)  EndFittingKey (PropID = 33)
'	32)  Elbow90Key (PropID = 34)
'	33)  Elbow45Key (PropID = 35)
'	34)  SuppressStartFitting (PropID = 36)
'	35)  SuppressEndFitting (PropID = 37)
'	36)  UseSubASM (PropID = 38)&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 08 Aug 2024 20:51:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/material-of-the-model-property-in-drawing-view-label/m-p/12947950#M62393</guid>
      <dc:creator>maxim.teleguz</dc:creator>
      <dc:date>2024-08-08T20:51:54Z</dc:date>
    </item>
  </channel>
</rss>

