hexagon logo

dimension deviation via c# --problem 4 help

Dear guys:

I use offline software to open programs that have been run online,and then i try to get the dimension deviation via c#.as a result i get 0.000.why?
anyone help me ?thx very much!
{"data-align":"none","data-size":"full","data-tempid":"temp_16885_1559746193347_11","title":"001.bmp"}
Parents
  • public Command GetSessionCommands(string FeatureName)
    {
    pcdPartProgram = pcdSession.ActivePartProgram;
    pcdCommands = pcdPartProgram.Commands;
    for (int i = 0; i < pcdCommands.Count; i++)
    {
    pcdCommand = pcdCommands.Item(i);
    if (pcdCommand == null)
    {
    continue;
    }

    if (pcdCommand.IsFeature)
    {
    if(pcdCommand.ID.ToString()== FeatureName)
    {
    break;
    }
    }
    }

    return pcdCommand;
    }
Reply
  • public Command GetSessionCommands(string FeatureName)
    {
    pcdPartProgram = pcdSession.ActivePartProgram;
    pcdCommands = pcdPartProgram.Commands;
    for (int i = 0; i < pcdCommands.Count; i++)
    {
    pcdCommand = pcdCommands.Item(i);
    if (pcdCommand == null)
    {
    continue;
    }

    if (pcdCommand.IsFeature)
    {
    if(pcdCommand.ID.ToString()== FeatureName)
    {
    break;
    }
    }
    }

    return pcdCommand;
    }
Children
No Data