The SmartBench blog

Notes from the FeatureScript bench.

Practical write-ups on FeatureScript, the Onshape API, integrations, and engineering automation — from the people who build them every day.

29 articles

A Guide to FeatureScript Inputs

Developing a custom feature in Onshape starts by answering 2 basic questions: what is the input, and what's the output? The output is usually pretty easy to answer, the feature…

Data Driven Features

FeatureScript is one of the defining features of Onshape that make it stand out from the rest of the CAD industry. Unlike macros, Onshape custom features are fully parametric.…

Smart Part Numbers are a Trap

Smart Part Numbers are a Trap

The question that comes up time an time again is: what is the best part numbering schema? The answer is - depends on the company. But more specifically, I get asked "Sequential or…

A Few More Undocumented FeatureScript Functions

In my previous post Hidden FeatureScript Functions , I talk about a few hidden functions within FeatureScript and show how they can be used. I'm back with a few more examples. All…

Navigating Onshape API Limits

Navigating Onshape API Limits

This past year Onshape introduced new API limits. Previously Onshape always had some kind of limits, although the exact details weren't published. API limits exist in every web…

Making use of Hidden Parameters in FeatureScript

A parameter in an Onshape Custom Feature can be made hidden from the user by using a UIHint

The Mechanical Engineering Stack and Onshape Strategy

The Mechanical Engineering Stack and Onshape Strategy

"What data should we migrate?"\ "Should we be using the API or FeatureScript?"

Attributes in FeatureScript

Attributes in FeatureScript

Attributes are a feature of Onshape's FeatureScript that seem simple at face value, but are incredibly powerful. In the simplest terms, attributes are data attached to entities in…

The Hidden Parameter in newSketch

The Hidden Parameter in newSketch

I accumulate a lot of weird and niche knowledge about Onshape and FeatureScript in the course of my work. This is no exception. Honestly, this blog article isn't even for you; its…

Reading Previous Feature Inputs

"Hey Caden, can a feature extract the parameters of a previous feature?"

Malicious FeatureScripts

As a consulting developer, a common question that I face is one of security, and its a question you should always be asking outside consultants and developers.

Hidden FeatureScript Functions

One of the big selling points of Onshape FeatureScript that I like to talk about is that Onshape's standard features are written in FeatureScript, all of the standard code is…

Protecting FeatureScript Code

"Hey Caden, I've written a FeatureScript, and I want to share the feature, but not my source code. Is there any way to do that?" - Anonymous

Exporting Labeled Geometry with FeatureScript

I've been asked a few times about a variety of challenges that all fall under the same category:

FeatureScript and Configurations

I've talked about how great Onshape configurations are in the past. They work great and are super powerful. FeatureScript also works fantastically with Onshape's configurations,…

Making sense of the Onshape Configuration String

Onshape's configurations are one of its best features. Easy to use, well integrated, and very powerful. But when making an Onshape integrated application, they can add a bit of…

Dynamic UI in FeatureScript

This weeks FeatureScript tip: creating a dynamic user interface.

How to Add a Custom Feature

You've found to perfect custom feature, and you want to use it in a part studio. How you do get it on your toolbar?

A Quick Guide to Debugging FeatureScript

FeatureScript is an integral part of Onshape, and in my eyes is key to what makes Onshape unique (aside from the whole cloud thing). I like to tout how simple it is to get started…

Practical Applications of FeatureScript

I recently gave a talk about the practical applications of FeatureScript, but for those unable to see it in person, I decided to write it up as a blog post. FeatureScript gets…

FeatureScript Optimization

Note: Onshape update 1.180 improved performance of the normalize function.

Use Chrome Extensions to Automate Onshape

Officially, there are two ways to automate with Onshape: The API and FeatureScript. Both the API and FeatureScript work extremely well and allow a good deal of innovative ways to…

Rethinking the Engineering Team

Since the introduction of CAD programs, the usage of computers has taken over the engineering world. Old-timey rooms full of drafters, decked out in white shirts and ties,…

Onshape, The Future of CAD?

Recently, I have begun working with the new-ish CAD system: Onshape. Onshape is a cloud based CAD software combining both modeling software and PDM. I’ve worked with more than a…

Learning UX from Video Games

The User Experience (UX) of a program, app, website, or video game encompasses both the look and feel of the product. The design of a program from keyboard shortcuts to fonts, has…

3 Tiers of ERP APIs

ERPs (Enterprise Resource Planning [software]) come in many forms, styles, and flavours. Onsite, cloud based, multi-site, ERPs exist to fit every niche and need of many…

Send Emails From Google Sheets

You’ve made a complex spreadsheet to automate a good portion of your business. Great! But you still have the mundane task of sending the same emails over and over again. The good…

Save 6 Hours a Week with Smarter Software

The value of automation is directly linked to the amount of time workers spend on repetitive tasks, and the reduction of human errors. Even in the most automated systems, humans…

Bulk Report Generation

I recently worked with a client, a medical clinic, with a simple request: automating biweekly reports. Every two weeks, the clinic needs to generate a report for each contractor.…