-
Sorry for the beginner's question, but I need to mix length units and I do not know how...
i.e. I would like to say const VNSpindleBearingOD is string = "SpindleBearingOD"; const SpindleBearingOD is number = 3.15; // this value is in inch const VNSpindleBearingOD is string = "SpindleBearingID"; const SpindleBearingID is number = 80; // This value is in mm verifyVariableName (VNSpindleBearingOD);…
-
Dimension lines in 2D.
Is it possible to place (automatically) multiple dimension lines at a fixed spacing from the piece and each other or do I have to just "wing it"?
-
How to mirror a part using a plane?
I tried calling mirror, but there was no option to select entities or a mirror plane. Which function do I have to call to do this?
-
Use a variable in a boundSpec
Hell again, how could I use a variable as the maximum value for a lengthBoundSpec? Thanks Lee Hesketh
-
Get all faces of a part
Hi, how could I get all the faces of a body? I have got the body I need, I just need to iterate through the faces to find the smallest area and use that in a distance calculation. The body is a simple cuboid. Thanks Lee Hesketh
-
Query for specefic edges that are looped around faces?
Hello, still having difficulty with featurescript! I am trying to query these edges from a loop of faces: I have already got the faces, but when I use qEdgeAdjacent(), it selects the end edges as well. I don't need these as I am hoping to use the edges as arguments for a fillet operation. How could I query this? I have…
-
A one-shot script that populates a feature tree
Hi Everybody! I had already touched upon this subject but there was no way to implement it. Let me remind as discussion was carried out: Is there any way to write a script that could call features in the particular order(i.e. by scenario)? I know that I can just create another feature and call all functions (custom…
-
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
-
Use a vertex in skRectangle()
Hi, how could I use a vertex's coordinates as the "firstCorner" coordinates for an skRectangle() function? Am I right by thinking that it must be a 2d vector and I could get it since I am using evVertexPoint, I could use vertexPoint[0] etc., but that only works if the part is in the correct orientation? Thanks Lee Hesketh
-
skRectangle error when part's rotated
Hi there. I have a script that generates mortice and tenon joinery however I have some problems. It works fine if the parts face that the tenon protrudes from is aligned with the x axis. The problem is when it aligns with the y axis. How I have got it to work so far is the user selects two adjacent faces and then the…
-
Get face that shares a vertex
Hello, I need a piece of code that gets a face that contains a specific vertex. I already have the vertex specified, I just need the face such that the vertex makes one of its corners. Any Ideas? Thanks Lee Hesketh
-
Select adjacent ends given two faces
Hi everyone. I need to query for the ends of a rectangle given the user selects two adjacent faces. How could I do this? Thanks Lee Hesketh
-
HOW TO MAKE PARTS "PUSH" EACH OTHER?
So for a school project, I have to make a geneva drive. For those of you who don't know what a Geneva drive is, this link demonstrates it pretty well: http://benbrandt22.github.io/genevaGen/ My drive has 4 positions, an a drive crank radius of 2, a b drive crank radius of 2, a pin diameter of .5 and an allowed clearance of…
-
Creating a super elipses featurescript
Super elipses for reference: http://demonstrations.wolfram.com/VisualizingSuperellipses/ I'm trying to create a superelipses featurescript, but am having some trouble getting the shape to behave the way I want. The two solutions I can think of are to 1) make geometry and then constrain it (so that the corner fillets are…
-
Section View command missing?
I've tried multiple browsers on multiple computers with multiple drawings. I've watched the tutorial, I've searched, I've read... I give up. I'm asking. Why do I not see the Section View command when right-clicking the little cube? It's just not there, ever. In parts view, I select a plane... right-click the little cube...…
-
How do you define and make non-circular holes?
Is it possible to define a custom hole shape (i.e. non-round, non-cylindrical) to make a hole in a solid?
-
How to navigate within a drawing.
I'm new to Onshape, but also new to CAD, altogether. I have a few questions about Drawings. Generally, it seems like the functionality of the Drawings work space isn't as robust as that of the Part Studio work space: 1. Is there a tutorial that defines the different templates (ANSI, ISO, etc)? I have no idea which one to…
-
How do you make slots in a cylinder?
I'm planning on making a rook (chess piece), but I don't know how to go about it.
-
I'm new to CAD. What workflow should I use to create this roof jack?
I need to create a part similar to the image. What would that workflow look like? I'm very new to CAD. I've done most of the tutorials on here, but I think I may need a loft. Any pointers would be a big help.
-
Applying draft to a circular disk / rib?
Probably easy, but trying to figure it out - I'd like to apply a draft angle to the disks in the attached screenshot - what do you use as the neutral plane in this case? or how do you create one? Ideally I would use the base of where they hit the main shaft as the start and apply the taper radially. My "hard way" solution…