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

kenn_sebesta167
kenn_sebesta167 Member Posts: 121 ✭✭✭
edited November 2025 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: 555 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.