-
New FeatureScript: Cut List Pro
Hello, I've always wanted a simple to use tool for generating cut lists for weldments and decided to have a go at creating one. I came up with what I call Cut List Pro. Cut List Pro eliminates the repetitive task of manually sorting structural members, producing cut lists in seconds. Sorts by member type, then size, then…
-
FeatureScript access to complete material properties and the Onshape Material Library
I am a mentor for a FIRST Robotics team, and we recently started exploring Onshape Simulation. One of the first issues we encountered was that parts created by many of our custom FeatureScripts are missing the material data needed for simulation. Our custom features already assign materials such as Aluminum 6061, but…
-
AI generated FeatureScript for a modular kitchen cabinet designer based on IKEA dimensions.
I always wanted to play with some featurescript and found Claude is really good at generating it. All of this started with me wanting to design our new kitchen with Onshape. I realized I don't want to recreate each cabinet so I asked Claude to go find all the dimensions and variants of IKEA kitchens and it found the IKEA…
-
Two Manufacturing FeatureScripts: Automatic Laser Overcuts & Extended Slots _ Custom Features
Full disclosure - I'm a fixture / tooling designer, not a software developer. I iterated a custom FS last year using AI. I started with the CNC overcut feature that Hendrik_Kueck posted here in 2023 but for my work flow, what I really wanted was an overcut feature specifically for a Laser. To that end - I wanted the…
-
Custom Feature - Batch Hole to Slot
I made a FeatureScript custom feature for converting selected circular holes into slotted holes without editing the original sketches. Use case Mechanical plates, motor mounts, bearing plates, gearbox plates, laser/waterjet/CNC parts, and adjustment slots. Very handy when it comes to first version prototypes where one have…
-
How do I contact the author of a Feature script?
Hello, I am using this Feature script: Fully customizable Gridfinity Bin & Base Generator V24 Document: https://cad.onshape.com/documents/0ac6b1badcbf6139bea5b88b/v/dbe75f543656097cf1518e92/e/d208f32e9a295b216538873f There seems to be a fault in the grid generator. According to the Gridfinity documentation the center…
-
How to quickly seperate parts by edges or projection?
Before After I'm don't know how I can describe the question properly. But here is a demo project file, I tried 3 different way to achive the result, None of them are simple enough. Method 1: https://cad.onshape.com/documents/c7c8efb1042f752ba49d0a08/w/c627768566ebe12fa5ec4657/e/42e3261f2580997d0f91c2a5 Method 2:…
-
Creating a sketch in a new coordinate system and rotating it
Hi guys! I am going to create a custom feature which would make an engraving logo on a flat round surface with parametric radius. For that purpose I need: 1. Create a coordinate system. 2. Create a plane based on that coordinate system. 3. Create a sketch. 4. Rotate it. But my code doesn't work and breaks when I assign a…
-
My Feature Script 'Spring Maker' stopped working
Not sure when this happened but all the springs, made using a feature script, we named 'Spring Maker V2.1', are failing. If I go back to any earlier release or version the springs generate fine. The error I get is 'Spring Maker V2.1 did not generate properly; Could not create a valid swept body, check input.'
-
Best practice when updating and versioning a FeatureScript
Community, I searched the forum, but did not find any messages that address my question. I have successfully created a FeatureScript, versioned, and shared it with my FIRST Robotics teams. Now I want to make enhancements. Are these the best steps for a new FeatureScript version? Create a new Feature Studio in the original…
-
Help with featurescript subtraction
link: https://cad.onshape.com/documents/a8c134757a29b9f4453f6e31/w/6b12b36328a688485352be68/e/984235c5f06469cc73216905 I think my code's probably super messy, so sorry. So, I'm trying to make a featurescript that will make holes in the end of square tubes. I got it to make a sketch with a circle, and Extrude it through…
-
New FeatureScript: Engineering Grid
Hi everyone, So I made my own ISO grid featurescript. I tried out the other two feature scripts that can create isogrid patterns, and I found that Julia's is fast but rudimentary, and Evan Reese's is immensely powerful but slightly slower than I would like, and is missing a couple of features I wanted. Of course, the next…
-
Custom BOM showing only some parts of an assembly
Is there a way to generate a custom BOM on a top level assembly that only shows parts with a certain property? For context, I am trying to create drawings of top level assemblies that may contain 50-100 parts, some of which are inside of sub assemblies, and on these drawings there would be a BOM showing only those parts…
-
Is there a Featurescript for finding and replacing certain dimensions.
I have sketched several dozen and I need to do it without going through all individually. I thought I saw a video for onshape that used this 'script.
-
Custom Feature: Gear Rack
Realized I needed to design two gear racks for a robotics project, and rather than spend 20 minutes doing it manually, I wrote up a custom feature to automate it with some quality of life features (helical/herringbone teeth, fast regeneration, alignment stuff, blah blah blah) Snag it here if you'd like! 100 tooth regen…
-
Issue Assigning Value to Company Custom Property
I attempted to create a feature script, and when trying to use it, am getting regeneration errors. Our company uses mechanical cables. For these mechanical cable parts, I want a 'Cut Length' property. These parts are modelled using sweeps, and I want the cut length value to be linked to the sketch entities used as the…
-
Anyone already wrote a feature script for "slotted bending" (sheet metal)?
Hey, I am currently trying to write a quick feature script to transform a sheet metal bend corner into a "slotted bend" (like described nicely over at Hackaday a while back: https://hackaday.com/2016/05/18/the-art-and-science-of-bending-sheet-metal/ ). This can already be easily done manually by drawing a sketch with a…
-
How do you add in a Feature Script into OnShape, ie; Surface Text?
Hi all. I'm somwhat new to Onshape and went through a class to learn it but have come across a situation that I can't find the answer for. I'm sure it's a simple one that just wasn't explained in detail to our class. What I am trying to do is add a text box with text in it in a half moon flat configuration somewhat like…
-
Extrude along a line featureScript
I'm trying to create a feature that allows me to easily create print-in-place hinges for a personal project. One of the features is that I can define the angle the hinge is created at. how can I edit my script to make the extrudes occur along the same path as the line given? Here is the document:…
-
linear pattern direction
hey guys , i am having some trouble with how my linear pattern is generating in a way i cant understand. the feature is in early stages, but the point at this stage is to select a 2d face to run a set of rectangular load bars either along an x or y direction . using a bounding box to get the length of the bars as the shape…
-
Creating Sheet Metal Object via Feature Script
Hi All, When I create a sheet Metal object via feature script. In the sheet Metal Context window, It shows "Unknown" instead of the usual "Sheet metal model 1"… How do we control this behavior in featurescript? Thanks in advance!!!
-
opBoolean() with BooleanOperationType.INTERSECTION fails with @opBoolean: BOOLEAN_BAD_INPUT
Hello Helpful Onshapers! I want to use opBoolean() to "take a bite" out of a solid model. I imagine that this should be done in two steps: 1. Use BooleanOperationType.INTERSECTION to create a "mouthful" of the target 2. Use BooleanOperationType.SUBTRACTION to remove that mouthful I then plan to put the body created in step…