Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I try to make a iLogic code to get all informations about selected component in 3D.
This is my code, but not working good for the moment....
Any idea ?
Thanks!
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(
"Summary Information")
Dim msg As String
For Each prop In propSet
msg = msg + prop.Name + " = " + _
prop.Value.ToString() + vbCrLf
Next
Dim propSet2 = doc.propertySets(
"Document Summary Information")
Dim msg2 As String
For Each prop In propSet
msg2 = msg2 + prop.Name + " = " + _
prop.Value.ToString() + vbCrLf
Next
Dim propSet3 = doc.propertySets(
"Design Tracking Properties")
Dim msg3 As String
For Each prop In propSet
msg3 = msg3 + prop.Name + " = " + _
prop.Value.ToString() + vbCrLf
Next
Dim propSet4 = doc.propertySets(
"User Defined Properties")
Dim msg4 As String
For Each prop In propSet
msg4 = msg4 + prop.Name + " = " + _
prop.Value.ToString() + vbCrLf
Next
MessageBox.Show(msg + msg2 + msg3 + msg4, "iProperties")
End If
Solved! Go to Solution.