Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
featurescript
Discussion List
-
Allow Non-destructive Ace Commands in View Only FeatureScripts
Right now if I want to search for something in std.fs I have to make a copy of it. If I hit CMD-F in a view only FeatureScript, I get the browser text search which only works for what's on screen - which is not helpful for long bits of code. If I'm in an editable version of a FeatureScript, CMD-F uses the Ace search and…
-
Using a closed loop sketch as path for opSweep
Hi, I'm trying to use a sketch inside FS as a path for the opSweep function. It works fine when the sketch contains a few connected lines, but it throws an error as soon as it becomes a closed-loop (e.g. a rectangular path). Any idea how it can be resolved? var path1 = newSketch(context, id + "path1", { "sketchPlane" :…
-
Obsolete FeatureScripts? Guides?
It seems like there really needs to be a better way to curate the most current useful FeatureScripts. As more and more functionality gets added to the native features in Onshape, there are FeatureScripts out there that don't make so much sense. There are also sometimes multiple people doing similar but different…
-
FeatureScript Help
I am trying to learn a little FeatureScript. Looking for a bit of input on this one, https://cad.onshape.com/documents/975e5a12e82b5d60281883ab/w/4c6a9174b7dd3839ec4c2295/e/a920a3afff5e167ad546da55 I copied the Port Feature by @cody_armstrongand modified it to do what I needed now I would like to get the tool to add the…
-
Mobile FeatureScript Challenge!
Mobile FeatureScript Challenge! Have you ever been in line at a coffee shop, and a strong urge to featurscript suddenly hits you? It turns out, you can actually write featurescripts on mobile devices! Objective: Write a FeatureScript only using your cellphone. Guidelines: - Only use your phone - You may import functions if…
-
Is it possible to use the "show dimensions" tool for a featureScript created sketch?
I'm having an issue where the dimensions are unavailable for a sketch that was generated through featureScript. Selecting the option does nothing and Im assuming that it is related to the fact that it was created via a featurescript. I have 3 speculations as to why this doesnt work: * This arc was created as an arc using 3…
-
Is there a way to change values of variables depending on an Enum selection?
I am relatively new to custom FeatureScripts and I am trying to create a list of variables. I would like the value of those variables to change depending on what choice I have made in the dropdown menu. I want the choices inside the blue bracket to change the value of those inside of the grey bracket.
-
STD vs Custom FeatureScript Speed?
In the process of investigating Bridging Curves, I noticed that copying a feature from the STD library and making minor modifications made it ~3x slower. I just did a test where I have my code (which has a few simple math changes), and the STD code where the only change is to add debug lines during edit, and then the…
-
Diff for Featurescript?
A while back I copied the Featurescript code for Bridging Curve and made some changes. I'd like to compare my version to the current version of the standard library code. For what it's worth, when I did this work originally Featurescript was at version 1324.0, it's now at 1618.0. I'm sure I can just download my code and…
-
Updated: Laser Joint Feature is now about 25% faster
Finally had some time to write more code, so made I some improvements in the Laser Joint feature! Can be found here, or by searching in "community spotlight" in the add custom features dialog. Using primitives and patterns to cut the pins in the tab parts now, which is about 25% faster than the previous version. No bugs…
-
Can Custom Feature Scripts Create Variables Automatically?
Would there be a way for me to create a feature script in which it will make a variable automatically with the only input from a person being the value. For ex. I'm trying to create a feature script to make bolt hole patterns that require an equation that uses multiple variables. I need to create variables that you can…
-
New FeatureScript: Cosmetic Threads
Hello Everyone, I'm releasing my first FeatureScript! Now you can create Cosmetic Threads in Part Studios: These threads are two helix edges which were created with sweep and split commands. Features: * Specify the pitch and the direction of the thread! * Shows in Part-Studios, Assembly and Drawing Tab! * Much faster than…
-
New feature to share: Composite selected
I created a new feature that allows selection of bodies by type for creating composites. I needed this because we have variable numbers of parts in our part studios and thus the manual selection option that comes with the built in composite tool doesn't work. On reflection, a better solution might be if the part studio…
-
Query Part from Part Studio to Use as Input for Custom Feature
I have written a custom feature that takes a part as an input and performs operations using that part. I am writing new a feature that uses the first feature. When using the new, top level feature, the part that is used as an input for the referenced feature should be predetermined, not chosen by the user. I can have this…
-
Featurescript Request: Consolidate PCBAs
I have a workflow I use most of the time to take complex PCBAs from vendor sites and turn them into simple STEP files and I'd love to know if this is something I could automate with a featurescript. I don't have much experience but would absolutely love to learn if I had time Many PCBAs I receive from vendors or clients…
-
New Custom Feature: Rename Beams
This is mostly just recycled code from the beams feature. In our case, it's really nice to have the beams named accurately, including the length, which obviously changes with move faces or what have you. So the idea is that you put this feature after all of your manipulation to the beams, it remeasures the length, and sets…
-
Triad manipulator with rotation like in assemblies?
Is there a way to get a triad manipulator that can also rotate, like the manipulators in assemblies?
-
Manipulator Change and Editing Logic working together
I'm working on a feature with manipulators to change some values, and I also want editing logic to change some values when others are changed. I've got them both working independently, but I'm not sure the best way to make them work together. Put another way, my editing logic works when I type a new value, but not when I…
-
Manipulator Change and Editing Logic working together
I'm working on a feature with manipulators to change some values, and I also want editing logic to change some values when others are changed. I've got them both working independently, but I'm not sure the best way to make them work together. Put another way, my editing logic works when I type a new value, but not when I…
-
Featurescript Linear Algebra Library?
Does anyone know of any linear algebra libraries in Featurescript? Looking for some functions that are slightly more complex than what's in the stdlib. For example, solving a least-squares matrix system is my current problem. I can get my own using the SVD function, but maybe someone has done this and more.
-
New Award Winning Custom Feature
Photography has always been a fun hobby for me and recently I unearthed an old film camera. Studying light, thinking about how film works, and loving a good FS challenge, I was curious if I could recreate the Polaroid camera in Onshape. At the same time the Onshape team hosted an internal design contest open to all…
-
How can I optimize this FS?
I am currently finishing up a Belt and Pulley generating FS for FRC and have noticed a few areas that add a lot of generation time, some I know why, but others I don't quite understand (such as line 350's extrude). If anyone has any suggestions on where I can optimize the FS, or if there are any tips on good optimization…
-
Feedback into UI panel
Hello, is it possible to use a calculated value as a default in the UI panel and have that value displayed? Thanks Lee Hesketh
-
New FeatureScript - World Revolve
Hello all, Something I've always wanted to see added to the revolve feature is the ability to easily use a world axis to define the axis of a revolve. Since Onshape doesn't support datum axes by default, revolving around a world axis often means manually creating an arbitrary length construction line or manually selecting…