Can you add a refrence dimension to a note
Can you add a refrence dimension to a note
(OP)
I am wondering if you can add a reference dimension in a note. If you do that the expression name is gone and you cant use it in <Xm.n@exp_name> property. Any way around this.





RE: Can you add a refrence dimension to a note
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Can you add a refrence dimension to a note
RE: Can you add a refrence dimension to a note
For Example:
<X00.0@myexp> (This is your note)
myexp: "Length: <mylength>"
mylength = 5
A note will fail in that situation, however, you can use a tabular table, and put the expression in a cell and have it display the values. Just remove all but 1 cell. Hope that helps.
RE: Can you add a refrence dimension to a note
What you get, and what you should expect to get, is the evaluated result of that expression.
So for example, if the Expressions read...
p1=10
p2=p1
...and I create a note linked to p2, the result will be '10' displayed as the text of the note.
Now is this not what you're getting?
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Can you add a refrence dimension to a note
Create a note on a drawing sheet that is the expression.
<x0.00@myexp> (This will display right)
Add another expression: myexp2 = 21.
Now, in the expression myexp
change myexp = "This is a test", to "This is another test, <X00.0@myexp2>"
Check the note, it will display: "This is another test, <X00.0@myexp2>"
RE: Can you add a refrence dimension to a note
RE: Can you add a refrence dimension to a note
Trouble might come when you want to insert something into the middle of an expression note. Maybe in that case you can break the note into parts and combine them as above.
Not a perfect solution, but may be workable.
RE: Can you add a refrence dimension to a note
RE: Can you add a refrence dimension to a note
This is working exactly as it's expected to work!!!
You cannot combine text and expressions in a String expression in that manner as it's reading everything that you entered as a literal string. If you want a single String expression to contain both text and the VALUE of an expression, you've got to be a bit more creative.
Try editing your expression to read:
myexp = "This is another test "+format("%0.0f",myexp2)
You have to use formatting statements based on the 'C' programming language. For information about these 'C' language string formatting statements, go to:
http://st
Note that the NX Expression system does not support all of these format commands, but it does support many of them, including the most commonly used ones.
Anyway, give that a try and see if this meets your needs.
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Can you add a refrence dimension to a note
RE: Can you add a refrence dimension to a note
When you create a note you can add multiple items since EACH one is formatted separately as a text string even if one was text and the other was a number, but in an expression if you wish to combine text and numbers you MUST provide the formatting statement(s) to convert the numerical data to a text string.
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.
RE: Can you add a refrence dimension to a note
I have an expression mystring = (string) if(myval =1)(ug_read_cell = "path/excel.xls")Else("")
I then have a tabular table, inside one cell: <X0.00@mystring>, the output on the cell is "The value is 1 mm." So you see it works without formatting. This is why I was confused that it would work, I sort of found it by accident.
RE: Can you add a refrence dimension to a note
RE: Can you add a refrence dimension to a note
John R. Baker, P.E.
Product 'Evangelist'
Product Design Solutions
Siemens PLM Software Inc.
Industry Sector
Cypress, CA
http://www.siemens.com/plm
http://www.plmworld.org/museum/
To an Engineer, the glass is twice as big as it needs to be.