Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Attribute Text Link Properties...

Status
Not open for further replies.

Runz

Aerospace
Oct 3, 2005
216
When I add an Attribute link to a leader text note on a drawing, the values from the model are showing with 5 deciaml places. How can I change the number of decimal places that are shown? Also, if two attributes are used in the same text note, can I apply different decimal places to each?

I have a chamfer that needs to have a tolerance on the length and the angle, but Catia does not do this. So I am applying attribute links to from the chamfer feature of the model to a leader text note on the drawing. I know I could use a simple text note, but it isn't parametric.

I want my note to read:
.050±.005 x 45°±5° (Not 0.05000 x 45.00000)

Thanks,
 
Replies continue below

Recommended for you

I realize that the number of deciaml places being shown in the text note is the default setting in Option => Parameters & Units, but I would like to change the note without changing the model default.

Not sure if this can be done?
 
Other than turn off trailing zero in tools options, do not think it is possible.

Regards,
Derek
 
you could use some of the string functions in knowledgeware to preprocess the string in a parameter then attribute link to the parameter

Using the following
round(Real, String, Integer):Real
ToString(Real) : String
string.Extract(StartIndex: Integer, Length: Integer) : String

Proberbly the best
ToString(round(MODEL_PARAMETER,"in",3)

or much cruder
ToString(MODEL_PARAMETER).Extract(0,4)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor