Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Using Attributes in Expressions

Status
Not open for further replies.

RocketRonnie

Mechanical
Dec 9, 2003
63
I'm new to UGNX having used Pro/E for a few years.
I would like to know how an attribute can be used in an expression i.e:
Attribute is LENGTH, with value 1000
Expression p1=LENGTH
This gives me an error of:
"The specified expression variable does not exist"

(in Pro/E terms, this would be a Parameter used in a relation which is easy d0=LENGTH)
 
Replies continue below

Recommended for you

Go to Tools-Expressions
Enter your length =value expression
If you already have p1, select it and cahnge the value to length
If you don't have it, when you create a cube, for example, put length in the expression box for the value.

You cam also rename the p1 expression to length.


"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand
 
Thanks Ben,
But I want to use a part attribute which I have created using one of your previous replies to "Attributes":

"In NX V1:
from the Assembly Navigator Flyout
RMB on the Partname
Select Properties
In the Properties table, select Attributes
Enter the Title and Value in the boxes at the bottom"

- how can I use this type of attribute in an expression?
 
You cannot use part attributes in an expression. You can use part expressions ad/or attributes in notes on the drawing. I don't know if you can use expressions in part attributes. I don't have NX1 loaded anymore, so I cannot try it.


"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand
 
I think it´s better if you describe what you want to achieve and we´ll help you from there. Due to you are new on the system you may not yet think in "the ug way"
 
You can enter a Part attribute into an expression with excel

there is a ug linked function =ugattr("PART","PARAM NAME",3) enter PART for same part params and maybe component name for assembly.
which will have the attribute value and can be used in an excel expression. This works fine for tabular notes which will update this information.

However I've never been able to use this or any other equations with excel without having the formula replaced by a number value next time I try to edit expressions in Excel.

Maybe Ben could help you and me with this because this has annoyed me for awhile.

Michael
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor