×
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

Using Attributes in Expressions

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)

RE: Using Attributes in Expressions

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

RE: Using Attributes in Expressions

(OP)
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?

RE: Using Attributes in Expressions

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

RE: Using Attributes in Expressions

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"

RE: Using Attributes in Expressions

Not sure if this helps, if you go to Cadpo's website, http://www.cadpo.com/home/mainpages/cool_stuff/techtips...#, they have an article on controling attributes with expressions. Open the page and search for "Controlling Part Attributes with Expressions"

-Derek
DL Engineering Services

specializing in CAD Design Consultation Services
www.dl-engineering.com

RE: Using Attributes in Expressions

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

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