-
How Can I Map a Configuration Variable to a Custom Property
I have parts that have a configuration variable defining their lengths. I need to get their lengths into OpenBOM. I'm pretty sure that I can get the lengths into OpenBOM if I send OpenBOM a custom property containing the length. I just don't know how to link my "Length" custom property to a configuration variable. How…
-
New Feature: Mate Pattern
So I was modeling some regular polyhedra, trying to figure out how to do so in steps I could replicate on a manual milling machine (to make them out of aluminum later), and realized many of the steps were duplicates along different axes, and thought: "why spend 5 minutes doing this manually when I could spend 5 hours…
-
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…
-
Cant see "Monitor Part Studio1" FeatureScript
Hi, I´m currently learning how to create FeatureScripts. If I press "Monitor Part Studio 1" in the top right corner, nothing is happening. In the tutorial there is a textbar popping up ("FeatureScript notices"): Is there anything I clicked wrong? Thanks in advance.
-
Learning FeatureScripts
Hello everyone, I wanna deep dive into Feature Scripts and learn how to create my own. Where do I start? What should I know before? Are any coding skills required? @Evan_Reese @MichaelPascoe @MBartlett21
-
Is there a Knurling featurescript available? (like Thread Creator)
Hello All, I am looking for a featurescript which creates knurling on my parts. I am looking for something that takes a cylindrical face and cuts the pattern into the solid body. Normally, I would use cosmetic knurl, but this will be 3D printed so I need geometry to be modified. I am specifically looking to make a…
-
Constructing a Part in a Part Studio using DXFs
Hello All, I am trying to build a configurator inside featurescript that will build an aluminium door (from our product line). Some parts, such as the top bars and skins of the door can be created from standard geometry such as the cuboid command, and a host of other commands such as extrude etc. However, other parts are…
-
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)…
-
Set custom feature description in search bar
Is there any way to set this text in the search bar for a custom feature?
-
how can i take the thickness value from the sheet metal
I've made a copy of "CalculateBounds.fs script" and I've got a script that sets the length and width, but I can't figure out how to get the thickness out of the sheet metal. I added function calculateFlatSMBounds to the end of the following code which sets the description field to sheet metal dimensions. function…
-
Setting categories via Featurescript
Hi folks, does anyone know why setting categories via Featurescript is not (yet?) supported?
-
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…
-
Wordle in Onshape!
So I'm sure a lot of you have seen all of these fancy posts on your socials: Wordle 229 3/6 🟩⬛🟩⬛⬛🟩⬛🟩⬛⬛🟩🟩🟩🟩🟩 and wanted to try the hit game, but you love Onshape too much to leave the site. No worries, because with the power of FeatureScript and configurations, it's possible to play Wordle in Onshape. Introducing…
-
Get Edge/Curve Parameters?
Unless I'm missing something, it seems it's currently not possible with FeatureScript to extract the control points, knots, weights, etc. of an existing edge or curve. It really seems like a fundamental problem. Is this on the roadmap? I do see opSplineThroughEdges in the documentation, but it sounds like it's…
-
Pros & cons of displaying the update-available icon (blue dot) on FS tabs
When a feature/reference update is available in a Part Studio, a blue dot icon is displayed on the studio tab, as well as directly in the feature list. This makes it easy to see, at a glance, which tabs in a document might require updates. In Feature Studios, the dot is displayed next to "import" statements, but not on the…
-
Get All Attributes
Is anyone aware of a way to get all named attributes of a part? In the legacy system we used to be able to just make the attributePattern filter an empty map and it would return all map attributes, but it looks like using an empty string in the name field of getAttribute/getAttributes does not return anything.
-
opFillet Variable Fillet Documentation?
It seems like with the recent update to add variable fillet with points on edges, the documentation for opFillet hasn't been updated. Peeking at the code, it looks like there are a few new parameters: "pointOnEdgeSettings", "edgeParameter", "pointOnEdgeRadius", "pointOnEdgeVariableRho", and "pointOnEdgeVariableMagnitude".…
-
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…