Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
chandra.shekar.g
in reply to: kwalker1

@kwalker1,

 

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