turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Siemens PLM Community
- NX Customization and Programming
- NX Programming & Customization Forum
- Sketch Control Points of Spline

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

3 weeks ago - last edited 3 weeks ago

Is there a way to get the control points (the ones that show up with DOF symbols when not constrained) of a through points spline in a sketch? I have tried snap.NX.spline, but it only has knots and poles, not thru points.

I am using NX 8.0

Solved! Go to Solution.

3 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

3 weeks ago - last edited 2 weeks ago

I'm not 100% sure I'm correct, but I think the "through" points are almost always the knot points. A knot point of a spline is a point whose corresponding parameter value is a knot. Sorry the terminology is so confusing -- I didn't invent it. So, to get the knot points, you just calculate a point on the spline at each knot value. Since you seem to have access to SNAP, the code would be something like this:

Dim knotList As New List(Of Double)(mySpline.Knots) Dim distinctKnotList = knotList.Distinct Dim knotPointList As New List(Of Position) For Each t In distinctKnotList Dim pt = mySpline.Position(t) knotPointList.Add(pt) Next

For this to work, you need to put at the top of your file

Option Infer On Imports Snap Imports System.Linq

Linq is necessary because that's where we find the "Distinct" function, which removes duplicates from a list.

yamada

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

3 weeks ago

I'd try the **.AskSplineThruPts** method.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

3 weeks ago

Both methods work, thnk you both.

Follow Siemens PLM Software

© 2017 Siemens Product Lifecycle Management Software Inc