How can I create a Sine Function using the Parametric Curve Feature Script?
elizabeth_giovanardi
Member Posts: 21 EDU
I am a CAD teacher using Onshape and doing a cross-curricular project with a math class. We are hoping to use your Parametric Curve feature script to create lines following equations in a sketch. We got your feature script to work for just y = x^2, but we want to do a sine function as well and cannot get that to work. I assume it is simply a problem in the specific writing/text set-up of the function. I shared the Onshape doc where we are working on this. I appreciate any help you can provide.
Many thanks,
Betsy Giovanardi

https://cad.onshape.com/documents/c459443aa4672ed472c51f09/w/23cbb31990b5dd90bb82156a/e/c292d368e2c95295a7c3b243?renderMode=0&uiState=628bab3d8fe81703a2596633
Many thanks,
Betsy Giovanardi

https://cad.onshape.com/documents/c459443aa4672ed472c51f09/w/23cbb31990b5dd90bb82156a/e/c292d368e2c95295a7c3b243?renderMode=0&uiState=628bab3d8fe81703a2596633
Tagged:
0
Answers
-
The sine expects angle units (radians or degrees). See here: https://cad.onshape.com/documents/d671922562a49d7f8afb6eff/w/abfbab6c5a0b1c6027992b8a/e/0ade47c6d2f7728f12706329
For examples, you can look at the Parametric Curve source document (right-click the feature > Open linked document).2 -
That makes perfect sense! Thanks so much for taking the time to respond!0

