Welcome to the Onshape forum! Ask questions and join in the discussions about everything Onshape.
First time visiting? Here are some places to start:- Looking for a certain topic? Check out the categories filter or use Search (upper right).
- Need support? Ask a question to our Community Support category.
- Please submit support tickets for bugs but you can request improvements in the Product Feedback category.
- Be respectful, on topic and if you see a problem, Flag it.
If you would like to contact our Community Manager personally, feel free to send a private message or an email.
Best Of
Re: Can I use API to add multiple parts in an assembly?
Hi Timo,
Yes, this is certainly possible. An example program for the latest experimental python client can be found here: https://github.com/onshape-public/onshape-clients/blob/polymorphic_python/python/test/test_assemblies_api.py#L28 . This test replicates an assembly programmatically through the API. You wouldn't actually do this in practice, but it is an informative and useful test. Please let me know if you have additional questions. Note that you can find definitions of each of the fixtures (function params in the test function) from the conftest.py file.
Cheers,
-Ethan
Yes, this is certainly possible. An example program for the latest experimental python client can be found here: https://github.com/onshape-public/onshape-clients/blob/polymorphic_python/python/test/test_assemblies_api.py#L28 . This test replicates an assembly programmatically through the API. You wouldn't actually do this in practice, but it is an informative and useful test. Please let me know if you have additional questions. Note that you can find definitions of each of the fixtures (function params in the test function) from the conftest.py file.
Cheers,
-Ethan
Ethan_K
5
Re: Efficiently set mate connectors
You don't have to put the cursor directly over the vertex to snap the mate connector – try zooming in a bit to make the selection area larger.
Re: View small part larger
@david_mach581
If you change the size of the planes by dragging their corners (as shown above) or just hide the planes, the part will stay larger when you use the auto-rotation funtions on the view cube. Those functions just zoom to fit everything in the view, so if you make the planes smaller, it can zoom in closer.
If you change the size of the planes by dragging their corners (as shown above) or just hide the planes, the part will stay larger when you use the auto-rotation funtions on the view cube. Those functions just zoom to fit everything in the view, so if you make the planes smaller, it can zoom in closer.
F2 for rename
Please make the F2 button invoke Rename ... this is so universal, and it's driving me nuts I have to rt-clk or remember Shift+n.
Re: Circular pattern features not moving with original
That is pretty strange. But weirdness like that is why I usually suggest using part patterns instead of feature patterns. They both have their place, but for geometry that does not vary with each instance, part and face patterns are preferred. They rebuild faster and are generally easier to deal with. But I did get your pattern to work (see below). Looks like your clip_holder_drum and clip_hole_1.2mm sketches were not fully constrained.
https://cad.onshape.com/documents/8428ea7cd2e14b2670d5421a/w/e5b17404983b485ca64f1002/e/02558eeb5239cba3fe743fd6
https://cad.onshape.com/documents/8428ea7cd2e14b2670d5421a/w/e5b17404983b485ca64f1002/e/02558eeb5239cba3fe743fd6
mahir
5
Re: coincident vs. pierce
You need them to be separate functions. There are times where both will actually constrain.
Pierce will actually touch the line/curve where it intersects the sketch plane.
Coincident will project the constrained point along the entire line/curve as if it were projected onto your sketch as a vertical line (in the example I have shown)
https://www.youtube.com/watch?v=YbN9Oilv1AU
Pierce will actually touch the line/curve where it intersects the sketch plane.
Coincident will project the constrained point along the entire line/curve as if it were projected onto your sketch as a vertical line (in the example I have shown)
https://www.youtube.com/watch?v=YbN9Oilv1AU
Re: Select items to insert
Correct.rune_thorsen229 said:I have to manually go back to the assembly and insert it manually.
Re: copy mate features possible?
No, you can't edit a suppressed feature/mate because you wouldn't be able to preview your edits.
I never noticed the copy option in the mates menu so had to try it out. Seems it is a reorder function - select mate(s) then copy, then right-click somewhere in mates list in the same assembly and "move copied mates here". I think it is a throwback from before we were able to drag and drop reorder mates. Should go really.
I never noticed the copy option in the mates menu so had to try it out. Seems it is a reorder function - select mate(s) then copy, then right-click somewhere in mates list in the same assembly and "move copied mates here". I think it is a throwback from before we were able to drag and drop reorder mates. Should go really.
Re: Select items to insert
I removed it until I had chance to check something.
It works fine if the sketch has a "face" (i.e. it is an enclosed shape and is shaded) or you are using a face off the in-context assembly as the sketch plane. Looks like a bug - thanks for finding it.
It works fine if the sketch has a "face" (i.e. it is an enclosed shape and is shaded) or you are using a face off the in-context assembly as the sketch plane. Looks like a bug - thanks for finding it.
Re: Best modelling workflow for multi-part
Everything that is static (ie. no motion, they can be parametric) can be easily modeled into single part studio. Parts with motion I tend to have as subassembly so I can set limits etc. only once and just insert to any assy. When inserting whole part studio into assembly all static parts can be mated with one group mate which is a real time saver comparing to 3 mates per part system (Alibre).
3dcad
7