Message 1 of 10
How to add a Column in a Partslist with kMaterialPartsListProperty (combined Field material / vendor)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello together,
I want to add colums to a partslist with API. The following VBA sub inserts four different values in a Partslist.
Public Sub subTestPartslistInsertColumn()
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument
'The Partslist to change is selected, get it
Dim oPartsList As PartsList
Set oPartsList = oDoc.SelectSet(1)
'add new user "Inventor User Defined Properties" RAL
Call oPartsList.PartsListColumns.Add(kCustomProperty, , "RAL")
'add ItemNumber
Call oPartsList.PartsListColumns.Add(kItemPartsListProperty, , "ItemNumber")
'add "Design Tracking Properties" description
Call oPartsList.PartsListColumns.Add(kFileProperty, "{32853F0F-3444-11D1-9E93-0060B03C1CA6}", "29")
'Add the quantity
Call oPartsList.PartsListColumns.Add(kItemQuantityPartsListProperty, , "ItemQuantity")
End Sub
What I can't figur out is how to insert the combined Field for Material / Vendor. I found out that I have to use kMaterialPartsListProperty, but where I can find the values for PropertySetId and PropertyIdentifier?
Best Regards
Wolfgang