Dipak Shah

PDM Addin Calls TWICE (c# code)

Discussion created by Dipak Shah on Jan 13, 2020
Latest reply on Feb 10, 2020 by Mario Zahren

Hello Everyone,

 

Actually i am trying but not able to solve the issue and issue is :  My custom add-in developed in C# calling twice from PDM Vault . 

    - I prepared add-in on EdmCmd_PostState event.(when file state is changed in pdm it will call my addin)..

 

Code is like as below: -

 

public void OnCmd(ref EdmCmd poCmd, ref EdmCmdData[] ppoData)
{
IEdmVault5 edmVault = poCmd.mpoVault as IEdmVault5;

try
{
switch (poCmd.meCmdType)
{
case EdmCmdType.EdmCmd_PostState:

  // My Custom Code

 break;

}

}}

 

Please help and let me know how can i prevent duplication or any alternative solution.

Outcomes