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!

[12 min]

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
You need to be logged in to view this content. Please login or become a member.
[23 min]
In this FeatureScript video tutorial, you’ll learn how to work with various user inputs in Onshape. The lesson covers using check boxes, queries, and real number inputs. You’ll also learn how to implement if/else statements, use operators, and work with arrays. Additionally, the tutorial will guide you through using Onshape’s constant for cubic units and setting properties such as appearance.
  • User Inputs
  • Check Box
  • Query
  • Real
  • If / Else Statement
  • Operators
  • Array
  • Onshape’s Constant (Cubic Units)
  • Set Property (Appearance)
You need to be logged in to view this content. Please login or become a member.
[16 min]
In this FeatureScript video tutorial, you’ll learn how to work with more user inputs in Onshape. The lesson covers using enums, UI hints to show labels, default values, and grouping UI elements. You’ll also learn the coding concept of maps.
  • Enum (Drop down selection)
  • UIHint (Show label)
  • Group
  • Defaults
  • Maps
You need to be logged in to view this content. Please login or become a member.
[18 min]
In this FeatureScript video tutorial, you’ll learn how to work with more user inputs in Onshape. This lesson reviews enums and maps from the previous lesson. You’ll also learn how to set name properties and round units to a precision number of decimal places.
  • Group (Boolean driven)
  • String Parameter (Text)
  • Set Property (Name)
  • Working with strings (Text)
You need to be logged in to view this content. Please login or become a member.
[8 min]
In this FeatureScript video tutorial, you’ll learn how to copy an existing feature in Onshape. This lesson covers Onshape’s standard source code and references the FeatureScript documentation. You’ll also learn how to copy and modify an existing standard source feature. Additionally, the tutorial will guide you through working with user inputs such as angle and length, and using the Tab Manager to search all FeatureStudio tabs.
  • Onshape’s Standard Source Code
  • Onshape’s FeatureScript Documentation
  • Copy a Feature
  • Length Parameter
  • Angle Parameter
  • Tab Manager
You need to be logged in to view this content. Please login or become a member.
[17 min]In this FeatureScript video tutorial, you’ll learn how to modify an existing standard source feature in Onshape. This lesson covers importing code, using functions efficiently, and organizing your code structure with functions. You’ll also get familiar with various shortcuts, including viewing a function’s source and search and replace within the current tab.

  • Importing Code
  • Functions
  • Shortcuts
  • Code Structure
  • Monitor
You need to be logged in to view this content. Please login or become a member.
[19 min]In this FeatureScript video tutorial, you’ll learn how to modify functions and handle errors in Onshape. This lesson covers importing code, using functions, and organizing your code structure efficiently. You’ll also get familiar with printing to the console and handling errors using try-catch blocks.

  • Importing Code
  • Functions
  • Shortcuts
  • Code Structure
  • Print to Console
  • Error Handling (try-catch)
You need to be logged in to view this content. Please login or become a member.
[25 min]In this FeatureScript video tutorial, you’ll learn how to merge entity filters and utilize Feature Name Templates in Onshape. This lesson covers measuring distances, accessing detailed documentation, and creating custom functions. You’ll also get familiar with displaying popup messages, managing Part Studio variables, and using computed parameters to streamline your workflow.

  • Merging entity filters
  • Feature Name Template
  • Measure Distance
  • Documentation
  • Custom Functions
  • Popup Message
  • Part Studio Variables
  • Computed Parameters
You need to be logged in to view this content. Please login or become a member.
[17 min]

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
You need to be logged in to view this content. Please login or become a member.
[10 min]In this FeatureScript video tutorial, you’ll explore the valuable techniques of using switch statements and refactoring code. This lesson will guide you through creating efficient and readable code by organizing your logic with switch statements, custom functions, and restructuring your code for improved readability.

  • Switch Statements
  • Refactoring Code
  • Custom Functions
You need to be logged in to view this content. Please login or become a member.
[15 min]

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
You need to be logged in to view this content. Please login or become a member.
[17 min]

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
You need to be logged in to view this content. Please login or become a member.
[10 min]In this FeatureScript video tutorial, you’ll continue to learn how to dynamically update the user interface using the editing logic function. You will learn how to utilize Read Only parameters to control user input, and explore the qGeometryType function for enhanced script functionality.

  • Dynamic UI
  • Editing Logic Function
  • Read Only Parameters
  • qGeometryType
You need to be logged in to view this content. Please login or become a member.
[14 min]

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
You need to be logged in to view this content. Please login or become a member.
[10 min]In this FeatureScript video tutorial, you will learn how to dynamically get the current units of a document. You will also learn about ternary conditional operators which are useful for shorthand if-statements.

  • Document Units
  • Ternary Conditional Operators
You need to be logged in to view this content. Please login or become a member.
[13 min]

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
You need to be logged in to view this content. Please login or become a member.
[10 min]In this FeatureScript video tutorial, you will learn how to create user inputs for a custom table. You will also explore valuable sorting functions and how to use them robustly.

  • Custom Table UI
  • Sort()
  • Key()
You need to be logged in to view this content. Please login or become a member.

Get on-demand tech support from CADSharp via Slack!