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.

What is the `op` intended to convey in certain featurescript library?

kenn_sebesta167kenn_sebesta167 Member Posts: 111 ✭✭
edited November 14 in FeatureScript

There are a whole class of features which are seemingly duplicated in intent, but not in functionality nor argument structure. extrude and opExtrude are a couple great examples:

  • extrude: https://cad.onshape.com/FsDoc/library.html#module-extrude.fs
  • opExtrude: https://cad.onshape.com/FsDoc/library.html#opExtrude-Context-Id-map

When I see features in the library with op in front, how should I think about them? They seem a teensy bit easier to use, but a lot less featureful. I see that op commands are listed in the geomOperations area, whereas the regular versions are in Features, but this seems like a weak distinction to draw too many conclusions from.

Is the one somehow a wrapper for the other? If so, is there a way to embed the arguments for one into the other?

Comments

  • _anton_anton Member, Onshape Employees Posts: 508 image

    Yep. The idea is to have a set of orthogonal primitives. E.g., extrude performs an opExtrude, possibly with an opBoolean and an opDraft.

Sign In or Register to comment.