12-19-2022
05:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
12-19-2022
05:40 AM
Dears,
Could you please help me check what's wrong in my Code that I'm using to read selection item's iProperties:
Dim AssemblyDOC As AssemblyDocument = _InventorApp.ActiveDocument
Dim ITEM = _InventorApp.CommandManager.Pick(SelectionFilterEnum.kAssemblyLeafOccurrenceFilter, "Select an Item")
If (Not ITEM Is Nothing) Then
Dim ITEMPropertySets As PropertySets = ITEM.PropertySets
Dim ITEMPropertySet As PropertySet = nITEMPropertySets.Item("Design Tracking Properties")
Dim ITEMPartNumber As Property = nITEMPropertySet.Item("Part Number")
MsgBox("THE PART NUMBER: " & ITEMPartNumber)
End IfI'm using VS2022 + Inventor 2018
Thank you very much!
Solved! Go to Solution.