Can anybody help?
Is it possible, using a SolidWorks VBA macro, to check an assembly (.sldasm) for "Missing Parts" or "Broken Links"?
I have loaded an assembly and it cannot find certain parts.
I need a macro to firstly check the assembly before it runs the rest of a macro that I am writing.
Many thanks in advance!!!
Darren
Darren,
I have something that does this, but it becomes rather complicated searching network locations for files existing.
I started with this: 2019 SOLIDWORKS API Help - Get Dependencies for Open and Unopened Documents Example (VBA)
It will give you a list of files dependencies. Then you would just have to check whether they all exist. If the file came from an external source, you will see drive locations you don't have, so then you need some method to check whether or not your actual server locations have these files or if they are just MIA. Or you could make a list of missing files and try to track them all down.
If fso.FileExists(vfil) = False Then
(write filepath to txt)
Hope that helps point you in the direction you need.