Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- 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.
Undocumented Hidden Featurescript
So far I have discovered:
-opCreateOutline (creates flattened surace of input topology)
-opExtractSurface (Used within opOffsetSurface)
-?? notation for managing undefined variables
-switch function
All of which have no official documentation or any documentation what so ever. I also know that there is "Button" functionality which I'm excited to try out but can't use yet because there's no documentation for it. What else has everyone discovered that has no documentation?
Comments
Just a note on this - yes, there are undocumented and internal (marked clearly as such) functions in the standard library, and there are reasons for us to have them marked this way. So while we won't stop you from using them, we would caution against relying on them for a custom feature you intend to creatre.
Theres a ton of stuff that isn't document, but you've found what I consider the two more important functions. Granted, be careful with opCreateOutline, I've had some issues in the past with getting it to work. Its probably undocumented because it can fail unexpectedly.
How sheet metal works, hole properties, frame cut lists, etc are all "not documented" but can easily be found in the std code and used in some way.
getRemainderPatternTransform is used to make sure that your feature can be selected by a feature pattern.
Not document, but good practice, and maybe should be documented.
Features can take an input "asVersion" to let you run older versions (Not sure why you would)
opBoolean can take in an "accuracy" parameter
opBoolean can also work with two sheet bodies to find the intersection if you use "allowSheets":true
opEdgeChange exists…but my notes have no description, so no idea what it does.
?? might not be in the docs but it was definitely in the release announcement.
We were able to piece together how buttons work in this thread (sorry Onshape):
https://forum.onshape.com/discussion/comment/104730#Comment_104730
and I have an example here:
https://cad.onshape.com/documents/f8ba2ea9ce957e1435682607/w/1f842302f05d8c6657cbb20e/e/7e04c3ddd5648a108862cafa
Custom FeatureScript and Onshape Integrated Applications
( https://cad.onshape.com/FsDoc/tokens.html does mention
??
, BTW, though we clearly have some updating to do onswitch
.)@Caden_Armstrong opEdgeChange is the opposite of opExtendSheetBody, i.e. to negative offset the edges of a sheet body. You can see it in action in the Fill Pattern feature.