Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

EXTRACTING THREAD OUTER DIA FROM CALLOUT

metin_mehel

New member
HELLO


IS IT POSSIBLE TO EXTRACTING THREAD OUTER DIA FROMA THREADCALLOUT?


FOR EXAMPLE YOU HAVE ASTRING TYPE PARAMETER WHIC IS THREAD='M12X1.25'


ANOTHER PARAMETER IS REAL TYPE AND OUTER_DIA=EXTRACT(THREAD,2,2)


IT DOES NOT WORK BECAUSE WHILE LEFT SIDE ISREAL AND THE RIGH IS STRING.


HOW CAN IT BE POSSIBLE TO CONVERT A STRING VALUE INTO A REAL NUMBER


smiley32.gif
 
Did anyone know the answer??


I've extracted a string number ie.


test=extract(rel_model_name,8,1) /* test equals 5


I now want to multiply test * <real number>


l=test*(1/32)


I get this error message;


Invalid data type combination at right side of expression!


I know I need to convert the string "5" to a real number, how can I do that?


Thanks
 

Sponsor

Articles From 3DCAD World

Back
Top