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
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?
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?
...
Wait a second....
I just figured it out!!!
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?
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