Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

a formula for length and diameter

Status
Not open for further replies.

JeniaL

Mechanical
Jun 3, 2014
547
IL
Hi guys,
stuck with some formula. the length and the diameter of the tube depends on some code. for example tube dia. equals code multiplied by value, where 048 is a code and 0.125 is multiply value (tube dia in this case equals 6 inches) . both of this values defined as string in catia, however catia says it's impossible to multiply string by string and get a length parameter. how to deal with that?
 
Replies continue below

Recommended for you

Create 2 parameters, 1 sting and 1 length
In the string parameter enter the value of 048
Edit a forumula for the length parameter
String.1 ->ToReal() *.125in

download.aspx


The .125in will convert the sting (must be all numbers) to inches and divide by 1/8.
If it was a metric value than *1mm

Regards,
Derek


Win 7
23SP5/24SP3, 3DVIA Composer 2015
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Top