Hi all,
i don't know if this is the right section to post this. Sorry for that.
I'm developing some Addin for Enterprise PDM 2011 using VB.Net language and 3.5 framework. Whenever I try to know which is the initial state of a cartain workflow i alway get the same error (Invalid Object ID). <-- translated from italian, i hope it's correct.
Here is the code I used:
Dim EnumVarSelFile As EdmLib.IEdmEnumeratorVariable8Dim Mystring As String = ""Dim WorkFlowMgr As IEdmWorkflowMgr6Dim WorkFlow As IEdmWorkflow6Dim state As IEdmState6Dim pos As IEdmPos5WorkFlowMgr = Vaultpos = WorkFlowMgr.GetFirstWorkflowPosition'look for the workflow i needWhile Not pos.IsNullWorkFlow = WorkFlowMgr.GetNextWorkflow(pos)If WorkFlow.Name = "MyWorkFlow" ThenExit WhileEnd IfEnd Whilestate = WorkFlow.InitialState
I really need help.
Thanks
SolidworksApi macros