Message 1 of 7
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to be able to read all part's custom properties that are included in Assembly. I found code written by mod the machine authors but I have problems modifying it so it would iterate through all the parts and give me but the info.
Dim entity = ThisApplication.CommandManager.Pick(
SelectionFilterEnum.kAssemblyOccurrenceFilter,
"Select Component:")
If (Not entity Is Nothing) And _
(TypeOf entity Is ComponentOccurrence) Then
Dim doc = entity.Definition.Document
Dim propSet = doc.propertySets(
"Inventor User Defined Properties")
Dim msg As String
For Each prop In propSet
msg = msg + prop.Name + " = " + _
prop.Value.ToString() + vbCrLf
Next
MessageBox.Show(msg, "iProperties")
End If
Can somebody help me with the issue?
Solved! Go to Solution.