Skip to main content
Jul 29, 2025 1:15 PM UTC
Solved

Mass calculation

Hi 

I use creo 11.0.4.0. 

In relations  dosnt work formula 

MASA=PRO_MP_MASS
errorInvalid data type combination at right side of expression.

What is wrong. 

In Creo 7 works perfect.

TP_10167633_0-1753794850609.png

 

Regards T

Jul 30, 2025 6:20 AM UTC

@TP_10167633 wrote:

Hi,

Yes, this works.

How can I correct it to show only one decimal place, for example: 7.1 kg?

 Regards T

 


Hi,

MASA=rtos(ceil(PRO_MP_MASS,1))

12 replies

Jul 29, 2025 1:25 PM UTC
Jul 29, 2025 3:01 PM UTC

What kind of parameter is MASA? Maybe you can try using MASA=MP_MASS(""), assuming the output should be a string? I'd also recommend putting this relation in post regen to avoid the double regeneration after switching materials. 

 

Creo 11.0 documentation:

 

Tdaugherty_0-1753801246011.png

 

Jul 29, 2025 9:33 PM UTC

If the RHS (right hand side) of the equation is a double you have to make sure that the LHS has the same type, you can have a miss match if the parameter exist before you have used this one in a relation. Just comment the relation, delete the MASA parameter and finally get rid of the comment. 

Jul 30, 2025 5:08 AM UTC

Hi 

 

MASA in string parameter.

I have same relation in CREO 7 . But there is no problem.

 I try also MASA=MP_MASS(""), 

Dosn't work.

 

Jul 30, 2025 5:07 AM UTC

Hi 

 

MASA in string parameter.

I have same relation in CREO 7 . But there is no problem.

 I try also MASA=MP_MASS(""), 

Dosn't work.

 

Jul 30, 2025 5:51 AM UTC

Hi,

use following relation.

masa=rtos(PRO_MP_MASS)

 

rtos ... real number to string conversion

Jul 30, 2025 6:11 AM UTC

Hi,

Yes, this works.

How can I correct it to show only one decimal place, for example: 7.1 kg?

 Regards T

 

Jul 30, 2025 6:20 AM UTC

@TP_10167633 wrote:

Hi,

Yes, this works.

How can I correct it to show only one decimal place, for example: 7.1 kg?

 Regards T

 


Hi,

MASA=rtos(ceil(PRO_MP_MASS,1))