Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text linked to an expression 1

Status
Not open for further replies.

PDW

Automotive
Oct 13, 2010
110
Hi guys,

I am in NX7.5

is it possible to create a Text(in modeling) that is linked to a Expression?
That Expression has a value, f.e. the value is 875 and I want to have this 875 to be seen as text in my modeling environment and have it updated when this value changes...

Possible and if so, ho to do this?



Best regards,

Pascal,

NX5.04+TC2007 (GM Toolkit) / NX7.5 native
 
Replies continue below

Recommended for you

You will need to add the note onto your model while in "Drafting" so go into "Drafting" and go into your model space by toggling View > Display sheet
Add the note and link it to the expression using "relationships"
in the note menu:
text input menu (expand) > symbols > catagorey change to relationships > you should be able to figure it out from there
 
Are you talking about 'Modeling' TEXT as in...

Insert -> Curve -> Text...

...or the text that you create while you're the Drafting module?



John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA

To an Engineer, the glass is twice as big as it needs to be.
 
Hi all,

it is within Modeling, so John you are correct it is the Function:

Insert -> Curve -> Text ...

I now there is an Option to select Reference Text, and if I select this Options, I can Create a "String" Type Expression, where the Expression is: Hmax=875
The Text that is being created gives met the Name of my Exprssion, in this case th Text is Hmax


Best regards,

Pascal,

NX5.04+TC2007 (GM Toolkit) / NX7.5 native
 
I believe that Jerry1423 is refering to the "trick" where you add drafting dims and notes in modeling space.

From your model first you launch the drafting module.

next you either cancel the "create sheet" option or if you already have a sheet created, you select "View > Display sheet" and you'll pop back to the model view.

Now you add all your dims, notes and symbols in model space using the drafting tools.

I think thats what he means...
J

NX 6.0.5.3
 
Hi Jaydenn and Jerry,

It is not what you explain, these things I know, it is in the MODELING function, that you can enter a Text.
Just as John and I stated in my First reply.

Other functions I know, certainly after 15 years of UG ;-)

Thnx,


Best regards,

Pascal,

NX5.04+TC2007 (GM Toolkit) / NX7.5 native
 
You have to first convert your numerical value into a String. If the desired result is an Integer, the 'String' Expression would look like...

Hmax_string = format("%d",Hmax)

... However, if the desired result is a floating point number, then the 'String' Expression would look like...

Hmax_string = format("%0.3f",Hmax)

...where the '3' in "%0.3f" controls the number of decimal places in the resulting 'String'.

Once you have a string Expression, this is the one you 'Reference' when you create your 'Modeling Text'.

BTW, you can see all of the various string formatting commands in the NX Help files.



John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA

To an Engineer, the glass is twice as big as it needs to be.
 
Thank you very much John!!!

It works so smoothly now...
I now realise how and what this "format" formula works.
I must admit an example is much easier to understand than going through the Documentation.

Thnks


Best regards,

Pascal,

NX5.04+TC2007 (GM Toolkit) / NX7.5 native
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor