Skip to main content
May 6, 2019 9:08 AM UTC
Archived

String to real number parameter

Related products:Creo Parametric

I would like to have an option to change a string parameter to a real number, the same way as you change a real number to a string using Itos(). There is not really a simple way to achieve this now.

6 replies

May 6, 2019 9:20 AM UTC

Unfortunately itos() function don’t convert a full real number to text, it only gets then rounder integer part of the number, this is the most dumb number to text function ever, to get the full real number as text you need a lot of IF conditions concatenating alot of calculated strings. PTC should address this function working the same way as the EXCEL function where you specify up to what decimal place you want to keep the number with the possibility to round it up or down.

May 7, 2019 1:23 PM UTC

ITOS function means Integer TO String. There is nothing beyond the integer (left of decimal point) to convert to the string.

There have been may requests for a FTOS function, Floating TO String.

 

Any numeric value can be converted to a string with a few lines in a relation.

 

Changing a string to any numeric value, wither integer or floating, is very complex and maybe too complicated for relations. Please explain your rational and use case for needing such a function. IF PTC expands their number/string conversion code, it should cover all cases.

BWSAuthor
May 7, 2019 1:35 PM UTC
The reason I am asking for this feature is because we use a buildup code to identify profiles.

For example: X-AB-66-P-R6-14-08



The way I am using relations now is to split this code, and use it to set all dimensions/patterns in the model.

This way I only need 1 column in my family table with the buildup code, and set the width/height/material etc. with relations.

The problem now is that when I split the code, and I get (see example) 66 as string, I am unable to calculate with it any further.




BWSAuthor
May 13, 2019 8:59 AM UTC
I see your post is a couple of years old. So I don't expect it to be solved soon...


May 14, 2019 12:37 PM UTC
olivierlp
Community Manager
Jul 5, 2023 2:56 PM UTC
Status changed to: Archived

Hello,

We are archiving your idea as part of a general review. This action is based on the age of your idea and the total number of votes received, as per this announcement.

You can always post a new idea with all the details required in the form.

Thank you for your participation.

Olivier