Announcements

Starting in December, we will archive content from the community that is 10 years and older. This FAQ provides more information.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

create a Formula Function that converts text to number and vice versa

create a Formula Function that converts text to number and vice versa

I would like a Function smilar to "atoi" and "itoa" in LISP. For whatever reason, some families have text parameters that are often populated with numbers. I would simply like a method to grab those numbers out of the text parameter, and use them in a formula, and then have the option of putting the changed item back into a text parameter if needed.

3 Comments
dezindzer
Enthusiast

Sometimes you need to combine them, an example is:

 

if(and(Height=841, Width=1189), "A0",
if(and(Height=594, Width=841), "A1",
if(and(Height=420, Width=594), "A2",
if(and(Height=297, Width=420), "A3",
if(and(Height=297, Width=210), "A4",
"Custom &Height& x &Width& )))))

 

How I imagine this:

Height and Width would be Number Parameters, and with the help of & (or some other symbol) inside Quotation marks, it would be converted into text and displayed next to other text.

Kevin.Bell
Advisor

Well I'm amazed this only has 16 votes...

 

This is a basic function that would be of real use when creating a schedule... 

 

If side screen width = 0 then "N/A"

dezindzer
Enthusiast

Bump

Can't find what you're looking for? Ask the community or share your knowledge.

Submit Idea  

Autodesk Design & Make Report