Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations JAE on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

workpart.Points.CreatePoint point not showing

Status
Not open for further replies.

EngProgrammer

Aerospace
Joined
Jan 14, 2015
Messages
150
Location
US
I am using the subject createpoint class. However, the created point is not showing within the work part after runing my code. Here's the snippet of code:

Dim DownStreamArcEndPoint As New Point3d(DownStreamArc.Radius * Math.Cos(DownStreamArc.EndAngle), _
DownStreamArc.Radius * Math.Sin(DownStreamArc.EndAngle), _
0.0)

Dim pt As Point = workpart.Points.CreatePoint(DownStreamArcEndPoint)
pt.SetVisibility(SmartObject.VisibilityOption.Visible)


I am missing some kind of update??
 
I also tried, the following code as well:

Dim pointTag As NXOpen.Tag = Tag.Null
Dim point1() As Double = {DownStreamArcEndPoint.X, DownStreamArcEndPoint.Y, DownStreamArcEndPoint.Z}

ufs.Curve.CreatePoint(point1, pointTag)


I think I am missing some kind of update.
 
Do a Fit (Ctrl+F). Now do you see your points?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top