-
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…
-
New Custom Feature: Beans
Ever needed to fill your part with beans? now you can. https://cad.onshape.com/documents/e5d7fa14c8575cfc7c1f66b6/ let me know if you have any questions.
-
New custom feature: Arbitrary gear path
hey all! another janky feature from the smidchens household - take whatever path you want (elliptical, polygonal, spline…) and generate gear teeth along that path using local curvature to drive involute profile. snag it here: https://cad.onshape.com/documents/8f033780ed64a1971e38c2a9/
-
Can you define an area field in the Feature definition
For some reason we have the "AreaBoundSpec" but no ability to implement it the same way as a length paramater in a feature definition. Am I missing something??
-
opSplitFace with Plane or Mate Connectors
I can't get it to work with a plane or with a Mate Connector. Does anyone have an example of a working set of parameters I can look at? I'm confused as to what I'm doing wrong. I should elaborate. Both the mate connectors and/or planes are created within the Featurescript. Out of bodyTools, planeTools, faceTools, etc.…
-
Custom Features for Additive Manufacturing: Hose barbs, luer locks, threads, dovetail o-ring grooves
Hiya folks! Coming in hot with my first, second, third, and fourth FeatureScript drops. These are all designed to help designers to who want to use 3D printing, particularly with an emphasis on part consolidation (my company, Inkbit, is very excited about providing 3D printing as a real production technology) . Rather than…
-
Intersect Views (New Custom Feature!)
Intersect Views (New Custom Feature!) https://cad.onshape.com/documents/1755463e12cab51e4a5de51f/w/07865f22b67cc44e473c99a3/e/302fb7288b77057ca30414fb How to add a custom feature to your tool bar:
-
Why is this draft failing? In general, opDraft vs. draft?
Howdy, I am working on a taper lock bushing feature script and cant get the draft for my taper to work. I've tried many variations of opDraft and draft but no success with either. The link to my public document is here and there's a screenshot of my current draft attempt/error warning below. That is my immediate issue, but…
-
Maintaining a stable body id when copying flat pattern body into standard part studio edit space
I have a feature that contains an option which allows the user to copy the flat pattern of a sheet metal part into the standard part studio editing space. The problem I have been having is, any time the part studio is edited and a new feature is added or removed which interacts with the parent sheet metal body, the flat…
-
New Feature: Braided Curve
Hey all! Wanted to model some braided wires for fun, and couldn't find a custom feature to generate the braid paths. Slapped one together real quick, snag it here: https://cad.onshape.com/documents/e522ae0e05eda848c8b5a692 Eventually I'll add options for more than 3 strands (right now the logic is all kinda hard-coded for…
-
Gear Lab - Cylindrical, Bevel, Face Gears
Yup, it's another custom feature for gears. I had previously used Neil Cooke's excellent 'Spur Gear' feature [Link], but I wanted the ability to generate bevel and face gears as well. I only learned about Bob Tipton's great bevel gear FS after I had nearly finished this. I fear that my "Gear Lab" custom feature is largely…
-
opSplitFailing for some reason
Hello, I cannot figure out this error. It is a relatively simple bit of code. I can see that the bodies variable is a valid body (using debug entities) Additionally, I can split using the planes created using opPlane. The error is: @opSplitPart : SPLIT_SELECT_TARGETS Code: FeatureScript 2960; import(path :…
-
Featurescript UI Question
Hello everyone. This is my first featurescript. I am attempting to expand on @jeff_brown304 's Camel project, by making an improved CAM drill tool. The intent is to have the user select a cylindrical hole surface, and subsequently unhide portions of the UI that correspond to different features that the hole may have. For…
-
Custom Feature: Gridfinity Parametric Generator
Hi! I created a custom feature to generate Gridfinity bins, either completely solid (so you can make cutouts), or hollowed with customisable features like labels, finger sliders, etc. I saw another version of something similar posted here, but some of its dimensions are off and I also ran into issues when stacking the…
-
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…
-
Set Property (New Custom Feature!) 🆕
Set Property (New Custom Feature!) Set Property allows you to: * Dynamically set the properties of your part or multiple parts. * Set custom properties. Tips: * Custom property ID's are found in your company settings. * Right click on any value input to convert it to expression. This means you can use variables to drive…
-
Custom Feature: Amalgam Tag and Amalgamate
Are you like me and use Point Derive for everything? The ability to draw a part studio in one document and copy and paste functional geometry all over a different document is a huge force multiplier for quickly and precisely generating complex parts that adhere to centralized standards and document control schemes. For…
-
PLEASE explain "externally disambiguated" / "transient" / "robust" / "tracked" / "unstable" ID's etc
It has been years and we still don't have foundational knowledge of how featurescript operates. From what I can see in the forums most of us dev's have been wasting hours upon hours guessing and testing. This post and others are "weak-sauce" at best. We all know about: -"forEachEntity" -"makeRobustQuery" etc, etc and may…
-
Custom Feature: Tangent Fill
FeatureScript link I've been using SolidWorks a lot lately (not by choice) and one of the features I found that is nice is the Tangent option in the Filled Surface feature for when you're filling in patches in places where fillets leave sharp pinch points. Now, while the native Onshape Fill already does this, it's a PITA…
-
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…
-
Reference Guide or Documentation for FeatureScript Docs Comments?
Does official documentation exist for the docs comment syntax in FeatureScript? These are the comments that start with "/**" and generate the popups that appear when hovering over a function or type. I have been able to figure out a few things from the std source as well as trial and error but searching for real…
-
Custom Feature: Bip Joints - A Hand Bendable Sheet Metal Joint Feature
-Link to feature up front- If you're a producer of sheet metal parts, or design your parts for sheet metal production, there's a strong possibility that your manufacturing pipeline is catered towards hard flat flanges with edges parallel to the bends because that's what the manufacturing process favors. This manufacturing…
-
Printable Counterbore FeatureScript
This is my first time trying out creating a FeatureScript. It's all vibe-coded but works pretty well after some tweaks. It takes ideas from https://www.baysingersadditivemanufacturing.com/design-floating-holes/ and https://blog.rahix.de/design-for-3d-printing/ for how to modify counterbore holes to better handle floating…
-
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.
-
User Interface Guidelines?
It would be great if Onshape would publish a set of User Interface Guidelines like other mature platforms. I find myself often thinking I should try to emulate first party features with things that I'm developing, but then I wonder how much of some of them are legacy results of adding functionality and not wanting to break…