xarial / xcad

Framework for developing CAD applications for SOLIDWORKS, including add-ins, stand-alone applications, macro features, property manager pages, etc.
https://xcad.net
MIT License
129 stars 25 forks source link

Document events are not attached for pre-created templates #58

Closed artem1t closed 3 years ago

artem1t commented 3 years ago

Documents commited via ISwDocumentCollection::PreCreate with a specific document type do not attach event upon commit and thus not correctly released when closed.

This applies both for opening and creating new documents.

Documents created as IXUnknownDocument work correctly