AnsweredAssumed Answered

Error 80040205 when calling GetFirstTemplatePosition 

Question asked by Radim Vondra on Nov 23, 2018

Hello,

 

I would like to use templates in SW API, learned from 2017 SOLIDWORKS API Help - Execute Template Example (C#)

 

Here is portion of code from API HELP

....

//Access template in the selected vault

IEdmTemplateMgr5 templateMgr = default(IEdmTemplateMgr5);

templateMgr = (IEdmTemplateMgr5)vault2.CreateUtility(EdmUtility.EdmUtil_TemplateMgr);

IEdmPos5 pos = default(IEdmPos5);

pos = templateMgr.GetFirstTemplatePosition();

....

 

But after calling GetFirstTemplatePosition I got Error Code: 80040205 Error Message: You tried to log in twice (error code list http://help.solidworks.com/2014/english/api/epdmapi/returncodes.htm#_ga=2.185372074.260055355.1542986396-d67d76b0-ef32-11e8-b3cd-1fea315a552c

2014 SOLIDWORKS API Help - Return Codes )

 

Have anybody some ideas what could be wrong?

 

Regards

 

Radim

Outcomes