Can anybody help???
I have created a macro that converts a "step" file and saves it as a "sldprt" .
This "sldprt" is automatically saved by my macro but the save flag is set to true.
When I come to close the part the save dialog appears. SolidWorks thinks that the part is "Dirty" when it is not!
Is there anyway, using a VBA command to set this save flag to false?
Many thanks in advance!!!
Darren
SolidworksApi macros
You should be saving the document on the line immediately proceeding the line to close it. Here's a sample of a macro I use that combines the save and close command for me:
swModel.Save3 swSaveAsOptions_e.swSaveAsOptions_Silent, swerror, swwarnings
swApp.CloseDoc (swApp.ActiveDoc.GetPathName)
See the attached macro for its use.