11-27-2018
09:35 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-27-2018
09:35 PM
Try below iLogic code to get custom iProperty of ShriknWrap assembly without opening it. Unfortunately, suppressed shrikwrap assembly is unable to get custom iProperty.
Note: iLogic code should be run in PartDocument which contains ShrinkWrapComponent.
Sub Main()
Dim oShrinkwrap As PartDocument
oShrinkwrap = ThisApplication.ActiveDocument
Dim oDef As PartComponentDefinition
oDef = oShrinkwrap.ComponentDefinition
Dim oShrinkComp As ShrinkwrapComponent
For Each oShrinkComp In oDef.ReferenceComponents.ShrinkwrapComponents
Dim oReferDoc As Document
oReferDoc = oShrinkComp.ReferencedDocumentDescriptor.ReferencedDocument
Dim oPropValue As String
oPropValue = oReferDoc.PropertySets.Item(4).Item("STRUCTURE SAVE DATE & TIME STAMP").Value
MessageBox.Show(oPropValue, "Title")
Next
End Sub
Thanks and regards,
CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network
