-
FS for sheet metal slotted bend lines?
I was looking for some examples of designs for precise sheet metal bend lines and found a patent with a series of interesting slotted bend line designs. According to Google the patent is expired since 17-8-2020 and the designs can be used free. It looks like something that could be an useful FS. I just started using…
-
Feature Script
Hello! I'm looking for any feature script which can give me back the name of the version where I'm working in. The reason for this is the following one: I want to assign a customize part propertie where the part number contain the version name, so I need to achive the document version to add in a variable. Thanks!
-
Looping sketch creation with Extrude Cut or Boolean
Hi All, I have a feature script for crate a broached hex, and I have three main issues, which I'm hoping I can get help on. The link to the document is here: https://cad.onshape.com/documents/143d97f968e97efe61cf1d4f/w/86344877e8b059d820b296f3/e/7dd59a453a901190faf0a82a * I am trying to have the extrude cut feature remove…
-
Internal or External Surface Selection
Hi, I am learning how to use Feature Scripts and I have come up against a bit of a road block that I'm sure must be relatively easy to solve: I can't figure out how to tell whether a user selected surface is an external or internal face (for example a cylindrical surface could be either a hole or a shaft). Please could…
-
How to mirror a feature?
I would like to mirror the opSweep and opBoolean function, on the opposite side of a cylinder. The documentation says, that i need a featureList as an input for the instanceFunction. Could not find out, how i can construct it. Or is there another way I could achieve this?? opSweep(context, id + "sweep1", { "profiles" :…
-
Custom feature programmer
Hello, Any recommendations for custom feature developers? Thank you
-
Variable Section Body FS Help
Hi, I am working with the Variable Section Body FS to try and create a serpentine flexure hinge that has a variable width. I am currently running into issues with keeping the section centered around the path line. Does anyone have experience utilizing this feature script and can tell me what I am doing wrong or whether…
-
Multi Mate Connector - Face Mode U/V Axis
@konstantin_shiriazdanov With the Face option for Multi mate connector, it would be really nice to have an explicit way to chose the secondary axis being aligned to the U or V direction. Right now, it seems like if I pick the Face as the secondary reference instead of Default, I can get it to flip from U to V, but I…
-
Centred Text in FeatureScript
I'm trying to create a simple featurescript thing that will take a numeric value (from a variable, but that's incidental), convert it to a string with a prefix and write it as text centred on the origin of a face of a body. Most of that is quite straightforward, but I've been completely beaten by the (seemingly simple)…
-
How can i write feature script for triangular pyramid?
How can i write feature script for triangular pyramid?
-
How to write triangular pyramid in feature script!
i've a problem when i write feature script for triangular pyramid,here a prbolem ,Please tell me what i need?annotation { "Feature Type Name" : "pyramid" }export const myFeature = defineFeature(function(context is Context, id is Id, definition is map) precondition { // Define the parameters of the feature type annotation {…
-
In Feature Script: Zero need ValueWithUnits when sketching somethings?
Hello Everyone, I try to sketch circle like this: precondition { annotation { "Name" : "Ring Diameter" } isLength(definition.myRingDiameter, { (millimeter) : [0, 120, 500] } as LengthBoundSpec); } var D = definition.myRingDiameter; skCircle(sketchPINS, "circle1", { "center" : vector(0 , D/2), "radius" :…
-
Custom feature script for 2 extrudes
I would like to make a feature script that will make 2 extrudes. I do this exact same action very often and I would like to make this automated. Regarding FeatureScript I am still relatively new (I have made a few featurescipts for variable lists), so I wanted to ask what I would need to do to make these actions happen.…
-
Is there a way to control dependencies in the 'configure properties' table?
I'm wondering if anyone can tell me how to use FS to control dependencies in the configurations property table(if possible). For instance, I have a hose I want to vary in both diameter and length. For any length of hose with D=1", I would want the part number to be 1. For any length of hose with D=2", I would want the part…
-
How to select only created sketch objects?
I've been working on improving the part lightening script that I made, and have run into a issue that I can't think of a way to get past. I have the script create rectangles follow the path of selected lines to make the ribs between parts. But I'm running into the problem where the extrude operation includes automatically…
-
Set a color to the holes with cosmetic-thread
Hi all.Does anyone know if it is possible to create a feature-script in Onshape to set a specific color to the faces (red for example) only for the holes with a cosmetic thread created in my part? Thank you in advance
-
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…