-
Dimension an angle at drawing mode without a horizontal line as reference
How to dimension an angle in drawing mode without a horizontal line as reference? Imagine if I have an inclined line only (not a second line). At SolidWorks, I click the line and click at the end point of this line and click at one of 4 options of arrows (2 horizontals and 2 verticals) as reference to insert an angle. Can…
-
Drawing line colors to match model appearance
Is there a way to make the drawing line colors to match the appearance colors in the part/assembly? In drawings with lots of details it would be nice to change the colors to differentiate the parts/features. I can change certain aspects of the view colors such as hidden lines, threads, bend colors in the Drawing Properties…
-
How to create a plane normal to the edge of a curve?
Context: https://cad.onshape.com/documents/934a4c87b18835736d4ebebe/w/35f12551467ef51350f01893/e/619b777af64e0374bdb4d7e6?renderMode=0&uiState=667bfa14002c9558fa44df06 I want to sweep a square along a simple figure. The square is on Plane 2 and initially the smaller half-circle in Sketch 1 was at 180° so I chose a "Point…
-
Pierce constraint on featurescript
Hello I want to use the pierce constraint, on a 3D line and a sketch point, with the following code var newLineId = id + i + 1 + "line_";
opFitSpline(context, newLineId, { "points" : [sphereCenter, endPoint] }); var newPointLoopId = "point_" ~ (i + 1);
skPoint(sketch_loop, newPointLoopId, {"position" : vector(delta , delta…
-
drawing a line with Features Script
Hello I want to draw a sphere and its radius. I wrote this code: annotation { "Feature Type Name" : "drawSphere" }
export const myFeature = defineFeature(function(context is Context, id is Id, definition is map) precondition { // Define the parameters of the feature type annotation { "Name" : "Radius" }…
-
Why debug feature is not displayed ?
Hello, When I use the debug feature on a vector, the data are displayed in the FeatureScript Notice, but the lines are not drawn on the screen.I thought they should appear, right? I use the debug feature to display these lines on the sketch { // 1st line var line1Start = [x1, y1]; var line1End = [x2, y2];…
-
Dividing an edge in featurescript
I want to place a specified number of sketch points on even intervals along an edge in featurescript. I have done the slot tutorial but i need more understanding on these subjects:Determining the length of an edge in featurescript placing an sketchpoint on the edge in featurescript. It would be great i i was able to extend…
-
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…
-
Making the front of a Diamond Play Button
I have a basic shape for a diamond play button, i was just wondering how I would create the raised-ness of the top of the play button... Any ideas? I have the basic lines drawn on a sketch plane, I just do not know how to extrude lines...
-
Sketch Tools Unresponsive
I'm using Onshape in a Safari browser. While editing a sketch, some - but not all - of the tools will become unresponsive. Typically, the tools on the left end of the sketch bar, e.g., rectangle, line, are the ones that are affected. The ones on the right end of the row of icons continue to respond. The only way that I've…
-
Is there a way to draw a zig zag or wavy line in Onshape?
I've searched the web multiple times, but without any luck. It seems other programs that work on vector/math based models (like Illustrator) has tool support for that, as demonstrated in this video: https://youtu.be/z0PD9ifGtHc, but I can't find any equivalent in Onshape.
-
Selecting line before construction line
Is there a way to set Onshape to select a regular line before it selects a construction line that is coincident with the regular line?
-
Joining 2 points across a perpendicular plane
I created 2 semi circles on two parallel planes that are offset from eachother. I then created another plane across the flat sides of the Semi circles and im trying to sketch 2 lines from the outer points of the semi circles down that perpendicular plane. but the tool wont snap to the outer points, it will only snap to the…