Problem with Parametric Curve FS

ethan_zhou482
ethan_zhou482 Member Posts: 6 EDU

I'm trying to use the parametric curve FS but have some issues. My variables (N, R, r, E) are set as numbers. I also have the Define Parameter FS set as t. I'm not too sure why it's giving me an error (failed to regenerate). Is there something wrong with the formula I input, like the /1mm part or something else? I attached the info i input into the FS below. Thank you

Screenshot 2025-03-10 at 12.28.27 PM.png Screenshot 2025-03-10 at 12.28.35 PM.png Screenshot 2025-03-10 at 12.28.43 PM.png Screenshot 2025-03-10 at 12.28.56 PM.png Screenshot 2025-03-10 at 12.29.11 PM.png

Comments

  • ilya_baran
    ilya_baran Onshape Employees, Developers, HDM Posts: 1,274 image

    I think you need things like cos(#t * radian). Also, #x / 1mm gets parsed as (#x / 1) * mm which is may not be what you want. Keep in mind though that at the end, you want to end up with distance units in all 3 variables.

    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
  • Matt_Shields
    Matt_Shields Member, Onshape Employees Posts: 991 PRO

    If #R, #E, etc. are just numbers, then don't divide them by mm. Everything inside a trig function needs to be an angle and every parameter needs to be a distance. So, something like #R * cos(#t*radian) * mm would be valid, as long as #R is dimensionless.

  • ethan_zhou482
    ethan_zhou482 Member Posts: 6 EDU

    tysm