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
-
Reset Name of part
How do I reset the name of a part so that I can configure it using featurescript? EDIT: Also reset any of the other properties.
-
evCollision Clashtypes?
Okay so I'm playing around with the evCollision command but it seems odd to me that there is 8 "clashType" enum values but no matter how I arrange my tool and target bodies I can't seem to get all 8 outputs. So far I've figured out how to get: INTERFERE, ABUT_NO_CLASS, TOOL_IN_TARGET and TARGET_IN_TOOL. For some reason…
-
FS Modifiable Body?
What according to feature-script is a "Modifiable Solid Body" ? This is used in "qAllModifiableSolidBodiesNoMesh()" and "qAllModifiableSolidBodies()".
-
transformResultIfNecessary?
transformResultIfNecessary(context, id, remainingTransform); I've noticed this line of code in a bunch of the std library (31 of the 192 tabs). I don't remember this being all over in the past. Reading in feature.fs there's a large comment about how it enables feature based patterns. Are there any tricks to using this line…
-
Global Variables - Feature Script
Can anyone offer advise on the possibility / components for / method of making a global variable using FeatureScript?
-
"Essential Mathematics for computational design" - but for Onshape?
It would be really great if there were an Onshape/Parasolid/FeatureScript version of documentation like this that exists for Rhino. It's been released as a PDF book in 4 editions over the years, and also as the linked website. Much of the math and concepts are basically the same for Onshape as for Rhino (both being 3D CAD…
-
Delete internal volume featurescripts
Hello, I am calculating buoyancy of an assembly and I am wondering if there are existing featurescripts that can help automate my process. I begin with my assembly and use Create part studio in context using the assembly origin as the origin of the new part studio. I then use Transform -> Copy in place to grab all the…
-
New FeatureScript - Point Derive
Hello all, I'm happy to release my latest FeatureScript, Point Derive. Point derive allows users to quickly derive parts into new positions in a part studio in a manner similar to @ilya_baran's Super Derive feature, but also adds powerful Point functionality. When a part is selected to be derived, any mate connectors which…
-
FeatureScript that generates a cube by specifying desired mass (carbon steel)
Hi everyone, This is my first FS ever and I developped it just for the fun of learning FS. The feature builds a cube by specifying the desired mass (in kg). The density used is for carbon steel. There is an option to center the cube on the center point in the PS. I already have improvements ideas such as: * * Units…
-
How would you design an SVG export app/script/tool?
Step 1: The user selects a number of parallel faces in the Onshape UI Step 2: ??? Step 3: Profit! (Get an SVG you can take to your CNC workflow of choice) The standard workflow recommendation for small CNCs is "Export DXF, import into Inkscape, merge the paths, re-export to SVG" but frankly that's a pain in my ass. There…
-
Having difficulties finding the "other end" of a selection of edges...
Here's the situation, I have a path that I am using to sweep a simple profile. The path can be either a spline generated by the FS or some existing edges. What I'm trying to do is (optionally) add some straight sections tangent to the ends of the path before doing the sweep. It works fine for the "start" of the path as I…
-
Coordinate/Vector input parameter
Hi! Novice featurescripter here, what's the best way to have a UI that lets you input points in comma-separated coordinate form (for now cartesian is enough)? A [bad] approach I think might work is asking for a string input, then parsing that string and converting to a vector, but that makes typechecking much harder.…
-
How to check if an edge is a straight line?
This is probably obvious but I'm struggling with figuring out if something is "straight"... I'm computing the min radius of curvature of a sweep path and got it working (I stole/repurposed the code from @NeilCooke 's cable/wire routing) but i would like to do a check first so I don't sample curvature a bunch of times if…
-
Understanding opLoft with Path Guides (and opSweep)
I am currently working on a feature that will generate a belt profile following a path that will contain sketch edges as well as 3d splines. Using the loft feature, you are able to generate a object by selecting the profile and then the guide path that forms a closed loop. I am having trouble understanding how to replicate…
-
Degree 1 bSplineSurface?
Is there a fundamental reason we can't make a degree 1 bSplineSurface? It could be handy to make some interesting faceted designs. It works in Rhino, and gives the result on the right.
-
Point Pattern (Request Update)
@cody_armstrong @TimRice I love the point pattern, but can you add functionality to ignore the seed? That way we can use an entire sketch for a 'location' without it failing overlapping faces. Rather than independently selecting each point when doing a feature or face pattern (For when this feature ever become part of the…
-
Highlight a mate connector using an entity in a table row
I'm creating mate connectors with attributes that I'll display in a table. I'd like to highlight the mate connector corresponding to the table row. I've done this with other bodies. When I select a row in the table where I've set the mate connector as the relevant entity, the mate connector doesn't respond. I can make…
-
Creating an extrusion using dimensions of face parallel to sketch plane.
Hello. I am trying to learn FS, and as a step in a larger project, I am trying to get my feature to create an extrusion with the same sketch dimensions as a face parallel to the sketch surface but I am at a loss as to how to best go about this. Do you have any suggestions? So far I have managed to create a sketch plane…