Quantcast
Channel: PTC Community: Message List - Creo
Viewing all articles
Browse latest Browse all 11377

Re: Another equation curve approximation error

$
0
0

Duh!  Create the curve from equation (cartesian): (1x1)

  • x=t
  • y=.5+cos(t*180)/2*-1



Create a sketch and project the curve into the sketch

Save the sketch into your sketch palette (adding this to the sketch palette is optional but useful for future use)

Create an Graph datum feature and insert the saved sketch (1:1 at 1unit x 1unit recommended for consistency; preserve the original definition since this is a unreferenced projection!).

Add the CSYS in the Graph sketch

...and accept.

 

sweep_artifact-n.PNG(attached)

 

Next, use the evalgraph() for the value in the cylindrical curve.

tip: remember to use quote marks around the sketch name!  You won't find that in help and gets me every time!

 

  • r=.5 <= radius
  • theta=t*360*5 <= number of turns
  • z=evalgraph("<graphname>",t)*2 <= actual length of coil

 

This gets around the seams of the cylinder used before but it still has the coarseness of an interpolated curve (for lack of better term).

This also gets around the bounding box size.

 

Of course, you can now delete the curve and sketch created to get the graph.

 

sweep_artifact-m.PNG

 

Thanks for your help on this, David!


Viewing all articles
Browse latest Browse all 11377

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>