Onshape FeatureScript Video Tutorials
Go from zero to hero in just weeks with our Automating Onshape with FeatureScript course. Whether you’ve never written a line of code in your life or you’re a programming veteran, these lessons give you the skills to take your Onshape workflow to the next level.
What’s New?
Lesson 16
Lesson 16 is now available!Lesson 16
This new lesson is about creating custom tables.
Lesson 17
Lesson 17 is now available!Lesson 17
This new lesson is about custom table UI and sorting functions.
YouTube Session 1
A YouTube Session for Product Catalog is now available!Product Catalog
Need more help? Have us make a custom feature for you!
In this FeatureScript video tutorial, you’ll learn how to create and customize a custom feature in Onshape. The lesson covers setting up a Feature Studio, adding user inputs, coding your feature, and adding a custom icon. You’ll also learn how to integrate your feature into the toolbar, troubleshoot using debugging techniques, and share your custom features with others.
- Creating a Feature Studio
- Adding User Inputs
- Coding Your Feature
- Adding Your Icon
- Adding the Feature to Your Toolbar
- Troubleshooting Your Feature
- Sharing Your Feature
- User Inputs
- Check Box
- Query
- Real
- If / Else Statement
- Operators
- Array
- Onshape’s Constant (Cubic Units)
- Set Property (Appearance)
- Enum (Drop down selection)
- UIHint (Show label)
- Group
- Defaults
- Maps
- Group (Boolean driven)
- String Parameter (Text)
- Set Property (Name)
- Working with strings (Text)
- Onshape’s Standard Source Code
- Onshape’s FeatureScript Documentation
- Copy a Feature
- Length Parameter
- Angle Parameter
- Tab Manager
- Importing Code
- Functions
- Shortcuts
- Code Structure
- Monitor
- Importing Code
- Functions
- Shortcuts
- Code Structure
- Print to Console
- Error Handling (try-catch)
- Merging entity filters
- Feature Name Template
- Measure Distance
- Documentation
- Custom Functions
- Popup Message
- Part Studio Variables
- Computed Parameters
In this FeatureScript video tutorial, you’ll dive into advanced techniques such as adding to definitions and nesting functions. This lesson will guide you through the nuances of using evMateConnector and evLength, as well as the Try Silent approach to handle errors gracefully. You’ll also explore the use of qEntityFilter, qLoopEdges, qUnion, qOwnedByBody, and qBodyType to refine your queries and enhance your workflow.
- Adding to the Definition
- Nesting Functions
- evMateConnector
- Try Silent
- evLength
- Bold Debug Entities
- qEntityFilter
- qLoopEdges
- qUnion
- qOwnedByBody
- qBodyType
- Switch Statements
- Refactoring Code
- Custom Functions
In this FeatureScript video tutorial, you’ll learn how to measure an angle, diameter, area, volume, and even a centroid. This lesson will help you become familiar with many different evaluation functions in order to boost your custom feature potential.
- evCurveDefinition
- evSurfaceDefinition
- angleBetween
- extractDirection
- evArea
- evVolume
- qOwnerBody
- evApproximateCentroid
In this FeatureScript video tutorial, you’ll learn how to dynamically update the user interface using the editing logic function. This lesson teaches the value of editing logic for making advanced features more intuitive, and how to use functions as map templates to streamline your scripting.
- Dynamic UI
- Editing Logic Function
- Functions as map templates
- Dynamic UI
- Editing Logic Function
- Read Only Parameters
- qGeometryType
In this FeatureScript video tutorial, you will learn how to properly convert units to a easily readable string. Additionally, we will teach you how to use compound assignment operators.
- Convert Units to String
- Compound assignment operators
- Document Units
- Ternary Conditional Operators
In this FeatureScript video tutorial, you will learn how to create a custom table. Custom tables are useful for conveying a table of intelligent data which can also be exported or inserted into drawings for further use.
- Custom Table
- GetVariable
- SetVariable
- Custom Table UI
- Sort()
- Key()
Get on-demand tech support from CADSharp via Slack!