Recognize if a derived part link has been broken.

Recognize if a derived part link has been broken.

shastu
Advisor Advisor
344 Views
2 Replies
Message 1 of 3

Recognize if a derived part link has been broken.

shastu
Advisor
Advisor

I have some vba code that looks at an IPT file and checks if it came from a derived part of iam file.  So in other words if oSubs1.Count = 1 then it is from a derived part or assembly and then if that is the case things are handled differently than if it just a regular part.  However, if it is a derived assembly or part that the link has been broken, then I want it to use the same logic as if it was just a regular part and not a derived part.  Unfortunately, even though the link was broke, the oSubs1.Count is still = 1.  Is there anything I can use to recognize that the link has been broke?

 

Thanks,

Shawn

0 Likes
345 Views
2 Replies
Replies (2)
Message 2 of 3

JamieVJohnson2
Collaborator
Collaborator

Have a look at this:

DerivedFutureAssemblyComponent.SuppressLinkToFile Property

It also exists in:

DerivedAssemblyComponent.SuppressLinkToFile Property

Jamie Johnson : Owner / Sisu Lissom, LLC https://sisulissom.com/
0 Likes
Message 3 of 3

shastu
Advisor
Advisor

Thanks for pointing me in the right direction.  I think what will work for my application is the below:

 

    For Each derived_assy In part_doc.ComponentDefinition.ReferenceComponents.DerivedAssemblyComponents
        If derived_assy.LinkedToFile Then

0 Likes