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
- Side control of a point per line, spline etc.

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

05-03-2017 07:46 AM

Hello,

I have a general problem when automating a part. For example, imagine a horizontal line, the code includes vertical distance values of a set of points about that line. Eventhough the distance values are positive, Nx locates some of the points below the horizontal line. Sometimes it happens when using splines instead of horizontal line. There should be a side control option which you can always put those points above or below reference line or spline.

Thanks.

4 REPLIES

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

05-03-2017 08:33 AM

How are you defining the points?

Can you show us some code that gives you points in the "wrong" place?

yamada

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

05-03-2017 08:53 AM

The image shows how the situation occurs. The height parameter is positive but sometimes it puts the point below the line even it has still positive value.

Additional informations:

-The ref line in the image is the projection of a sketch line.

-The situation happens also when using a ref spline and it has a point on the curve. There is a line on that point and perpendicular to spline. The height of line is controlled by a dimension. Even the dimension always positive, the end point of line sometimes moves above the spline and sometimes moves below the spline as the dim changed.

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

05-03-2017 07:58 PM

It looks like you're controlling the point location by using an expression that produces a dimension value.

The problem is that dimensions simply express *distances*, and distances are not signed.

So, suppose I have a horizontal line L with equation y = a. Then I define a point P = (x,y), and I define a constraint that says distance(P,L) = b. The points (x, a+b) and (x,a-b) both satisfy this constraint, and you haven't provided any information to indicate which one you want.

If the line is horizontal, you might argue that the point should be "above" the line when b is positive. But when the line is angled, there is no reasonable definition of "above".

So, I think you need some alternative method of locating your point.

yamada

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

05-04-2017 12:22 AM

Follow Siemens PLM Software

© 2017 Siemens Product Lifecycle Management Software Inc