11-22-2018
01:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-22-2018
01:37 AM
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
