dear guys.how to Insert vector feature points at specified locations?

there is a pcdmis template as follows,and i want to insert some vector points.but i get

............

MOVE/CLEARPLANE

$$ NO,

INSERT_HERE

pcdCommands = pcdPartProgram.Commands;

for (int i = pcdCommands.Count - 1; i >= 0; i--)

{

pcdCommand = pcdCommands.Item(i);

if (pcdCommand != null)

{

if (pcdCommand.GetText(PCDLRN.ENUM_FIELD_TYPES.COMMEN T_FIELD, 0).ToString().Contains("INSERT_HERE"))

{

Command pointCmd = pcdCommands.Add(pcdOBT.BASIC_HIT, true);

pointCmd.Marked = true;

pointCmd.PutText("PT1", pcdEFT.ID, 0);

pointCmd.PutText("10", pcdEFT.THEO_X, 0);

pointCmd.PutText("10", pcdEFT.THEO_Y, 0);

pointCmd.PutText("10", pcdEFT.THEO_Z, 0);

pointCmd.PutText("0", pcdEFT.THEO_I, 0);

pointCmd.PutText("0", pcdEFT.THEO_J, 0);

pointCmd.PutText("1", pcdEFT.THEO_K, 0);

pointCmd.PutText("10", pcdEFT.MEAS_X, 0);

pointCmd.PutText("10", pcdEFT.MEAS_Y, 0);

pointCmd.PutText("10", pcdEFT.MEAS_Z, 0);

pointCmd.PutText("0", pcdEFT.MEAS_I, 0);

pointCmd.PutText("0", pcdEFT.MEAS_J, 0);

pointCmd.PutText("1", pcdEFT.MEAS_K, 0);

pointCmd.PutText("10", pcdEFT.TARG_X, 0);

pointCmd.PutText("10", pcdEFT.TARG_Y, 0);

pointCmd.PutText("10", pcdEFT.TARG_Z, 0);

pointCmd.PutText("0", pcdEFT.TARG_I, 0);

pointCmd.PutText("0", pcdEFT.TARG_J, 0);

pointCmd.PutText("1", pcdEFT.TARG_K, 0);

pointCmd.ReDraw();

pcdPartProgram.RefreshPart();

}

}

}

help!many thx!

there is a pcdmis template as follows,and i want to insert some vector points.but i get

**"no legal insertion point below"**............

MOVE/CLEARPLANE

$$ NO,

INSERT_HERE

pcdCommands = pcdPartProgram.Commands;

for (int i = pcdCommands.Count - 1; i >= 0; i--)

{

pcdCommand = pcdCommands.Item(i);

if (pcdCommand != null)

{

if (pcdCommand.GetText(PCDLRN.ENUM_FIELD_TYPES.COMMEN T_FIELD, 0).ToString().Contains("INSERT_HERE"))

{

Command pointCmd = pcdCommands.Add(pcdOBT.BASIC_HIT, true);

pointCmd.Marked = true;

pointCmd.PutText("PT1", pcdEFT.ID, 0);

pointCmd.PutText("10", pcdEFT.THEO_X, 0);

pointCmd.PutText("10", pcdEFT.THEO_Y, 0);

pointCmd.PutText("10", pcdEFT.THEO_Z, 0);

pointCmd.PutText("0", pcdEFT.THEO_I, 0);

pointCmd.PutText("0", pcdEFT.THEO_J, 0);

pointCmd.PutText("1", pcdEFT.THEO_K, 0);

pointCmd.PutText("10", pcdEFT.MEAS_X, 0);

pointCmd.PutText("10", pcdEFT.MEAS_Y, 0);

pointCmd.PutText("10", pcdEFT.MEAS_Z, 0);

pointCmd.PutText("0", pcdEFT.MEAS_I, 0);

pointCmd.PutText("0", pcdEFT.MEAS_J, 0);

pointCmd.PutText("1", pcdEFT.MEAS_K, 0);

pointCmd.PutText("10", pcdEFT.TARG_X, 0);

pointCmd.PutText("10", pcdEFT.TARG_Y, 0);

pointCmd.PutText("10", pcdEFT.TARG_Z, 0);

pointCmd.PutText("0", pcdEFT.TARG_I, 0);

pointCmd.PutText("0", pcdEFT.TARG_J, 0);

pointCmd.PutText("1", pcdEFT.TARG_K, 0);

pointCmd.ReDraw();

pcdPartProgram.RefreshPart();

}

}

}

help!many thx!

## Comment