Hi, Where is the mistake?
Code:
pNodeSet.AddAll(zDataType.FT_NODE);
pNodeSet.Debug();
int nodeCount = pNodeSet.Count();
Console.WriteLine("nodeCount =" + nodeCount);
Console.ReadKey();
int nodeID;
object XYZ;
object wpXYZ;
double[] outwpXYZ = new double[3];
while (pNodeSet.Next()>0)
{
nodeID = pNodeSet.CurrentID;
Console.WriteLine("nodeID =" + nodeID);
Console.ReadKey();
pNode.Get(nodeID);
XYZ = pNode.xyz;
pModel.feCoordToWorkplane(XYZ, out wpXYZ);
outwpXYZ = (double[])wpXYZ;
Console.WriteLine("nodeID=" + nodeID + " X=" + Math.Round(outwpXYZ[0], 2) + " Y=" + Math.Round(outwpXYZ[1], 2));
Console.ReadLine();
}