-
Custom Feature: Cable/Wire Routing
Cable/Wire Routing: https://cad.onshape.com/documents/3599036701247d65f0106997 There have been many wiring custom features created over the years, each using a different approach and each having different strengths, but none focused on the end-to-end process. This new set of custom features takes the best ideas from those…
-
Custom Feature: Mold & Die Design
On Thursday, 12/12/19, I hosted a webinar to talk about mold design methodologies in Onshape and to introduce 4 new custom features. The replay of the webinar can be found here. As the names suggest, these custom features automate the creation of core and cavity geometry. A number of Onshape users have already beta-tested…
-
Feature Studio Keyboard Shortcuts
For those of us who do a lot of custom feature coding, shortcuts can be very handy. Attached is a PDF of all the ones you didn't know existed! These will be added to the help documentation in the future.
-
Wildly varying regen times with instantiate
I've got a feature that instantiates configured geometry from Part Studios in previous Version of the same doc. Three addInstance calls into one instantiator, then a single instantiate. Regen times swing by roughly 8x and I haven't been able to find a repeatable pattern. What I'm seeing Regen lands at either ~200ms or…
-
New Features: MC to Transform, Transform to MC
Link to feature Somewhat similar to some features from @jnewth (see this thread), these two features will measure the transform between two mate connectors (and store a variable and custom table), and the other will generate a new mate connector from an existing one with a transform variable (or entered values). Unlike the…
-
Can FS make derivable sketches?
As the title says. Is there any way to derive the sketches (as sketches, not extracted curves) made by a custom feature?
-
New Polyhedra Generator Feature
Link to Polyhedra Generator I first made this feature in late 2023, and the recent FeatureScript MCP sparked a rewrite with some big speed improvements. Instead of building every face one at a time, the feature now builds only the part of a shape its rotational symmetry cannot repeat and patterns out the rest, so even the…
-
Sketch plane axis orientation
I am currently working on this part. The idea that I'm trying to make work is for the end of the gray part to be parallel to the face of the blue part as the angle of the blue part changes. I made a plane parallel to the blue part's face and drew the sketch on it. It looked good until the angle rotated past 135 degrees.…
-
Displaying calculated values in the user interface
Hi I just finished the featurescript fundamentals tutorial and are trying to make my first feature by myself, which is a gear generator. I want to display some calculated values in the user interface where the user enters the input parameters to help them select the input parameters. To be a little more concrete, there's a…
-
New Custom Feature - HoleTag
I posted about this as a response some time ago, but just reworked it. HoleTag slightly modifies hole diameters (in increments of 0.00016mm) so that you can choose whole bodies when using Replicate and parts will only mate to holes that have been tagged appropriately. By importing an editable variable studio to the…
-
New Feature: End Cap Plus
New feature built with help from ChatGPT Sol and Onshape MCP. https://cad.onshape.com/documents/bd99601ff5b8641af79ceafa/v/aaa9be724e67cb3e33ed481d/e/cc5bfce1df64a3b5a595ee9b Description: Use the standard End cap workflow with manual face selection, or automatically discover and cap every unobstructed open end of hollow…
-
Regeneration Error while using an imported CSV Sheet
Hi I am new to using the custom feature for wiring created in OnShape. I have been stumped because I am unsure what I am doing wrong. Importing the CSV that I made from Excel works fine, but I keep getting the regeneration error when I try to import Wire Data into the Part Studio. I have already created a Variable Studio…
-
It's time to update how FeatureScript can control properties
With public MCP access we're about to hit a big wave of custom feature development. One of the most common limitations I hit is in using part properties to do things. I think the Support Team is about to have to field a ton of tickets on this, because the issue is non-obvious, and the thing people want to do (but can't) is…
-
Highlight elements while editing without regeneration impact
I'd like to be able to highlight geometry for user reference while they're editing a FeatureScript but without impacting the overall regeneration performance. The closest way I know of doing this is with debug(), but that adds ~1ms regeneration per face or vector and ~6ms per direction even during normal part regeneration…
-
How to avoid FS update for a given model?
So I have this model, built with a version of a certain published FS, but that FS has been updated since, and does now behave slightly different. I could, of course just refuse to update anything. What I want is, though, to update everything, but prevent updating that one FS, in order to keep the model intact. I always…
-
B-Spline ?
how i can pls this part in onship make ?
-
Announcing a FS to hack slicer reinforcements by injecting defects into the part
https://cad.onshape.com/documents/b95216af1e90e786deb23796/w/2ecd2d07e99b4ff6ba9897e3/e/62dfca14b08639924f9223fe I made an FS that strengthens chosen regions of 3D prints without touching slicer settings, and it does it in the slightly stupid way of filling a region with spherical voids. The trick is that slicers put walls…
-
Did autocomplete options change?
I'm not getting autocomplete for precondition snippets anymore. Is anyone else seeing this?
-
New FeatureScript: Stock Size Pro (FREE)
I've created a new custom tool called Stock Size Pro. It basically uses the same stock size calculations I used for my Cut List Pro FeatureScript, but for single parts. This includes: Onshape's Structural Frame profiles, plates, round, tubes, hex, pipe, threaded rod, sheet metal and gussets of several styles. The sizes can…
-
Grid Extrude Block regeneration
The page freeze in this pozition. Only way to unfreeze is to come back in history where grid extrude is surpress. Any solution? Until now I use with success Grid extrude feature, never have a problem.
-
Sheetemal.fs
where can I download the sheetmetal.fs? I would like to work on a featurescript based on the sheetmetal.fs. Thanks
-
Window.fs added to my Residential Construction suite
Window inserts lumber as shown and cuts away existing Stud Wall framing and panels created with Sheathe. Now time to update Door to work and look like Window…
-
two identical part studios, wildly different regen times. why?
both of these are in the same document, the lower, faster one is a pure duplicate of the upper, slower part studio. the belt and pulley gen is 1,5s in the first, but 300ms in the second. why could this possibly be?…
-
FeatureScript access to complete material properties and the Onshape Material Library
I may have originally posted this in the wrong forum. I'm a bit surprised by the engagement. https://forum.onshape.com/discussion/31431/featurescript-access-to-complete-material-properties-and-the-onshape-material-library#latest I am a mentor for a FIRST Robotics team, and we recently started exploring Onshape Simulation.…
-
New Custom Tool : SVG to Sketch
Hey all — long-time Onshape user, wanted to share something I've been building and using in production. The problem: Getting vector artwork (logos, cutout profiles, panel designs, icons) into Onshape as real, editable sketch geometry is annoying. DXF import can be inconsistent, and manually retracing SVGs with the sketch…
-
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…
-
New FS Published: Stud Wall
I've been working on Stud Wall for a while and it feels pretty stable now. I had some assistance from Claude in the code, and it wrote the full User Guide (thank you @GregBrown for giving me the idea to ask AI to do that part). I'll soon publish Sheathe and a console-output version of Lumber List. I also have Door almost…
-
QuakeIIIArena bit-hack code written in featurescript
https://cad.onshape.com/documents/29e6ce5316fbadb2fa98702b/w/61d5a536b165313813af25ac/e/32631c72aee224385208e1ac FeatureScript 3029; import(path : "onshape/std/common.fs", version : "3029.0"); const TWO_23 = 8388608; // 2^23 const TWO_31 = 2147483648; // 2^31 const BIAS = 127; const MAGIC = 1597463007; // 0x5f3759df…
-
Custom Feature: Pulleys with custom tooth profiles
BackstorySome months back I ran into some challenges with the standard OnShape tooling when it came to modelling a belt and set of pulleys. I took to the forum for help, where I was pointed to a series of custom FeatureScript solutions. Namely: This parts studio with a custom belt (though the pitch is wrong). I liked the…
-
Most usefull FeatureScripts.
Hi, I am lazy to search through this discussion so its there any table (summarize) of all usefull feturescripts . Just not to start the same work twice… THX Petr
-
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…
-
Starting Point to learn Onshape API
Hello, I am new to the Onshape API. I have used Onshape for designing mechanical automation systems for 6 months now. I have 10+ years of experience in mechanical design and using legacy 3D modelling software like SolidWorks, Inventor, AutoCADetc. I would like to know where I should start if I want to create API based…
-
Is the MateConnector.fs code the only way to do in-context inference in a script?
The only way I've ever been able to use inferred MC's as inputs while modeling in-context is with this exact code, even the requirement of naming the function "mateConnector". Do I need to use this exact code as the basis for these types of scripts, or is there a more universal/normal way to do it? FeatureScript 2960;…