feature script
Discussion List
-
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.
-
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…
-
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…
-
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
-
Adding ease of use abilities to the std. sheet metal model feature
@lougallo I am starting out very simple. I am trying to add a selection list to the standard sheet metal model feature. if I select an option, I want the sheet metal material properties to be set either from predefined values, or if custom is selected, from user input values. I am creating a function that will decide what…
-
Feature Script: Roll Form Die - How to subtract transformed parts in a loop?
Hi Onshapers, In essence, I am trying to create a roll form die from an imported part.I have identified two ways of doing this: Way #1: "Rotate Part around roll"In this case, I import the part, drop a MateConnector on its center and create a cylinder as a "roll" above it. The center of the cylinder is aligned with the…
-
Using the custompropertyID to show custom property in a custom table
Can someone show me the correct syntax to use the customPropertyID with PropertyType.CUSTOM? I just can't get it to work for some reason (mostly because I have almost no idea what I'm doing with FS!), but trying hard to learn..... var custom1 = getProperty(context, { "entity" : part, "propertyType" : PropertyType.CUSTOM,…
-
Help needed: opMove doesn't behave as I expect
Hi all, I am experiencing an issue with the `opMoveFace`. The issue is relatively simple. I create a sketch (e.g. a circle) on a plane (let's say the `top` plane). Then, in a feature script, I apply the following operation on the created face (hereafter named `myFace`): opMoveFace(context, id + "moveFace1", { "moveFaces" :…
-
Set a part name off Based off a Part Studio Name (Using Featurescript)
Is it possible to do one of the following 1. Get the current name of a part studio and name a part using that name 2. Name a part studio based on a part name I am trying to quickly rename and update properties for a lot of parts. I understand how to update properties and rename individual parts (using feature scripts) but…
-
Making queries and choosing parts
Hello, it's the third day I'm trying to figure it out but can't find a way. There are 2 "HOW TO" in the linked code I need help with: https://cad.onshape.com/documents/ea8f7cb66c45333ca1b9ef34/w/9adca070203387c455da1627/e/4b4132af1e1d18d47336a16e Can you help me with the two tasks: 1. The main thing to input is a mate…
-
Link Tab Broken ?
I'm having this issue when trying to sign into my google account to use the link tab tool where the authentication prompts this : Sign in with Google temporarily disabled for this app This app has not been verified yet by Google in order to use Google Sign In.
-
Instantiate and Query Preservation?
I am attempting to store queries(of edges) in a FeatureScript attribute of parts, and then derive those parts into another context. It seems to not preserve the query when using the instantiate function and I'm guessing that's because opMergeContexts() doesn't go into FeatureScript attributes. Is there a way I can go and…
-
Feature UI: 2 booleans on a row?
I have this: But I want this: DISPLAY_SHORT isn't doing it. Is this possible?
-
Need help on using Recursion(function calls itself)
Hi, Anybody used recursion function in FS. I am getting id issues while calling the function itself. Any help would be great. Thanks.
-
featurescript for beams
first off all,hello could some one help me under stand, and then show me how to install the beam feature script into my work document, I've copied Neil's beam generator and can create the beam code but cannot seem to bring the new beam into my work document hope you can under stand my question thanks barry
-
Attaching Documentation to Custom Feature
Hi, Is there anyway we can attach additional information(Like User guide in pdf format) to the custom feature?
-
Is it possible to make a LengthBoundSpec dependent on an input variable?
I'm searching for way to adjust the min/max input values in a FeatureScript, depending on previously selected inputs. Is that possible?