AnsweredAssumed Answered

Error 80040205 when calling GetFirstTemplatePosition 

Question asked by Radim Vondra on Nov 23, 2018



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

2014 SOLIDWORKS API Help - Return Codes )


Have anybody some ideas what could be wrong?