-
Reference Guide or Documentation for FeatureScript Docs Comments?
Does official documentation exist for the docs comment syntax in FeatureScript? These are the comments that start with "/**" and generate the popups that appear when hovering over a function or type. I have been able to figure out a few things from the std source as well as trial and error but searching for real…
-
opExtendSheetBody missing from documentation
Several times in the standard library documentation, a reference to opExtendSheetBody is used, e.g. for extendSurface (context is Context, id is Id, definition is map) Extends a surface body by calling opExtendSheetBody. But the entry for opExtendSheetBody itself is actually missing. I'm not sure whether this is the…
-
Can't publish my custom feature
I just realised my frame trim/extend featurescipt isn't publicly discoverable (sorry, kind of new to OnShape). I've met all the requirements, but for some reason it's not detecting that I've used the feature in my example:
-
FeatureScript versions
I'm new to FeatureScript, but an experienced programmer familiar with many languages, but having trouble finding some specific useful documentation. I can't find proper information regarding the versions available for the version statement at the start of a script, and versions. The only references I've found show things…
-
Beginner FeatureScript Help + Circular Pattern
Onshape Document: https://cad.onshape.com/documents/e14506ff4d20585b290e1eb9/w/f810b9cde10509e5ce6e5ed7/e/e9f37d1a61a2dd62e3b9d8fb After being interested in writing FeatureScripts but daunted by the task of learning it with zero coding experience whatsoever, I am knee deep in my first FS that isn't a step by step or hand…
-
Anyone ever written a feature script that references a .csv spreadsheet of part numbers/descriptions
Hello! We have some standard-ish panels that are assigned part numbers based off of sizing and a few other options. Right now I'm manually entering in the part numbers for the panels based off of the sizing of the panels (which can be time consuming, annoying and prone to occasional errors) I'd like to write a feature…
-
Documentation for Annotation Parameters (Keys/Values)?
I'm looking for documentation on all the possible keys in the "Annotation" maps for featurescript UIs. I can't find it in the standard library documentation or through google searches, but I assume it exists somewhere. Can someone provide a link?
-
[Documentation request] Document how to open a FeatureScript notices flyout
Output (onshape.com) gives information about how to use `print()` and `println()`, but it sort of hand-waves away how to see the output. Consider that a new programmer, such as myself, will not know how to open up a FeatureSCript notices flyout. ("Their output will be visible in the FeatureScript notices flyout") In fact,…
-
How to offset faces for parts in a for-loop
I have a list of faces which I'm running through a for-loop to extrude each one as a unique part, attribute part metadata, and offset (inwards) each one. When I add the opFaceOffset feature I get an error message which I can't seem to wrap my head around. : Below is the error message: I have tried shifting the order…
-
Correct way to do a "Center Point Arc" in Sketch in FeatureScript
What is the correct way to do a "Center Point Arc" in FeatureScript. I have tried an unbelievable amount of methods, and some seem to work, but when their points are contrained to other points on the sketch, under some angles they fall apart. The noteworthy thing here is that I need to constrain the three points to other…
-
User contributed featurescript documentation
One downside of the constant flow of additional features to OnShape is the featurescript documentation gets somewhat left behind. Sometime I discover something by chance (or by close study of the std features source code) and would love to be able to share that knowledge in a structured way. For example I found today that…
-
Documentation pull requests
I recommend that you expose the documentation such that you can accept pull requests for suggestions. It's totally understandable that FeatureScript is new, but the documentation really lacks good examples of how to do common things, slowing down the implementation. If you accepted pull requests we could suggest doc…