Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Measure of sketch length 1

Status
Not open for further replies.

HydroDesigner

Mechanical
Aug 26, 2009
2
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.
 
Replies continue below

Recommended for you

Nevermind, right after I posted I found the measurement tool in the expressions.
 
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
 
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

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

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

Raj
NX 5.0.6
 
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:

Exp_Functions.jpg


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:

Help_Exp_Functions.jpg


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:


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

To an Engineer, the glass is twice as big as it needs to be.
 
Thanks a lot John,

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

Raj
NX 5.0.6
 
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.
 
Thanks for your help Jerry1423,

I will search the information.

Raj
NX 5.0.6
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor