jacek0841
Mechanical
- Aug 31, 2005
- 227
From thread559-87119
I am trying to have weight of the part displayed on the drawing to be "bilingual", that is lb and kg.
I would like to have it done "automatically" that is when the weight of the part changes, BOTH values to get updated.
To have one value (either kg or lb) is no problem - but how to do both ?
So far using the Design Table (using the hint given by meintsi) I have managed to do this:
A B C
1 Design Table for: My_Part
2 $prp@value_1 $prp@value_2
3 First "SW-Mass@@First@My_Part.SLDPRT" #VALUE!
The Formula in the cell C3 is: =B3 * 2.2
In the Properties I have:
Name Type Value/Expr Evaluated
------------------------------------------------------
Weight_kg Text $PRP:"value_1" 167
Weight_lb Text $PRP:"value_2" #VALUE!
By puting note on drawing $PRPSHEET:"Weight_kg" I get 167, which is correct weight in kg.
By puting note on drawing $PRPSHEET:"Weight_lb" I get #VALUE!
The problem lies in the Design Table - the formula in C3 evaluates to #VALUE! with a green triangle in top left corner.
No matter what I tried to do (formatting the cel C3 and B3 - both are (?) set to Number) I get what you see above ... Sigh :-( ...
Can anybody help please.
meintsi :13 Feb 04 9:49
You can use a design table to do the calculation and have it propagate a custom property for the value which can then be use to fill the note on the drawing.
I am trying to have weight of the part displayed on the drawing to be "bilingual", that is lb and kg.
I would like to have it done "automatically" that is when the weight of the part changes, BOTH values to get updated.
To have one value (either kg or lb) is no problem - but how to do both ?
So far using the Design Table (using the hint given by meintsi) I have managed to do this:
A B C
1 Design Table for: My_Part
2 $prp@value_1 $prp@value_2
3 First "SW-Mass@@First@My_Part.SLDPRT" #VALUE!
The Formula in the cell C3 is: =B3 * 2.2
In the Properties I have:
Name Type Value/Expr Evaluated
------------------------------------------------------
Weight_kg Text $PRP:"value_1" 167
Weight_lb Text $PRP:"value_2" #VALUE!
By puting note on drawing $PRPSHEET:"Weight_kg" I get 167, which is correct weight in kg.
By puting note on drawing $PRPSHEET:"Weight_lb" I get #VALUE!
The problem lies in the Design Table - the formula in C3 evaluates to #VALUE! with a green triangle in top left corner.
No matter what I tried to do (formatting the cel C3 and B3 - both are (?) set to Number) I get what you see above ... Sigh :-( ...
Can anybody help please.