Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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_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?
Thanks in advance!
Tagged:
0

Answers
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,tYandtZare 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)