cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

a parameter for weight in drawing format

thlavinka
7-Bedrock

a parameter for weight in drawing format

Hello,

is it possible to push the parameter (&MASS:FID_381) in frm to show the weight always only with one simp. ref.?

 

Thanks in advance

 

T.

 

1.jpg

7 REPLIES 7

it is 2 years ago, ... but i have the same case here. To show the weight it isn't the problem, but to show only 2 digits after the point doesn't work. The writing style [.2] well known to me. It doesn't work inside the frame.

 

Is there any help?

BenLoosli
23-Emerald II
(To:hhagedorn)

If the weight parameter is in a table cell for the title block, &weight[.2] works for me.

I have not tried it as a standalone note.

 

StephenW
23-Emerald III
(To:BenLoosli)

You comment "inside the frame", maybe you mean as part of the format?

If you are using parameters in the format, use a table in the format.

 

weight-rounded.png

Hello to all :-),

thanks for your quick answer.

I don't know why, but fortunately it works well.

I tried it serveral times, but it doesn't operated.

I reckon it was a blank character betwenn the Parameter and the [.1].

 

So now it works fine!

 

Thanks!

Dale_Rosema
23-Emerald III
(To:hhagedorn)

Don't forget to mark your answer as the correct solution.

Sorry I'm not the creator of this posting, so I can't?

A way to do it might be to define a text parameter, then build the resultant number as a text string using relations. For example, if "massreal" is the numeric parameter and "masstext" is the string representation of it, you could get two decimal places with the following:

 

IF massreal < 1.0

  masstext = "0."

ELSE

  masstext = floor ( massreal ) + "."

ENDIF

masstext = masstext + EXTRACT ( ITOS ( 100 * ( 1 + massreal - floor ( massreal ) ) ), 2, 2 )

 

You then use the "masstext" parameter in the table, etc.

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags