直接在应用方法内创建
执行代码
public int apply_cb()
{
int errorCode = 0;
try
{
NXOpen.Point3d min_point = point0.Point; // or new Point3d(0,0,0);
NXOpen.Point thePoint = workPard.Points.CreatePoint(min_point);
thePoint.SetVisibility(NXOpen.SmartObject.VisibilityOption.Visible); //显示thepoint
workPard.ModelingViews.WorkView.Regenerate(); //更新当前工作部件
}
catch (Exception ex)
{
theUI.NXMessageBox.Show("Block Styler", NXMessageBox.DialogType.Error, ex.ToString());
}
return errorCode;
}