-
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…
-
[FS} Speed of functions defined in versioned document versus same document
Is there a reason to expect a performance boost when calling a function from an imported versioned document as opposed to importing from another file in the same document? As an example, I copied a low-level function (`project`) from the FS stdlib into my document and renamed it 'local_project'. The profiler shows that…
-
How to make beam feature drive part numbers?
I've been using the beam feature regularly and would really like the ability to have it set the component's part number as well as name. (To the exact same thing -- nothing fancy.) I know I can do it with a mix of variables and a Part Number FS, but I'm regularly working with 8+ beams per part studio, all of whose lengths…
-
PSA: New additions to the FeatureScript Standard Library
If you aren't in the habit of regularly browsing the Standard Library Source or the Standard Library Documentation, you might have missed the addition of two new functions to the Onshape standard library in the latest Onshape release, isQueryEmpty and areQueriesEquivalent. (I guess they weren't deemed worthy of a mention…
-
Query specific edges
I'm looking for a way to query all the edges of a surface body. I'm hoping there is a way to filter only for edges that have two faces attached. I'm sure I read this somewhere but I am not able to find where it was.
-
Configuration variable range available in FeatureScript
Hey All I want to be able to display the range of a configuration variable in the feature tree. I am beginning to learn FS, so i am wondering if I can access the range (min and max value) of a configuration variable from FS? Or can I make a variable in my doc have the value of the Min or Max possible value of a…