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.

Are the parameters for the Onshape features in featurescript documented anywhere?

zack_juhaszzack_juhasz Member Posts: 1
I've managed to get some to work by looking through the source code and finding the parameters but it's quite a pain to have to do that. After looking through the source code for loft I still don't seem to be able to figure out what parameters it needs. This is what I see in the documentation:
The issue is as far as I can tell all complex data structures in featurescript are maps and the required definition depends on what you're trying to do, so this doesn't really tell me anything. I can find the parameters for opLoft but they are of course different than the required parameters for loft, I am looking for something like this but for features (specifically the loft feature at the moment):

All I'm trying to do for this test is take a sketch in my part studio, make a copy of it a certain distance away then loft between those two sketches. Here is my code.

Answers

  • mahirmahir Member, Developers Posts: 1,307 ✭✭✭✭✭
    I agree. The documentation could use a little more detail as to what is actually part of a features definition map. Typically, the non-op version of opFeatures (e.g. extrude vs opExtrude) take the same inputs as the opFeature. The only difference is usually the addition of inputs for a boolean operation (operationType, defaultScope, booleanScope).
Sign In or Register to comment.