Using Attributes in Expressions
Using Attributes in Expressions
(OP)
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)
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)





RE: Using Attributes in 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
RE: Using Attributes in Expressions
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?
RE: Using Attributes in Expressions
"Wildfires are dangerous, hard to control, and economically catastrophic."
Ben Loosli
CAD/CAM System Analyst
Ingersoll-Rand
RE: Using Attributes in Expressions
RE: Using Attributes in Expressions
-Derek
DL Engineering Services
specializing in CAD Design Consultation Services
www.dl-engineering.com
RE: Using Attributes in Expressions
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