15 years ago
I'm transferring an old macro from SolidWorks macro editor to
Microsoft Visual Basic 2005 Express, making use of the SwVBAddin you
can download from Solidworks to create a DLL Add-in.
The macro allows a user to save a copy of a part referred to in a
drawing, using the following line:
bRet = swDrawModel.SaveAs4(TASKWORKDIR & savename & ".sldprt",
swSaveAsCurrentVersion, swSaveAsOptions_Copy, nErrors, nWarnings)
Trouble is that the option 'swSaveAsOptions_Copy' doesn't work, so
once run the drawing points to the newly saved part file, instead of
the original. Strangely this option seems to work in VB6 provided
Anybody have any ideas?