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.

fooBar vs. opFooBar

jacob_kingeryjacob_kingery Member Posts: 39 EDU
I've noticed in the documentation that there are a number of functions with similar names such as shell/opShell and splitPart/opSplitPart. I looked at splitPart in the standard library and all it does is wrap one thing in a qOwnerPart query and call opSplitPart. Is it preferred to use one over the other? Are there different situations where one is more appropriate?

Comments

  • ilya_baranilya_baran Onshape Employees, Developers, HDM Posts: 1,215
    splitPart is the feature (with a precondition for UI, etc.) and opSplitPart is the lower-level operation.  I think when the feature logic is not necessary (like in this case), using operations is preferred.
    Ilya Baran \ VP, Architecture and FeatureScript \ Onshape Inc
Sign In or Register to comment.