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

Control Individual parameter decimal places

Control Individual parameter decimal places

1. Describe your environment: What is your industry? What is your role in your organization? Describe your stakeholders.
Engineering Services

 

Designers


2. What version of Creo Parametric are you currently running?
7.0.6.0

3. Describe the problem you are trying to solve. Please include detailed documentation such as screenshots, images or video.
I would like to be able to create the decimal places for individual parameters.

 

I went to sketch an engraving a customer wants on parts and I cannot control the decimal places.  I could change the config file but I need different decimal places for different engravings.  Picture has example of one, but another might be &etch2[.2]



4. What is the use case for your organization?
Customer requires engravings on parts with as made dimensions

5. What business value would your suggestion represent for your organization?
Eliminate errors when typing in manually, save time as auto update when a copy is created and modified, save time because a long relation is not needed.

6 Comments
MYR_Industries
6-Contributor

For clarification etch = d98 a dimension from the model creation.

KenFarley
20-Turquoise

A method I've used to do what you are asking is:

(1) Create a String parameter for the number you want, say "txtEtch".

(2) Since there is no such thing as a real to string function in the relations, you enter the following relations:

txtEtch = ITOS ( floor ( Etch ) ) + "."
txtEtch = txtEtch + EXTRACT ( ITOS ( 1000 * ( 1 + Etch - floor ( Etch ) ) ), 2, 3 )

(3) Use the txtEtch parameter for the engraving.

 

It's not very simple, but it works.

MYR_Industries
6-Contributor

@KenFarley 

 

This is what we end up doing, but you have to repeat it every time.  Then you have to get it correct every time.  We could start a notepad or word document with all of the "custom" relations we use, but maybe that should be a feature CREO should have; store the equation or go look at an external file 

 

If I could just use the [.3] like you can on a note or in dimension text this would be simply solved.

S_Edgenear
14-Alexandrite

I agreee, this is a much needed function.

olivierlp
Community Manager
Status changed to: Acknowledged

Hello @MYR_Industries,
Thank you for your idea and the information provided.

S_Edgenear
14-Alexandrite

There is a config.pro setting that specifies how many decimal places the parameters will have:

 

param_dec_places

 

The problem is that this setting affects all "Real" parameters. Some parameters we might want to have higher precision, hence, should display more decimal places, but when applying notes we might want specific parameters to have 2 or only 3 decimal places. So, it should be a setting on the parameter notes.