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 Design
- NX Design Forum
- Control position of a point object with an express...

Options

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

Control position of a point object with an expression?

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

09-17-2018 08:42 PM

I want to parametrically control the location of curve that lies between two other curves (in a sketch). I thought I could do that using a point object placed on a line between the two curves using a "Between Two Points" type (see below). However, it won't allow me to enter an expression for the "% Location". If I try, it just enters the current value for the expression, and any changes to the expression are ignored. At least that's how it's behaving. I thought I would ask here in case there's something I'm missing. Is there? If not, is there another way I can do this? Thanks for any help.

Labels:

5 REPLIES 5

Re: Control position of a point object with an expression?

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

09-17-2018 12:55 AM

Hi @pmk3,

Try offset option and use expression for distance,arc length etc for respective option(s).

Regards,

Ganesh Kadole_{#IngenuityIsNX | NX - What's New | Technical Data Package | Assembly Load Performance}

Re: Control position of a point object with an expression?

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

09-18-2018 09:40 AM

By using the Between Two Points option, the point is really not contrained to lie on the curve.

Instead,

- create a point in the sketch,
- constrain it to lie on any curve you want,
- create a dimenson to drive the location.
- Use your expression for the dimension value.

Re: Control position of a point object with an expression?

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

09-18-2018 10:52 AM

Hi,

What you are asking for is not as easy as it sounds. Within the sketch the points are not parametric, there are no expressions being used to position the point. All you have at you disposal are constraints and dimensions.

If the distance between the two point is known then you can calculate the distance and use a dimension to position a point on a line between the two input points. Create a reference line, create a point on the line (snapping gives a point on curve constraint) and then create a dimension between the line endpoint and the point you just created.

I assume it is not this easy and this is where the fun starts. If you want to create the point at a calculated percentage/distance between the two points and the distance is unknown because you might want to move the points around, then you wish you could measure the distance first. Using the measurement you could then drive the location of the curve. Unfortunately this is not supported in NX sketcher.

You can construct it. See image above.

The two blue lines are your input. The purple dotted line is the line between the end points.

- Construct a line vertical to the dotted line where you want the point.
- Create the point at the intersection.
- Make the two purple dotted lines equal length
- Create the red line to be half the dotted line and collinear (snap to mid point)
- Create the green line and a driving angle dimension
- Create a driving expression Percentage=0.25 (unitless)
- Set the angle expression to "90-atangent(2*Percentage)"
- Now you can drag the two lines and the point will remain at the specified percentage of the distance.

Yes, it is not easy. If possible construct this outside the sketcher with a datum point feature. But isn't it fun to make it work!!!

Regards, **bleep**

PS. We already have ER's requesting for the measurement capability.

PS2. Now that I got it done and written down I see easier ways to construct this. The clue in this post may be enough for you or others to come up with something far more efficient.

Re: Control position of a point object with an expression?

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

09-18-2018 12:17 PM

@GaneshKadole wrote:Hi @pmk3,

Try offset option and use expression for distance,arc length etc for respective option(s).

Thanks for the suggestion. I tried this but it behaved the same as before. I think this tool just isn't designed to be used the way I want. I guess I'll submit an ER to Siemens. At least I have a work around for now.

Re: Control position of a point object with an expression?

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

09-18-2018 12:54 PM - edited 09-18-2018 12:57 PM

Follow Siemens PLM Software

© 2019 Siemens Product Lifecycle Management Software Inc