featurescript
Discussion List
-
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…
-
Ace Editor Short Cuts (including To Upper/Lower)?
I know that in general, the FeatureScript text editor is based on Ace. I also know that most of the keyboard commands work. However, some are overridden by standard Onshape things. In this case, I wanted to use the "to upper case" command (normally ctrl-U), but it triggers the contact support pop-up. Is there an official…
-
Extruding in for loop
I am working on a mortise and tendon joint in feature script. I know there is already one that exists, but it does not do exactly what I want. This also pushes me to finally learn FS. FeatureScript 543; import(path : "onshape/std/geometry.fs", version : "543.0"); annotation { "Feature Type Name" : "MortisetAndTennon"…
-
Featurescript Wiring
Hello @jon_sorrells @Noa_Flaherty ,I´m using your Wiring Featureskript and I would like to know if I can access the automatically detected length of the cable to automatically load it into my cabling table in the drawing.
-
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…