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.

opMoveCurveBoundary is simply not working right

joshtargojoshtargo Member Posts: 429 EDU

I have this code which literally makes a point on the curve i want to trim:

image.png

but I get this error:

image.png

Unless … the parameter for the point is more than 0.5.

Debug shows the point is where I think it is, at the base of the arrow.

parameter 0.28:

image.png

Parameter 0.68:

image.png

in addition, helpPoint has absolutely no effect on which side of the curve is removed, nor does flipHeuristicssome of the time.

I am using either one of the endpoints of the curve for helpPoint during testing.

is there any reliable, rational way to simply trim the end off of a curve, which actually behaves the way it should?

Comments

  • GregBrownGregBrown Member, Onshape Employees, csevp, pcbaevp Posts: 341
    edited 10:59AM

    Not sure what you've go going in the rest of your code but this https://cad.onshape.com/documents/5584072770c128de9993fa51/w/086ef47d24fc743b535b55de/e/6fad78c66bcee37c2743aad1 is stable. The help point is a bit moot but is included as it does work. The flipper also works…

  • joshtargojoshtargo Member Posts: 429 EDU

    @GregBrown, thank you. I rewrote that potion from scratch and now it does work. This is for my EZWire that I've been obsessing over for a few weeks now. Almost 1000 lines of code is big for me. Your "definition.whichPoint" is in there. A different approach from RoutingCurve.

    image.png
Sign In or Register to comment.