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,

 

Actually, attached part contains ShrinkWrap Component.

 

Unfortunately, SuppressLinkTOFile property is not supported for ShrinkWrap component in Inventor 2018. But it is supported in Inventor 2019. Try below iLogic code to ShrinkWrap Component.

 

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 
		
		oShrinkComp.SuppressLinkTOFile = True 
		
		iLogicVb.UpdateWhenDone = True

	Next

 

'UPDATE SHRINKWRAP SAVE DATE & TIME STAMP
'iProperties.Value("Custom", "SHRINKWRAP SAVE DATE & TIME STAMP") = iProperties.Value("STRUCTURE ASSEMBLY.iam", "Custom", "STRUCTURE SAVE DATE & TIME STAMP")

'MessageBox.Show("Executing iLogic Code", "Executing iLogic Rule Confirmation")

End Sub

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network