×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Measure of sketch length

Measure of sketch length

Measure of sketch length

(OP)
Hello,

I have created a sweep along a sketch guide. I would like the total length of this guide to be linked to a note on the drawing. I can measure the length fine but have no idea how to link it to the drawing automatically. How would I do this?

Thanks.

RE: Measure of sketch length

(OP)
Nevermind, right after I posted I found the measurement tool in the expressions.

RE: Measure of sketch length

Can i ask how you did it? I need to do a similar thing and want to add a varaible (cut length of a piece of metal) to a parts list

Thanks

RE: Measure of sketch length

Attached is an example file (NX 5.0) showing a Part Attribute linked to the length of a Spline.  Edit the Spline and the Part Attribute 'LENGTH' will automatically update.  Just open the Expression editor and list 'All' expressions and you'll see how it was all done.

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

To an Engineer, the glass is twice as big as it needs to be.
 

RE: Measure of sketch length

Thanks a lot John

I get it now!

RE: Measure of sketch length

Hi John,

Where do I get more information about ug_setPartAttr.... I searched in the documentation also.
Thanks

Raj
NX 5.0.6

RE: Measure of sketch length

OK, the first thin that you need to know is to how to get to the Expression editor's functions.  In the lower left of the expression dialog there is an icon labeled f(x), as shown below:



Select this icon and the function dialog will open and when you find the function (note that these are all Knowledge Fusion functions) that you're looking for, select it and a short description will appear as well as the icon labeled with a ?.  Select it and the full page from the User Documentation will be displayed, as shown below:



Now as for how do you use the format statements inside the function to control the appearance of the results, these are based on the standard C-style string formatting statements, which can be found in a document such as this:

http://stat.ethz.ch/R-manual/R-patched/library/base/html/sprintf.html

Anyway, if you have any more questions, please fell free...

John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/

To an Engineer, the glass is twice as big as it needs to be.
 

RE: Measure of sketch length

Thanks a lot John,

learnt something new today and I was not aware of these functions smile.

Raj
NX 5.0.6

RE: Measure of sketch length

Raj,

Also do a search in this NX forum for your attribute question, and you will probably find some good stuff.
Go to the search button just under the title of this post - do no use the main search that is located next to the "find a forum" pull-down.

RE: Measure of sketch length

Thanks for your help Jerry1423,

I will search the information.

Raj
NX 5.0.6

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources