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 an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

a parameter for weight in drawing format

thlavinka
1-Newbie

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
hhagedorn
6-Contributor
(To:thlavinka)

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 II
(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

hhagedorn
6-Contributor
(To:StephenW)

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.

hhagedorn
6-Contributor
(To:Dale_Rosema)

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.

Top Tags