I was disappointed to find out that the "Don't prompt to save read-only referenced documents (discard changes)" doesn't work when doing a save as. If any of the sub components of an assembly have been modified (ie: they have an asterisk next to them in the header), SolidWorks still prompts the user to save them. When doing a save, they are not prompted. So I'm trying to create a work around for this inconsistency. I'd like to programatically prevent SolidWorks from attempting to save these child components or prevent the save as all together. I was also disappointed to find out that post save event does not run on the parent component if the pre save as event of one of the child components is cancelled. In other words, I can't just cancel the save of the child components. Any suggestions? My latest thought is to try and determine if any of the child components have been modified, and if so, notify the user and cancel the save as. The whole reasoning behind this is that I have critical operations running in the post save events that aren't run if the user cancels the save of any of the modified documents. Ideally, it just wouldn't prompt to save the children, but this doesn't seem to be an option.
SolidworksApi macros