How to Break link from reference files

How to Break link from reference files

Anonymous
Not applicable
895 Views
4 Replies
Message 1 of 5

How to Break link from reference files

Anonymous
Not applicable
Hi, I'd like to Break link from derived part or assembly, does anybody have any clue of this, please let me know, thank you in advance.
0 Likes
896 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable
Is there anybody who can help me with my question, thanks.
0 Likes
Message 3 of 5

Anonymous
Not applicable
The command to do this is contained in the derived part component. It assumes you have a Part document open but could be changed to work with assembly's as well.

{code}

Dim oDoc As PartDocument
Set oDoc = ThisApplication.ActiveDocument

Dim part As DerivedPartComponent
Set part = oDoc.ComponentDefinition.ReferenceComponents.DerivedPartComponents.Item(1)

part.BreakLinkToFile

{code}

this pulls the first part referenced and breaks its link. you can code it to itterate through all referenece files by replacing the Item(1) with other code and to do assemblies by changing all the DerivedPart's to DerivedAssembly.

Hope this helps.
0 Likes
Message 4 of 5

Anonymous
Not applicable
Thank you very much, this is exactly what I need.
0 Likes
Message 5 of 5

Anonymous
Not applicable
Hi, thanks for your reply, and it did help me. Now I have another question for you. When I create a derived part or assembly, how to mirror it at the same time? thank you.
0 Likes