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.

opLoft Tangent Constraints

ry_gbry_gb Member, csevp, pcbaevp Posts: 43 PRO
edited November 4 in FeatureScript

I'm pretty new to FeatureScript, so I don't quite have all of the syntax down yet. I'm trying to play around with opLoft and am having issues setting both ends to match Tangent. Can one of you more knowledgeable folks tell me what I'm doing wrong?

The start tangent works just fine, but the end tangent fails entirely regardless of whether or not the start tangent is turned on.

Here's the link to the document:

https://cad.onshape.com/documents/4b87997e7164dea20ff0c043/w/3e21b2978617006c0fa53894/e/227c23ce42fa65bfba62e583?renderMode=1&tangentEdgeStyle=1&uiState=690a477d02548ecd385b26e4

Many thanks!

Best Answer

  • GregBrownGregBrown Member, Onshape Employees, csevp, pcbaevp Posts: 357 image
    Answer ✓

    On line 61 you need to have:

    "profileIndex" : 2,

Answers

  • S1monS1mon Member Posts: 3,665 PRO

    Are you able to create the surface with the standard Onshape loft feature? If you can show an example of that working and your feature failing, this might be easier to solve.

    Simon Gatrall | Product Development Specialist | Open For Work

  • GregBrownGregBrown Member, Onshape Employees, csevp, pcbaevp Posts: 357 image
    Answer ✓

    On line 61 you need to have:

    "profileIndex" : 2,

  • ry_gbry_gb Member, csevp, pcbaevp Posts: 43 PRO

    Yeah, I can recreate it with the Onshape loft feature. I just modified the file to include a working version with the regular loft. The purple one is the intended result.

    Screenshot 2025-11-04 145144.png
  • ry_gbry_gb Member, csevp, pcbaevp Posts: 43 PRO

    Thanks @GregBrown! That fixes it. I think I understand why now. Looks like I made a typo in the code and had it as "profileIndex": 0, but I also set it to 1 at some point as well. So as I understand it, it's because there are 3 profile curves, right?

Sign In or Register to comment.