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.

Trying to Use "Move Origin" within the Parametric Curve Feature

christoph_raschchristoph_rasch Member Posts: 2 EDU

Hello everyone

Sorry if this has been asked before, I couldn't find anything.
I'm trying to use the Parametric Curve Feature Script and would like the include the "Move Origin" function there. Unfortunately though, as soon as I click that button I get an "Error regenerating".

Can this be solved or do I have to find a work-around?

image.png

Thanks in advance!

Answers

  • christoph_raschchristoph_rasch Member Posts: 2 EDU
  • GregBrownGregBrown Member, Onshape Employees, csevp, pcbaevp Posts: 406 image

    Not sure what copy/version of the Parametric Curve you are using, but the one I just checked seems to have an error on lines 174, 175, 176 whereby the unitless tX, tY and tZ are being added to the offset value with is a number with units. You can't do this. In a quick test I verified that by changing those lines to:

    tX += definition.xOffset / meter;

    tY += definition.yOffset / meter;

    tZ += definition.zOffset / meter;

    …then it works fine.

    If you want to make a copy of the custom feature and make that edit yourself, then you should be able to get up and running!

    (Here's my own fork of the code with the fix applied)

    2026-05-16_22-12-41 (1).gif
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. Sign in or register to get started.