-
Chisel (New Custom Feature!) 🆕
Chisel (New Custom Feature!) Chisel allows you to: * Freehand chisel your part in real-time to give it that custom wood look. Fun fact :) Chisel and Draw are currently the only two features in Onshape that allow you to do real-time freehand geometry editing.…
-
Multi Config - a new feature to generate all configurations
Introducing a new feature - Multi Config. This feature set allows you to generate all (or many) possible combinations of configuration parameters for a given part or part studio. For configuration variables, the user simply has to add each possible value that they want to include in the matrix of configuration parameters.…
-
Can Revision Numbers be set using FeatureScript?
Can Revision numbers be set using FeatureScript?
-
Auto Layout Feature
Hi! I am another member of the team of five college students, mentioned by Jacob Kingery, who got the chance to work with FeatureScript this school year, and this is one of the features we made. Let us know what you think! Auto Layout is a Feature we built to lay out parts for laser cutting or other manufacturing…
-
loft not working with guides ;-;
https://cad.onshape.com/documents/4415e93291eabbf9ee253eec/w/27d3564434c2b91b92bfdf5b/e/51a511cfa043954a4e85962d i am working on a keyboard frame and need to perform a complex loft. in this previous discussion thread i asked how to fix the connections in my loft, and got the answer i needed. however, i wanted to try and…
-
Points along a Curve
I am new to FeatureScript and am looking to create a (seemingly) simple script that places points along a curve, evenly spaced. Without getting into other spacing options, I would first like some guidance on how to do this given only a distance and a quantity, starting from the end. I tried to dissect the very nice Curve…
-
Need help to get the metadata of the edges where fillet is applied (Onshape API and Featurescript)
Dear Onshape Community,I am currently exploring the Onshape API and FeatureScript and have encountered a challenge that I need your help for. https://cad.onshape.com/documents/434d4a21b8a6c0778e403fa4/w/08494f0fabeef3bd3f45494c/e/3fb329dd4fa90642555fc853 In this project, a simple geometry has been modeled where a rectangle…
-
Selection N compound curves and generate a piece wise approximation and print to debug
I have a funny use case. I'd like to use the onshape sketcher to draw curves. Then I'd like a feature that can select N curves and process them to get piece wise linear approximations and then dump the points to the console or debug. My exact case is that when writing test cases in c++ I often have to generate small…
-
GERBER to ONSHAPE feature
I recently got into the world of PCB design. It’s going well, just had my first PCB made and it’s working great. I’m working on KiCAD, though that’s not really relevant to the issue I’m about to surface. I want to develop a FeatureScript that bridges the worlds of PCB design and 3D Modeling. Such features already exist…
-
How to have a Sketch as a parameter
I’m not sure I’m getting the terminology correctly, but when I’m saying parameter I’m referring to the light-blue input boxes that are in the feature-menu that pops up when creating a new feature. Say, in a Part Studio, I creat a new Extrude feature. I can either manually select entities to extrude (with my cursor), or I…
-
@OPPATTERN: INVALID_INPUT
FeatureScript 2345;
import(path : "onshape/std/common.fs", version : "2345.0"); annotation { "Feature Type Name" : "Pattern Line"}
export const patternLine = defineFeature(function(context is Context, id is Id, definition is map) precondition { annotation { "Name" : "Select Line:", "Filter" : EntityType.EDGE,…
-
@opPattern: INVALID_INPUT
Trying to duplicate a user-selected line. No idea why these two Featurescripts attached below aren't working. Out of ideas. @NeilCooke HELP! Also, side questions:1) What's the best way to have the pattern be perpendicular to the line? Currently they're in the same direction. I was hoping to be able to go…
-
(FeatureScript) help with checking the form of a face
I'm working on a FeatureScript tool that operates on cylindrical holes and the flat face of counterbores (in different modes) and am having trouble finding a good way of checking the form (cylindricity, flatness) of the queried faces in question. What would be the most efficient way of doing this?
-
Reset material so featurescript can modify it?
I have a lot of bodies which have had their material properties edited interactively. I've now created a featurescript to change the material properties with setProperty. However this doesn't work for bodies where the property has been changed interactively, even if the material is reset to "None". Is there any way to…
-
How Do I Reach Out to FeatureScript Dev?
I am attempting to bug report for FeatureScript's Point Pattern but am not sure how to reach out to any devs since I cannot find anything online or on featurescript docs. Any help would be appreciated!
-
New custom feature: Make radius
Continuing my practice writing featurescripts I figured I create this feature that I used to use in another CAD system and sometimes missed. It's similar to a Move Face (offset) but sets the round faces to an absolute radius, rather than a relative offset. have fun! Jelte now available for testing for all:…
-
Keep a reference to a body across operations
I've been stuck on this for a day now. I'm creating a feature to assist making Domino joints in wood panels. The panels will initially be modelled as overlapping, and the feature will do boolean operations to remove the overlapping parts, and then create sketches on the parts that will show where the Domino router will be…
-
Get a Vector from an Edge
Is there a way to convert an edge (query) to a vector? I've asked Chat GPT but it just seems to make stuff up... "Hi, Chat GPT here, In Onshape FeatureScript, you can convert an edge to a vector using the opEdgeToVector function. This function takes an edge as input and returns a vector representing the direction of the…
-
Table (New Custom Feature!)
Table (New Custom Feature!) https://cad.onshape.com/documents/01485b6de17aef414a25e778/w/926dfaef6b63d239b8d9d739/e/fb5da00aa581ddc9c53c4379?renderMode=0&rightPanel=cutlistPanel&uiState=6398b9684c6d6f30a465a5b1 Table allows you to: * Import CSV data * Manually input data * Store data as a custom table * Store data as a…
-
Featurescript. Create a record of edges vs solid bodies.
Can the keys in a map be edges? And can the corresponding value in the map be a Solid Body? (I know that Arrays can contain Solid Bodies.) I want to create a record (whether it's a map or an array) that links an edge to a body. So Edge1 belongs to SolidBody1, Edge2 belongs to SolidBody2, Edge3, belongs to SolidBody3 etc. I…
-
New Feature: Split with Flip
A problem I've repeatedly encountered is that splitting a part doesn't offer any way to control which resultant part maintains continuity with the original, and which is considered a new part. This feature is similar to the regular "Split" tool, but adds a "Flip orientation" checkbox to swap which created part is which.…
-
Help Point for Split in FeatureScript?
Hi, I'm working on an alternative split body feature that first creates a copy of the part and splits both of those so attributes/properties and ID's are more stable in referencing their part (original or new). This is relevant for 'keep both sides' splits. I've often had a upstream feature of the split tool change…
-
New Feature: Multi-Mirror
I often work with symmetrical designs in multi-part studios, and many times I have a number of parts to mirror across multiple planes. With the standard mirror feature, I have to use a new feature for each part x the number of planes to mirror about. That means if I have 3 parts to mirror about the top, right, and front…
-
Feature Script simple question
Hi, I'm learning Feature Script these weeks but i'm a newb to programming. one of the custom features i created selects and edge (by user), and then the edgelenght is evaluated and used in many places. it seems that the definition of the edge or a value created in the 'precondition' is available for all function calls…
-
Setting the Name Property on a Composite Part
Perhaps this has come up before, but is there any fundamental reason I shouldn't be able to call setProperty for the name on a composite part? In other words, should I submit an IR to do so?
-
New FeatureScript predicate: Fontpicker
I have published Fontpicker R1. You can find it here: https://cad.onshape.com/documents/0fef4e86805ae7e232be4d16/v/1decb6f4e1ef91711d5892a6/e/4522968d16630da6fe5ce8b8 Please note: This document doesn't define a feature itself. Rather, it defines a predicate to be incorporated in to your FeatureScript preconditions. This…
-
Retaining Ring Groove Custom Feature
Easily create grooves for ANSI and DIN retaining rings with my new Retaining ring groove featurescript. Simply select a cylindrical face and a mate connector for the groove center and it will automatically find the matching groove size. Add to your toolbar here (no need to…
-
Single Part studio Custom Table Examples
I'm trying to write a custom table featurescript for a single part studio with a composite part. It is essentially a cut list but I am trying to use variables in the part studio to drive the length for the different cut parts instead of frame tool elements. I'm also trying to write some logic that will change the…