Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

decamal places in parameters

scott jones

New member
can anyone help me with changing the number of decimal places in a "real number" parameter. I need to clean up a family table colum in a table on a drawing.

Thanks in advance....
 
if you want two decimal places, place this after the parameter:

[.2]

if you want three decimal places, place this after the parameter:

[.3]


see if that works
 
Thanks Trillicomm

This work well in a note, but i'm tring to change the decimal places in a 3d famly table. and I'm not sure where to and the modifier, Relations or else were.

Thanks
 
Highlight the feature, RMB-Edit, RMB on the dimension - Properties. Change the precision of your value from this window. This will change the number of decimal places on the screen and in the family tables.
 
This is a user defined parameter not a feature or a dimension. Im tring to change the number of decimal places in a "real number" parameter that is added to the model family table and is brought into a drawing in a repeat reagen table "family table". I need to change only one collum in the table from 3places to 0places.

Thanks
 
can you back up and upload the file? things move faster if we can all look at the model. it maybe something to be changed in the config pro.
 
if that parameter is a real number you can go with itos()


it will convert the real to string and the number will be rounded off










itos(int)

Converts integers to strings. Here, int can be a number or an expression. Nonintegers are rounded off.





Try to add itos in the relation that calculates your parameter. If this is not working create a new parameter like new=itos(parameter) and add new to your family table.





For addition information on functions see help under the


Specifying the Number of Decimal Places


or


View attachment 3121
 
You could also try to control the number of decimal places like this:


D1307 is a dimension that is 95.153


INTEGER=FLOOR(D1307)
INTERIM=(D1307-INTEGER)*10
FINAL=ITOS(INTEGER)+"."+ITOS(INTERIM)


change 10 to 100 to 1000 to control the number of decimal places. With 10 you will get 95.2 which is rounded.





Help says in an example :
ceil (10.255, 2) evaluates to 10.26
ceil (10.255, 0) evaluates to 11 [This is the same as ceil (10.255)]
floor (10.255, 1) evaluates to 10.2
floor (
 
Thanks for all your help!

I found most of my problems in my .DTL file

"model_digits_in_region" was set to "no"

You'd think after using Pro for 20 years I'd know better!

Thanks again eveybody....
 

Sponsor

Back
Top