Visual Basic 2005 Express

Hi All,
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 with SolidWorks.
Anybody have any ideas?
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
<%-name%>
Add image file
Upload

Polytechforum.com is a website by engineers for engineers. It is not affiliated with any of manufacturers or vendors discussed here. All logos and trade names are the property of their respective owners.