I'm creating a string (i.e., Description that should include Name of the Material & Dimensions of the Material (Thickness Width x Length) using the relations platform of the model.
I'm storing the dimensions of Thickness, width & Length separately and created a new parameter called Description and the format of the description should be as follows:
Description = Material_Desc + " "+(Thickness (3 decimals)+" "+Width(1 decimal)+" x "+Length(no decimal))
Input for these Dimensional values:
Thickness = 0.079 ; Width = 7.337 ; Length = 47.244 ; Material_Desc = FIBERGLASS
Expected Description: Description = FIBERGLASS 0.079 7.3 x 47
Note: Rounding should be Width 7.337 = 7.3 (1 decimal) or 7.373 = 7.4
Length 47.244 = 47 (0 decimal places) or 47.644 = 48
I'm using the following relation but getting errors:
Description = Material_Desc+" "+ITOS(THICKNESS) + " " + ITOS(FLOOR(WIDTH*10+0.5)/10) + "x" + ITOS(FLOOR(LENGTH+0.5))
Result from the above formula: T= 7x47
Any suggestions will be appreciated.
Go to Solution.
Found solution from @psobejko response and achieved my requirement.
Thank you so much @psobejko