1 Answers
A:
To avoid false positives, you can check if the link is still active before trusting the Mirror property:
Dim oDerivedPartComp As DerivedPartComponent
Set oDerivedPartComp = oCompDef.Features.DerivedPartComponents.Item(1)
If Not oDerivedPartComp.ReferencedFile Is Nothing Then
If oDerivedPartComp.Definition.Mirror = True Then
' Valid mirrored derived part
End If
Else
' Link is broken — don't trust Mirror property
End If
This ensures you're only evaluating the Mirror flag when the derived part is still linked to its source.
Autodesk Inventor
AutodeskHelp the community
Be the First to Answer these questions
Disclaimer
Techjockey’s software industry experts offer advice for educational and informational purposes only. A category or product query or issue posted, created, or compiled by Techjockey is not meant to replace your independent judgment.
20,000+ Software Listed
Best
Price Guaranteed
Free Expert
Consultation
2M+
Happy Customers