<?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: Inventor Vb.Net Propert in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vb-net-propert/m-p/12970338#M7003</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/84538"&gt;@isocam&lt;/a&gt;.&amp;nbsp; The Part Number and Description properties are ReadWrite, but I believe the other two are ReadOnly.&amp;nbsp; Many of the properties in those first 3 PropertySet objects are ReadOnly, and their values are set internally.&lt;/P&gt;
&lt;P&gt;You can review the following Enum documentation for more details about PropertySets.Item(3) (aka Design Tracking Properties)&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=PropertiesForDesignTrackingPropertiesEnum" target="_blank" rel="noopener"&gt;PropertiesForDesignTrackingPropertiesEnum&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2024 16:49:24 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2024-08-20T16:49:24Z</dc:date>
    <item>
      <title>Inventor Vb.Net Propert</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vb-net-propert/m-p/12970221#M7001</link>
      <description>&lt;P&gt;Can anybody help?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am using the following Vb.Net code to get the values of certain values using PropertySets....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="visual-basic"&gt;Sub GetPartTypeProperty(oDoc)
   PartType = oDoc.PropertySets.Item(3).Item(17).Value
End Sub

Sub GetPartNumberProperty(oDoc)
   PartNumber = oDoc.PropertySets.Item(3).Item(2).Value
End Sub

Sub GetPartDescriptionProperty(oDoc)
   PartDescription = oDoc.PropertySets.Item(3).Item(14).Value
End Sub

Sub GetPartMaterialProperty(oDoc)
   PartMaterial = oDoc.PropertySets.Item(3).Item(10).Value
End Sub&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Does anybody know how I can set the property sets for "Part Type", "Part Number", "Part Description" and "Part Material"&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Darren&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 18:20:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vb-net-propert/m-p/12970221#M7001</guid>
      <dc:creator>isocam</dc:creator>
      <dc:date>2024-08-20T18:20:03Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Vb.Net Propert</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vb-net-propert/m-p/12970275#M7002</link>
      <description>&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-E789B421-6231-486F-ACAB-BEE31A8E9454" target="_blank" rel="noopener"&gt;https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-E789B421-6231-486F-ACAB-BEE31A8E9454&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This iLogic will list all the names.&amp;nbsp; Some of them has different display and internal name.&amp;nbsp; Internal name is the the one use for program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Sub Main()
Dim oPropsets As PropertySets
Dim oPropset As PropertySet
Dim oProp As Inventor.Property
Dim oDoc As Document

oDoc = ThisDoc.Document
oPropsets = oDoc.PropertySets

For Each oPropset In oPropsets
	Logger.Info("+" &amp;amp; oPropset.DisplayName)
	Logger.Info("-" &amp;amp; oPropset.Name)
	For Each oProp In oPropset
		Logger.Info(" +" &amp;amp; oProp.DisplayName)
		Logger.Info(" -" &amp;amp; oProp.Name)
	Next
Next
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 16:23:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vb-net-propert/m-p/12970275#M7002</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2024-08-20T16:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Vb.Net Propert</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vb-net-propert/m-p/12970338#M7003</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/84538"&gt;@isocam&lt;/a&gt;.&amp;nbsp; The Part Number and Description properties are ReadWrite, but I believe the other two are ReadOnly.&amp;nbsp; Many of the properties in those first 3 PropertySet objects are ReadOnly, and their values are set internally.&lt;/P&gt;
&lt;P&gt;You can review the following Enum documentation for more details about PropertySets.Item(3) (aka Design Tracking Properties)&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=PropertiesForDesignTrackingPropertiesEnum" target="_blank" rel="noopener"&gt;PropertiesForDesignTrackingPropertiesEnum&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 16:49:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vb-net-propert/m-p/12970338#M7003</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2024-08-20T16:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Inventor Vb.Net Propert</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vb-net-propert/m-p/12970639#M7004</link>
      <description>&lt;P&gt;You might want to have a look at this page: "&lt;A href="https://modthemachine.typepad.com/my_weblog/2010/02/accessing-iproperties.html" target="_blank" rel="noopener"&gt;Accessing iProperties&lt;/A&gt;". Apart from that I would do this:&lt;/P&gt;
&lt;LI-CODE lang="visual-basic"&gt;Sub Main()
    Document = ThisDoc.Document

    ' Set propertie
    PartNumber = DateTime.Now().ToString()
    Description = "www.hjalte.nl"

    ' Get properties
    MsgBox(PartType)
    MsgBox(Description)
    MsgBox(PartNumber)
    MsgBox(Material)
End Sub


Public Property PartType() As String
    Get
        Return GetProperty("Design Tracking Properties", "Document SubType Name")
    End Get
    Set(ByVal value As String)
        SetProperty("Design Tracking Properties", "Document SubType Name", value)
    End Set
End Property

Public Property PartNumber() As String
    Get
        Return GetProperty("Design Tracking Properties", "Part Number")
    End Get
    Set(ByVal value As String)
        SetProperty("Design Tracking Properties", "Part Number", value)
    End Set
End Property

Public Property Description() As String
    Get
        Return GetProperty("Design Tracking Properties", "Description")
    End Get
    Set(ByVal value As String)
        SetProperty("Design Tracking Properties", "Description", value)
    End Set
End Property

Public Property Material() As String
    Get
        Return GetProperty("Design Tracking Properties", "Material")
    End Get
    Set(ByVal value As String)
        SetProperty("Design Tracking Properties", "Material", value)
    End Set
End Property


Public Property Document As Document

Public Function GetProperty(setName As String, name As String) As String
    Return Document.PropertySets.Item(setName).Item(name).Value
End Function
Public Sub SetProperty(setName As String, name As String, value As String)
    Dim propertySet = Document.PropertySets.Item(setName)
    Try
        propertySet.Item(name).Value = value
    Catch ex As Exception
        propertySet.Add(value, name)
    End Try
End Sub&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 20 Aug 2024 19:08:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/inventor-vb-net-propert/m-p/12970639#M7004</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2024-08-20T19:08:19Z</dc:date>
    </item>
  </channel>
</rss>

