AnsweredAssumed Answered

IModelDocExtension::InsertAttachment opens dialog

Question asked by Greg Cocks on Jun 4, 2015

I've got a program which calls IModelDocExtension::InsertAttachment() to add a macro file to a document, but instead of adding the SWP file silently, it opens the Insert Attachment dialog and you have to select the Attachment manually.

 

Any suggestions as to why the function call doesn't just add the SWP file without opening the dialog, please?

Outcomes