×
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

NX6 text or string expressions?

NX6 text or string expressions?

NX6 text or string expressions?

(OP)
Is there any way to keep identical text from one sheet to the next.  For example on our prints we have an Engineering Project Number, who issued it, the revision description, etc.  I want Sheet 1 to be the master and all other sheets to fall in line so if sheet 1 changes, so does the text on sheet 2, 3...  

Is their a way to create "string" or text data in the expression list on the model (so I can link to that in the drawing) or a similar method that would accomplish what I am asking?

Thanks!  

Keegan

RE: NX6 text or string expressions?

Hi Keegan,

Example for this....

1) Pls open "Expression Editor " and Enter in the Name Field as "Value" and Formula Value = 9

2) Create another Expression Name as "Test"

3) Enter in Formula Field as "ug_setPartAttrValue( "CALLOUT", stringValue( Value ) )"

4) Create another Expression Name as "Value_2" and Formula Value = 4

5) Enter in the Name Field as "Test_2"

6) Enter in Formula Field as "ug_setPartAttrValue( "ID SYMBOL", stringValue( Value_2 ) )

7)Understand that NX Expression Creates Part Attribute.

8) ug_setPartAttrValue :
 . Creates a part attribute with a given title and value in the given file.

 . Use the name and the value of the attribute to set it.

9) Go to File Menu --> Properties and Select "Attributes" Tab.

10)  You can Notice that Part Attributes are created by defining the Design Rules.
     . CALLOUT
           &
     . ID SYMBOL

Pls let me know incase you need some other information on this.


 

Srinivas Kumar.T

Head - Technical
G4 Solutions
Hyderabd ,India
WWW.G4SOLUTIONS.NET

RE: NX6 text or string expressions?

(OP)
Thank you very much! I'm trying to get it working but I haven't gotten it yet.  I see where the string is called out in the part attribute but when I go to add that text or annotation to the print it gives me the numerical value.  I want to be able to add a...

...

Wait a second....

I just figured it out!!! surprise

If anyone else ever comes here with the same question:  

Click Tools > Expressions (must be in modeling)

On the TYPE selection drop down box (above the expression name field), Select "STRING"

Then put in the NAME of the text and the text you want in the formula field.   

Then in the text field of the note or dimension annotation, type <X0.@XXX> where xxx is the expression name

for example I made an expression DWN_BY with a formula value of "JJJ".  In the text box on the print, I typed

<X0.@DWN_BY>

Now my note says JJJ

EASY!

Thanks again Srinivas!  I doubt I'd had seen that simple little box without trying what you had me trying.

Keegan.

 

RE: NX6 text or string expressions?

Hi Keegan,
           With help of the above mentioned Methodology , you can Automate customized "Partslist".( BOM )

Expressions appears in Drafting Apllications by setting an Environmental Variable. {UGII_DRAFT_EXPRESSIONS_OK=1 }

<X0.0@VALUE> pls set an attribute and CALL an Expression

Example : Expression "Value" = 9

Input Given = "VALUE"

OUTPUT VALUE  = 9

Hope it solves...  

 

Srinivas Kumar.T

Head - Technical
G4 Solutions
Hyderabd ,India
WWW.G4SOLUTIONS.NET

RE: NX6 text or string expressions?


I think you should use Part Attributes to accomplish what you need.  Go to File -> Properties and define all the attributes you need and use them in your note on all sheets.

Suresh
www.technisites.com.au

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