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.

Curve: From equation ... external vars?

HelterSkelter

New member
I see the Curve from equation format is fairly simple.



/* CODING TABLE SESSION ID MODEL NAME

/* CODING TABLE
1&nbs p; VALVECXT17.ASM

/* CODING TABLE

/* For cartesian coordinate system, enter parametric equation

/* in terms of t (which will vary from 0 to 1) for x, y and z

/* For example: for a circle in x-y plane, centered at origin

/* and radius = 4, the parametric equations will be:

/*&n bsp; x = 4 * cos ( t * 360 )

/*&n bsp; y = 4 * sin ( t * 360 )

/*&n bsp; z = 0

/*-------------------------------------------------------- -----------





My problem is I need to incorporate a measurment from the model as a constant parameter into the curve equation.



e.g. Distance from point A to B in model represented by ANALYSIS6:DISTANCE. Lets call this "s"



Then my curve equation would be something like:



x = s*t + s^2

y = 2*s*t + s^3

z = 0





Is it possible to do this? I cant just measure "s" and insert the value
manually because I am doing lots of automated optimisation studies so
the value of "s" changes all the time.



TIA
smiley2.gif
 
markthemech said:
Input the following:





s = DISTANCE:FID_ANALYSIS6



x = s*t + s^2


y = 2*s*t + s^3


z = 0



Hmm spoke to soon. Now that Ive actually tested it I get errors:



r = DISTANCE:FID_CURRAD

/* ERROR: Invalid symbol 'DISTANCE:FID_CURRAD' found.





Where CURRAD is the name of the analysis feaure I'm using.



Any other suggestions
smiley11.gif
 

Sponsor

Back
Top