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!

NX6 text or string expressions?

Status
Not open for further replies.

ingallspw

Mechanical
Mar 17, 2009
178
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
 
Replies continue below

Recommended for you

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
 
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.

 
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
 
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor