Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.

First time visiting? Here are some places to start:
  1. Looking for a certain topic? Check out the categories filter or use Search (upper right).
  2. Need support? Ask a question to our Community Support category.
  3. Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
  4. Be respectful, on topic and if you see a problem, Flag it.

If you would like to contact our Community Manager personally, feel free to send a private message or an email.

Parametric curve FS by Mahir

kingkillykingkilly Member Posts: 2

I just recently learned about this feature script and used it to create some spur gears, and it worked great. Now I'm trying to create a parametric curve to make a cycloid gear, the equation I've created a dummy variable t, set it equal to 1, and then inserted a parameter t afterwards, but I keep getting an error code saying "error regenerating." The equations I'm trying to use are :

x=(#R*cos(#t*rad))-(#Rr*cos(#t*rad+atan(sin((1-#N)*#t*rad)/(((#R/#E)*#N)-cos((1-#N)*#t*rad)))*rad))-(#E*cos(#N*#t*rad))

y=(-#R*sin(#t*rad))+(#Rr*sin(#t*rad+atan(sin((1-#N)*#t*rad)/(((#R/#E)*#N)-cos((1-#N)*#t*rad)))*rad))+(#E*sin(#N*#t*rad))

I played around with it a bit and noticed that sin((#t*rad)#N) does not work unless #N=1, but sin(#t*rad) does work. I noticed that if #t is inside of a trig function, the only way it works is if it is not multiplied or divided by anything but 1, and that nothing is added or subtracted from it. Is there anything I could do to get around this?

Sign In or Register to comment.