-
Does anyone have any good examples of how to use startTracking?
I've read a few posts on the forums, but would like to see some examples on how to use it. My dumb brain is failing to understand how to implement it in practice.
-
OpLoft Fails
Hello, I am trying to do an opLoft, and it fails, giving me the following error: @opLoft : LOFT_SELECT_GUIDES I am initializing the loft in the following way: opFitSpline(context, id + ("outSpline" ~ edgeId ~ "Face" ~ faceId), { "points" : outPts }); opFitSpline(context, id + ("inSpline" ~ edgeId ~ "Face" ~ faceId), {…
-
Extrude BoundingType Problems
I'm working on an injection molded boss custom feature. I'm trying to get the bosses to extrude to the part with or without draft reliably. In doing so, I'm discovering weird things about UP_TO_NEXT or UP_TO_PART which are causing issues. Here's a manual feature based version of this issue - if I use up to next or up to…
-
Is Dynamic Text Possible in a Collapsed Group Header?
Title pretty much says it all. I want non-editable text that can be updated in a group header that can be collapsed. For example: ⌄ Boss OD 2.0 x d = 5.0mm Ratio 2.0 Diameter 5.0 mm > Boss ID 0.8 x d = 2.0mm > Pilot ID 1.0 x d = 2.5mm
-
isDragging()? Manipulators?
Is there a way to know when a user has let up on the mouse and is done dragging a manipulator? I thought I was making good progress using ChatGPT, but today we're been going in circles trying to resolve this. The bigger issue is that I'm trying to implement NUV motion for splines. I had a pretty good version working, but…
-
New Feature: Edit Curve Plus - BETA
https://cad.onshape.com/documents/cbd5b34feb4bb0575a2bb2b4/w/37bf21e38c9e1ebe1fdbda21/e/113fec25a8e729bfba1786e4 So this is even more experimental than Bridging Curve Plus, but it seems to do some things that I've wanted for a while. Onshape doesn't have great ways to manipulate multiple points in a feature at once, and…
-
A few more undocumented FeatureScript functions
Over on the SmartBench blog I've written another article discussing a few undocumented FeatureScript functions that I find useful. Read the blog article here While there are some hidden gems in the std code, just keep in mind that undocumented functions could produce unexpected results, or change without warning. Something…
-
Do you need a "Transform sketch" feature? Request for feedback.
Hey everyone, I'm working on a new custom feature called "Transform sketch". This isn't an activity I frequently need in my own modeling so I wanted to ask for some suggestions before writing much more code. IF this is something you need, please let me know when you would use it, what you use it for, and what controls you…
-
New Feature: Bridging Curve Plus
I don't have an icon or an explainer page yet, but I wanted people to bang on this and tell me if there are any obvious issues. So things might change, but I hope this is a reasonable approach. For a long time I've wanted to have a way to optionally make both sides of a Bridging curve work the same. I actually did 98% of…
-
Multiple Intersections with evDistance or ???
I'm trying to find all the potential intersections between two arbitrary 3D curves (edges). I've been playing with evDistance and discovering that it always comes up with a single result. There are some old threads and ideas around splitting or sampling curves to get more complete results. What is the current…
-
FeatureScript writers: Stop using println! And start using Report (New FeatureScript announcement)
Actually, It's totally ok to continue using println! But I wanted to introduce a new FeatureScript called Report that will help you control your featurescript notice area output. It's a bit hard to describe, so take a look at the HOWTO video below:…
-
Configurations API endpoint
Hi All, I have a Partstudio that has several configurations (A, B, C, D, etc…). When I use the below endpoint. https://cad.onshape.com/api/v13/elements/d/{did}/w/{wid}/e/{eid}/configuration It gives me all the available configurations which I can use to construct my next API calls, however, it always defaults to…
-
Free Form Deform Sandbox
Lazy post this time because this is not really a feature. More like the concept of a feature. The people yearn for generalized object deformation in Onshape and I recently vibe coded up some core utilities that can offer a solution in that space but it's real rough stuff at the moment and y'all are gonna be waiting some…
-
I want to learn about NURBS mathematics to better use Feature script. Where do I start?
NURBS (Non-uniform rational B-spline) is the square patch surface definition logic that the onshape modelling environment is based on. I want to be able to tap into that power with featurescript so that I'm not creating, analysing and deleting topology just to get some information. For example I would like to be able to…
-
Custom Feature: Tweep
-Link to feature up front- Look, standard sweeps are boring. They have no drama. They have no torque. They just follow the path like a good little obedient feature. I got tired of it. So I made Tweep. It’s a Sweep. It Twists. It’s Tweep. Do you want your geometry to look like a churro that gave up on life? Do you need a…
-
Extrude along a line featureScript
I'm trying to create a feature that allows me to easily create print-in-place hinges for a personal project. One of the features is that I can define the angle the hinge is created at. how can I edit my script to make the extrudes occur along the same path as the line given? Here is the document:…
-
How Does Surface Text Know Where a Circle Starts and Ends and which way is up?
I've had some troubles getting ST to put the text exactly where I want it, right-side up and not in mirror image. I've wrestled it to the ground in the document cited. Ideally the two phrases would be aligned to a single inner circle with Better Luck's bottom sitting on the circle and Next Time's top hanging from it.…
-
Can I have multiple feature studios in one Onshape file?
I have a couple of Featurescript features and want to be able to add them to my toolbar. Rather than creating multiple files, I tried creating multiple feature studios in an Onshape model, each with a separate feature. My thinking is that I could organize all my featurescripts in one place, and version them from there.…
-
Custom table (FeatureScript) for Flat Dimensions of sheet metal parts in a Partstudio
https://cad.onshape.com/documents/5034c5130071ba379c79c5d0/w/c884b8a4fb6436460ae29e0c/e/364b16ed56555282bcb85297
-
Custom Feature: Loft Fillet
Because of @EvanReese's series on equations, variables, etc. in Onshape, I ended up getting sucked into the FeatureScript rabbit hole. Needless to say, I'm hooked. I'm not a real programmer, but I'm still pretty happy with coming up with something that'll automate a pain point in my CAD workflows. Plus, then I get to share…
-
Texture (New Custom Feature!)
Texture (New Custom Feature!) https://cad.onshape.com/documents/46897a2d60ade8dbb04077f3/w/23398bd91a932d1432a5d204/e/201138fdd8eee8cfcd2dcac1 With Texture, you can create solid body textures by clicking a surface or face. Use pre-loaded textures, or use your own custom texture, (See the tutorial gifs below). This feature…
-
Allowing for mate connector selection. What's the correct syntax?
I'm testing out different query types and wanted to allow for users to select a Mate Connector. However, when I wrote out: Filter" : EntityType.BODY && (…|| BodyType.MATE_CONNECTOR), the feature dialog doesn't allow for mate connector selection or show the mate connector symbol until I add || AllowMeshGeometry.NO as well.…
-
Adaptive Finger Joints for Streamlined Design of Laser-Cut Structures
The worst part about designing laser-cut structures in SolidWorks is CADing all of the finger joints between components; even if you use a boolean for half, you need to CAD or pattern one side, and neither is all that nice. Since I dabble in programming (and wanted an excuse to script something), I took a hack at making a…