Addin is meant to be run from a template toplevel blank assembly file. It opens a start part template (contains geometry), inserts the component into toplevel. Then it makes the newly inserted independent. Opens the newly made doc. Does some suppressions. However, this new document is not the active document from what I can tell (I’m translating someone else’s macro to C# addin). I need it to be active in order to set a bunch of custom properties, but I’m trying to call ActivateDoc3 with the new document’s GetTitle() and I’m getting silent crashes: SWX quits, and VS stops debugging without giving any error box. It’s something to do with the make-independent document, because a test call of ActivateDoc3(toplevel assembly) doesn’t trip up.
Anyone been through this?