public static int Main(string[] args)
{
int retValue = 0;
try
{
theProgram = new Program();
//TODO: Add your application code here
NXOpen.Part wokePart = theSession.Parts.Work;
//NXOpen.Point3d starPoint3D = new Point3d(0, 0, 0);
//NXOpen.Point3d endPoint3D = new Point3d(150, 120, 344);
//NXOpen.Line line = wokePart.Curves.CreateLine(starPoint3D, endPoint3D);
//line.Color = 186;
NXOpen.Point3d sp = new Point3d(0, 0, 0);
NXOpen.Point thePoint = wokePart.Points.CreatePoint(sp);
thePoint.SetVisibility(NXOpen.SmartObject.VisibilityOption.Visible);//显示点
theProgram.Dispose();
}
catch (NXOpen.NXException ex)
{
// ---- Enter your exception handling code here -----
}
return retValue;