Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Inventor 2022
API VB.NET Visual Studio
i try to add a Property to iProperties exyctly to Project Tab ("Design Tracking Properties").
But without success.
Is this possible, add to Project ?
The Goal is to get something like this.
This is my Code:
Imports System.Runtime.InteropServices
Imports Inventor
Imports Microsoft.Win32
Imports System.Collections.Generic
Imports System.Linq
Imports System.IO
Module CommandFunctionButton_12
Public Sub CommandFunctionfweButton_12()
Dim oPartDoc As PartDocument = g_inventorApplication.ActiveDocument
Dim oCompDef As PartComponentDefinition = oPartDoc.ComponentDefinition
Dim oTO As TransientObjects = g_inventorApplication.TransientObjects
Dim oTG As TransientGeometry = g_inventorApplication.TransientGeometry
Dim oProperty As Inventor.Property
Dim oPropertySet As Inventor.PropertySet
oPropertySet = oPartDoc.PropertySets.Item("Design Tracking Properties")
'oPropertySet = oPartDoc.PropertySets("{32853F0F-3444-11D1-9E93-0060B03C1CA6}")
oProperty = oPropertySet.Add("204", "MaterialCode")
End Sub
End Module
Error:
Unknow Error
Thanks for any Sugestion.
Solved! Go to Solution.