-
Help with simple sheet metal needed
So I'm working my way through the sheet metal help, and videos and thought while I did I would post my problem up here. I've not worked with sheet metal models in any cad package and need a simple part which has a bit in the middle bent up. This is the desired shape (sans bends):…
-
Handle Geometry In Exercise 5.2.2 - Creating Mate Connectors Changes CoM
Hey Everyone! I redid this exercise but I am running into the same issue. I'm initially trying to follow the directions verbatim in order to better understand how OnShape works and handles. The issue I am running into is with the way the arm loads the angle of geometry in Slide (Step) 12 eventually translates into an…
-
Thread Pitch w/ ThreadCreator Tool
I'm a little confused regarding how to specify pitch. I'm not very knowledgeable in regards to thread but, I'm trying to make a square thread that has a pitch of 0.2 threads per mm (2 thread every 10mm). How would I achieve this with the thread creator tool?
-
Can someone help a newbie with the shell command please?
Hi everyone, i am new to onshape. I am trying to design a hull of a model sailing boat (for 3d printing) on the basis of an imported STL file. I have created the hull as a solid like this: * Trace 3d splines over the STL (the STL is only half of the hull) * Create a surface by lofting over the 3d splines * Mirror the hull…
-
How do you add a radius curve to a bent wire?
Hi there, I have apart of profiled wire with two 90 deg bends. On the top profile I did a simple sweep that runs from down the y-axis makes a 90deg turn to the left than another turn left to continue down the y-axis I would like the wire to also have a curved radius of 300- 400mm (12-16") the radius curve running along the…
-
Designing An Enclosure - Parts, Part Studios and Assemblies. Oh my!
Hi all, I am new to OnShape and to parametric design in general. I took several drafting classes back in 199<mumbles> and so I am familiar w/ mechanical and architectural drawing. I actually went online and found a bunch of the kinds of drawings we did in class and reproduced them myself. That was fun. Now I am trying to…
-
Using a for loop for multiple operations on multiple parts
Hello, I have a script that makes a new sketch on a selected face, draw a rectangle, extrude and finally a Boolean subtraction. Currently it only works for one face at a time. How could I use a for loop to allow the operations to be done on all selected faces? This is for a mortise and tenon script I'm writing and when I…
-
Centering Derived Parts
How would one go about "centering" a derived part. For example I want this tube "centered" on the origin. Lets say I don't know the translation values, nor the rotation angle. How would I center the tube on the point, and angle it so the tube is perpendicular to one of the planes?
-
Help with assemblies, revolute
I'm trying to get this control arm to rotate in between the mounting points, but all they do is move in unison. Any tips? https://cad.onshape.com/documents/ba146f4fb957ed0abf9e05f6/w/7b5e6e9060483ac5383a7c64/e/57e784605fd8708511b896cc
-
Custom Beam Profile
So after adding the new profile to the code, how do I use the feature in my documents, all that shows up it the original beam feature, the edited one only shows up in the document which I created it in.
-
Is there any video tutorials for building parametric curves with functions with FeatureScript?
Like parametric curves by interpolation and Bezier curves. Im completely new to featurescript and i have been having a hard time learning it from the material disposed by onshape.
-
Issues with bolt and nut
Hello All! I am trying to learn CAD here and lets say its difficult, but none the less I have founds some of the support videos surprisingly helpful. The one issue I can't seem to find a solution to is a way to create a bolt with out the threads being offset by default, or the bolts threads hanging in outer space. I think…
-
Having Trouble getting the Sweep Tool to Work Properly
Hi! I can't seem to get the sweep action to fully connect through my geometry. It seems to be getting stuck on this one last bit Is this because the angle is to tight in the corner of my shape? (see attached images) Please, any insight into solving this would be greatly appreciated. Thx :)
-
Get the pair of faces that are furthest apart
How would I get the pair of faces that belong to a part that are furthest apart? I tried using evDistance and setting it to maximum, but the index was unexpected, it returned one correct face and one that was adjacent to it. What would be the best way of doing this?
-
Is there a way to share multiple documents at the same time?
I would like to share a batch of files publicly with one link. I'm making a batch of hose adapters and want to link to them in a youtube video, but I can only figure out how to generate a link to each one. I could just list them all but it seems like there should be a way to share multiple files at the same time, like…
-
Using Z axis of mate connector error once transformed
Hello, I am working on a feature that imports a part with a mate connector. I am then rotating that part using the mate connectors Z axis. I also have a boolean which if true, it will rotate about the mate connectors X axis first. The error occurs when I then want to rotate about the mate connectors Z axis. I would think…
-
Use FeatureScript to automatically hide itself
Hello all, how could I set my script up such that when executed, it is hidden in the feature tree? Is it simply using the UIHint ALWAYS_HIDDEN in the feature name annotation at the top? Thanks Lee Hesketh
-
Error when calling opSplitPart, CANNOT_RESOLVE_ENTITIES
Hello all, yet again I have another error, but in a different script this time. I am creating a script that splits a part into laminations, for use when creating counter tops out of many boards for example. I am using a for loop with the variable i to do this. The user selects the face which they want the board length to…
-
What is the best way to offset vectors depending if they're positive or negative?
Hello all, I have come across a peculiar error in my code. I am using a vertex as a reference point for the first corner of an skRectangle(). I am using worldToPlane() to achieve this. I am then adding a vector which is offsetting the first corner in relation to the vertex. It looks like this: skRectangle(sketch1,…
-
Vectors different depending on which plane used to create part
@ilya_baran Since you are familiar with my script, I thought it best if you had a look at this problem I have. Everything works fine except when creating the tenon after specific creation of parts. Basically, depending on which plane I use to create the sketch that is used to make the part that has the tenon, it either…
-
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…
-
3D and 2D points not matching
Hi all, hope you had a good Christmas and Happy New Year! I have encountered a problem yet again with my mortise and tenon script. I used the worldToPlane() function to use as a reference point for skRectangle(). I debugged the 3D point and added vectors to get the correct width between the two points and that works. The…
-
Vector coordinates help
Hello all. My mortise and tenon script is still a WIP and I have ran into yet another problem. I am using the corner of a rectangle as the reference point for an skRectangle() function. Suppose the coordinates of the corner are (-50, 50)*mm in the x-z plane, and I want to put a point that is 10mm across and 5mm down, I…
-
Simplify custom script...possible?
A colleague has created a FS to apply custom cut outs but when I use it I have to pick about 8 references. This is a bit tedious, I wonder if the script could be simplified to pick only 2 or 3 references. I can share the code with someone interested in helping out but you can understand that I can't make it public.
-
Use opBoolean() on all parts that contain a point
Hi how would I use opBoolean() to remove material from all parts that are touching a part? I have currently used qContainsPoint, with qEverything() as the subquery, then using qSubtraction() to filter out the part itself. This works in finding the correct parts, but when I use the variable I have assigned to these parts in…