-
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…
-
How to make extrude solid not surfaces?
Hi, what I need help with is I have performed an opExtrude() function and then used qCapEntity() to get the end face. I then have another opExtrude() to extrude the whole face another 3mm. However, the resulting geometry is a surface not a solid and I don't know why. Also if this wont work, how could I use the offset face…
-
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
-
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:
-
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…
-
Create sketch in middle of part
Hi all. I have a script where the user selects a face, then using qConvexConnectedFaces twice to select the ends. I have then found the midpoint of each of those faces and used them to find the midpoint of the part. What I need to do is create a plane at that point parallel to the end faces and then create a sketch. How…
-
Get distance between midpoint of face and edge
Hi there. How would I get the distance between the midpoint of a selected face and an adjacent edge?