I have implemented the AssemblyDoc_DestroyNotify event toallow for checking custom property data in the assembly that mayhave been changed by the user via a custom tab that is part of myAddIn, but was not actually saved to the assembly file. I ask theuser if they wish to save the changes before close and do so ifthey answer Yes.
I would also like to add the ability for the user to click Cancelon my message box to stop the closing of the Assembly so the usercan look the settings over again. I did not see any method in thehelp regarding this ability. Is there a global cancel flag that canbe set or a specific return value for the AssemblyDoc_DestroyNotifyevent that will cancel the close of the assembly document or isthere another event that will allow me to do this sort of thing?
Thanks,
Dave BlackburnSolidworksApi macros







I would also like to add the ability for the user to click Cancelon my message box to stop the closing of the Assembly so the usercan look the settings over again. I did not see any method in thehelp regarding this ability. Is there a global cancel flag that canbe set or a specific return value for the AssemblyDoc_DestroyNotifyevent that will cancel the close of the assembly document or isthere another event that will allow me to do this sort of thing?
Thanks,
Dave BlackburnSolidworksApi macros