kacouff
February 11, 2020, 12:36pm
1
Hi all
I'm looking for a macro that allows you to replace components automatically in an assembly, without having to open it, based on different criteria. (Or to create it)
Basically, I'm looking to automate the manual reference replacement feature of Solidworks:
CaptureReplacementManuRef
Is there a way to extract (or modify) this list of referenced files, as well as their locations with a command?
Thank you
Kind regards
JeromeP
February 11, 2020, 3:18pm
2
Hello
To replace the path of the referenced files without opening the assembly, you can use the function: ReplaceReference .
See example: replace-references
kacouff
February 11, 2020, 3:26pm
3
Thank you JeromeP,
I had seen this command, but to use it, you need to have the references of the components of the assembly. Is there a way to get them back?
JeromeP
February 11, 2020, 6:03pm
4
You can retrieve all the parts used in the assembly with the GetAllExternalReferences4 function
kacouff
February 16, 2020, 10:41am
5
Apparently, you have to be able to use SOLIDWORKS Document Manager, unfortunately we don't have a license
JeromeP
September 22, 2020, 1:04pm
6
Late response, but the Document Manager license is free if you have a Solidworks license.
See the steps to obtain it here
kacouff
September 22, 2020, 1:17pm
7
JeromeP, thank you once again;)
I'll test that when I go back to my project.