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.
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 like 123.4, which the editor says "integer required".
I also haven't been able to find a list of "standard" files that can be included and what they provide, what is their intended purpose.
I have tried Google and even ChatGBT to see if it can find this info, but no luck so far.
Any suggestions would be greatly appreciated!
Answers
The versions that you can use are the names of the versions in the standard library. The imports of standard library items are then done with
import(path : "onshape/std/box.fs", version : "2641.0");
, where box.fs is replaced with the name of the tab in the standard library and the version matches. Non-standard-library imports can be done with the import button at the top. They import with various 24-character ids.https://cad.onshape.com/documents/12312312345abcabcabcdeff
Note that the main
FeatureScript 1234;
at the top is actually a language version. Generally it should match the current version of the standard library (A quick way to find out is to useFeatureScript 9999
and then inspect the parser error, which gives you a maximum version).For example, this is what the start of
onshape/std/debug.fs
looks like:IR for AS/NZS 1100
.
Also, here are some useful links for getting started with FeatureScript:
FeatureScript Documentation
Standard Library Documentation
Standard Library Source
.
FeatureScript Fundamentals - Onshape
.
FeatureScript Video Tutorials - CADSharp
.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! Learn How to FeatureScript Here 🔴