-
How to extrude skRegularPolygon ?
I made a a sketch, and on that sketch a polygon: var poly1 = skRegularPolygon(sketch, "polygon1", { "center" : pointArray[0], "firstVertex" : vector(pointArray[0][0]+(2.5)*millimeter, pointArray[0][1]+(2.5)*millimeter), "sides" : 4 }); I want to extrude this polygon, but the function above returns a map and the opExtrude…
-
Plane axis tilt
How can i tilt the axis of a plane? I want to sketch on, and extrude from slanted surface. See how it's not lining up?
-
Access to sketch elements
I'm probably missing something, but it seems to be unnecessarily difficult to access newly created sketch elements. I want to create a sketch containing two lines and then extrude one of the lines depending on other conditions. The extrude requires a query as input, but I can't find a query that will return an element with…
-
skRegularPolygon -> opExtrude
Hi,how use skRegularPolygon in opExtrude , and do it solid body? view 75 code line https://cad.onshape.com/documents/6791ae7d97616661b011c396/w/b379dc7982120ded569f6f4c/e/3af5b1444179fb65254322c7
-
Splicing sketches and extrusions into 3D objects
As a learning exercise, I'm recreating this object. As you can see, I omitted a few ridges, threads, etc. from the left-hand side. Can I get in there and splice a few sketches and extrudes between existing features? Or do I have to start again? Thanks.
-
Controlling extrusions from sketches / building a 3D solid solely through sketches
So, let's say I've created the following solid by extruding different sketch surfaces to different depths. The various extrusion depths are hidden away as feature settings. This makes them difficult to modify. In a real project, where the proper extrusion depth could depend on other surfaces (rather than blind distances),…
-
Trouble with extrude
I am using extrude instead of opExtrude, but it keeps saying that the EXTRUDE_FAILED. extrude(context, id + "extrude2", { "entities" : qSketchRegion(id + "sketch2"), "oppositeDirection" : true, "endBound" : BoundingType.UP_TO_BODY, "operationType" : NewBodyOperationType.REMOVE, "endBoundEntityBody" : qCreatedBy(id +…
-
Problems with Extruding in FeatureScript
var sketch1 = newSketchOnPlane(context, id + "sketch1", { "sketchPlane" : plane(vector(0, 0, 0) * inch, vector(0, 0, 1)) }); skRectangle(sketch1, "rectangle1", { "firstCorner" : vector(0, 0) * inch, "secondCorner" : vector(1, 2) * inch }); skRectangle(sketch1, "rectangle2", { "firstCorner" : vector(0.1, 0.1) * inch,…
-
Extrude to face & second end option
Hi! Why when I ask to extrude up to a face Onshape does not automatically adapt the direction every time... it seems logical. Sometimes it works perfectly as it should but other times if I select a face I don't want the opposite direction by default. I think the natural direction should correspond to the XYZ system as they…
-
Extrude 'Did not regenerate properly'
Hi there, I am modeling a part around the centerpoint of a circle, and it has been quite painful. I have 'posts' drawn up that need to be the same thickness as the outer ring, but when I try to extrude the sketch I get an error that it did not regenerate properly. The shapes don't seem to be closed now, but when I drew the…
-
opExtrude failing with a query from opMergeContexts
Hi, I have a feature script ("Wren") that import a part studio ("Fin module") and try to extrude it but opExtrude throws an exception with the query form opMergeContexts. The script and the part are here: https://cad.onshape.com/documents/03f4ac3d6bb09fa192294621/w/695b19824c4731f7a79d0f9e/e/753184455e13c8c9c1412d4a
-
I want to split a part so I can 3D print the two halves.
I want to split a part so I can 3D print the two halves. Is this possible, I have tried using the Split tool. Thanks in advance for any help. John
-
Unable to fillet an existing object - Need help
Hi, I am unable to fillet an existing object, it always throws up errors and ive tried everything to get around this such as trying to draw arcs with lines so i wouldnt have to fillet after i extrude to no avail. Here is my code: var length = 100*millimeter; var depth = 50*millimeter; var width = 500*millimeter; var…
-
To Merge Extrude or not to Merge
Would other users find it useful if "Extrude" type functions were merged? This would give you the option / advantage of toggling between a related but different feature functions without having to suppress / delete and add the other feature as necessary. For example if you chose "Extrude with draft" then at a later stage…
-
how to evaluate extrude direction so it can be used in a transform
Hi folks. Hopefully an easy one this time. I'm creating a body using an extrude from a sketch. Having made it I may wish to transform it in the direction of the previous extrude operation. I can use the qCreatedBy query to grab the body for the entity parameter but am having difficulty evaluating the extrude direction for…
-
Why NO Face?
A simple exercise, [Public: TRIAL-1],...2 cir, conncted w/Lns. Lns processed; Ln-1: Selctd...Cir-1 Selctd...Make TAN. Same procedure on all other ends ... WHY NO FACE?
-
3D splines can't be extruded or lofted
It seems that 3D splines created in FeatureScript can not be extruded or lofted to create solids with them. When drawing closed curves with opFitSpline I can't even select them in the Extrude command. I am doing something wrong?
-
Trying to flatten surface for laser cutting, but holes from one sketch won't project.
I am trying to get two surfaces to project to a plane to get dxf files for laser cutting. On one surface the holes are selectable and project fine, on the other they are not selectable. What is the difference between the two ? The blue area is the surface I want to project to a flat plane. This is as far as I can get. Why…
-
Add holes to a part while it in an assembly.
Is it possible to Add holes or modify a part while it in an assembly?
-
How to add revolves into an extruded cylinder
So I have this cylinder (just a simple extrude with a chamfer on each end. This is a pin going onto a handle, and I want small bulges to keep the pin from falling out of the handle. I cannot figure out how to add a revolved shape (yes I realize I could recreate the entire shape as a revolve, and if that's the only way,…
-
Connect Extrude to Spline Revolve (with a Loft)
Hi, probably a newbie question but I'm stuck and the search did not help either... I have a kind of bowl I created from a spline that I revolved and thinckened afterwards. In this bowl there is a vertical platform that was created by simply drawing a rectangle at the bottom and extruding it. Now, what I really need is the…
-
Extrude not executing cleanly...
I was able to successfully remove the right semicircle using the extrude command but the left is a different story. Any ideas why I can't cleanly remove the left semi-circle using the extrude command?