-
Featurescript to create plane from an edge and a direction
I'm only just learning about Featurescript. This is (a step towards) what I want: from an edge, create a plane that contains the edge and is vertical. Here is my attempt. I've tried opPlane, but that requires a point and a normal. I don't have the normal (yet). I've tried cPlane (seems like a logical choice, this what I…
-
Simple Polyline Sketch Example on Selected Plane
I can't find a Featurescript example where the user picks the plane or face in the precondition area. All the examples I find use the "TOP" but I want to select one of the datums or an existing face to create my canned polyline logo. Help!
-
Can't Sketch on Plane Created with opPlane
Hello, I am trying to create a new plane using opPlane, then create new sketch features on it. The plane shows up, but not the sketch. The body of the FS code is below. Thanks! var plane1 = opPlane(context, id + "plane1", { "plane" : plane(vector(0, 0, 2) * inch, vector(0, 0, 1), vector(1, 0, 0)), "width" : 6 * inch,…
-
Planes in Assembly
Hello Is it possible to show the planes in assembly? I want to make mate between planes, like in Solidworks. Regards
-
Problem: opPlane() with a rotated coordSystem creates a "non-rotated" plane
I'm trying to write a feature script that takes a curve and a point as parameters (among others), and creates a plane with the x-axis pointing in the direction of that curve's tangent at the given point. (The motivation is, I want to then manually draw a sketch on that plane that extends the curve in some way.) Everything…
-
Creating Plane through 3 Points in featureScript
Does anyone have any tips for creating a new plane through 3 points. Have not had any luck with all test attempts of cPlane, opPlane, etc. var b = vector(32, 56, 0) * millimeter;var a = vector(88, 0, 0) * millimeter;var c = vector(88,56,50) * millimeter;var _origin = (a+b+c)/3;var _normal = cross((c-a), (b-a));var newplane…
-
How to adjust the size or resize the default Top Front Right planes
Hello, I am making small parts. After my sketch and extrude Solidworks adjusts the default planes automatically to the size of the largest body in the part. I see that onShape does not do this, am I missing something? Can I turn that on somewhere? Is there a workaround? (make own planes) Can I change the sizes of the…
-
Rotate plane by degrees about an axis
I am trying to create a series of similar bodies in different different orientations. They are like fingers on a hand. I am able to create each finger currently, but am having some difficulty orienting them. I pass in a plane to the function that creates each finger, but then I have to rotate several features on each…
-
is it possible to display planes for mating purposes - the part is an imported rexroth extrusion
is it possible to display planes for mating purposes - the part is an imported rexroth extrusion
-
3D printing - always one perimeter is NOT flat
Hi, When I print cubes, they always have one side not flat at all. Especially the corner of that perimeter. How does that happen? readjust the platform's level? the issue of nozzle? And one more thing, how could I make the top sealed? It is like this all the time. Thanks for help. Just like this:
-
Plane Axis orientation
@ilya_baran Lets say you have created a plane "Plane 2" as shown below. now as you see the plane created in in the same axis orientation of the Global X and Y axis even tough I have used the edge of the extrude to define the rotating axis. I want the plane to be oriented in such a way that the axis system of "Plane 2"…
-
Using FS can we create a sketch on a face of a part or only on Planes?
Hi Folks. I'm playing with my first FS. Using FS can we create a sketch on a face of a part or only on Planes? More broadly I have an input of a single vertex (from a sketch on the surface of a solid part). I wish to create a sketch here then add some geometry to work with. What's the easiest way to accomplish this please?…
-
Plane tangent to cylindrical surface
In SW I often create a plane tangent to a cylindrical surface in order to cut keyways or pockest etc. Doing it this way maintains the depth irrespective of any changes to the cylindrical diameter. Any ideas how this can be done with OnShape?
-
FeatureScript request: Auto adjust planes to max size of part
Can a gifted someone program a FeatureScript to adjust the sizes (X,Y) of the standard geometry planes to the max size of the part with the press of a button? This would be very helpful when importing or making new small parts.
-
Sketch won't show -- how to remedy.
The object was to create a surface loft between two splines using two guide curves. The first guide curve was already in existence. I created two planes, and on them drew two splines. Then I created a third plane and drew the second guide curve. I wanted the end of one splined to coincide with one end of the guide curve. I…
-
Planes
Are there any tutorials on plains? I looked for some and have tried to figure it out. I have not been able to make any plains. But mostly I want to sketch a keyway on a shaft and thought that would be the way to do it. Thanks Teddy_P
-
Hide All Non Solids?? Or similar to "Section View" a "Solids Only View"?
Hello! I run across this a lot! When I want to do a "screen grab", I have to do a lot of selecting to hide planes, sketches, surfaces, etc. I was thinking of creating a "Level" that all those were on and being able to "Blank" that "Level". Easiest way I have found (so far) is to Select a Plane and pick "Hide Other Planes"…