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.
New Feature: Multi-Mirror
EvanReese
Member, Mentor Posts: 2,096 ✭✭✭✭✭
I often work with symmetrical designs in multi-part studios, and many times I have a number of parts to mirror across multiple planes. With the standard mirror feature, I have to use a new feature for each part x the number of planes to mirror about. That means if I have 3 parts to mirror about the top, right, and front planes, I'll need 9 mirror features. This feature can do it all in one go either using the world planes, or the 3 directions of a mate connector. Hopefully, someone else finds it useful too. You can find the feature here. I'm open to improvement suggestions if someone imagines a tweak that would open up a better workflow. note: this isn't meant to replace the standard mirror, since it only handles bodies and is a lot less flexible in certain ways, but it definitely solves a pain-point I've had since the Solidworks days.
Evan Reese
Tagged:
16
Comments
Onshape, Inc.
HWM-Water Ltd
Very useful feature! It would be nice to work on surfaces also if possible.
Thanks Evan!
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! cadsharp.com/featurescripts 💎
This is one of my personal favorites. It cuts down so much repetitive work for certain designs. Shoutout to @MBartlett21 who helped me refactor the code to be much more concise.
Learn more about the Gospel of Christ ( Here )
CADSharp - We make custom features and integrated Onshape apps! cadsharp.com/featurescripts 💎
This seems very useful to me, as it saves a delete parts step.
Also, a key extra for me would be a "select all" option for the bodies to mirror.
This need also links into the need for the "new" or "self" tab. I'll explain :
I often need a handed version in a configuration. Furthermore, its common for me to use a pattern feature. This means the number of bodies changes between configurations. Currently I have to create the highest pattern number I think I might ever need,
- mirror it all
- delete the original
The problem here is if the number of bodies ever changes. If there are multiple part patterns controlled by multiple configurations, then I need to make all the possible parts across all the configurations and do the mirror at the end with the max number of bodies. Its not perfect
All this would be removed with the "new" or "self" tab, which I think removes the need for the delete step, and a select all bodies tick box. It would then simply grab everything in the parts studio, and hand it.
Even better would be a reset origin (essentially a transform of all the bodies selected) to re position the mirrored version to have the same insertion point as the non handed original version.
Is there a featurescript version with the "new"/"self" tab floating about?
Thanks
Rob
I ended up developing it without the options, since the main use-case for me is always to merge things, and you can use the standard Mirror feature for everything else. If you want to, you could search through the previous versions in the version graph, and add an older version where it has that. I don't remember whether it ever worked or not. I don't plan on updating this one anytime soon.
For your use case, it sounds like you might want to copy the code from the standard mirror feature and just modify it to automate your selections and delete stuff. Would that work?
https://www.youtube.com/watch?v=Zf6cgg0X5F8&list=PLv8HciXoFYX-VGc-zqYQNLaWl8PuwIelI&index=211
https://www.youtube.com/watch?v=rGEEvNZhesg&list=PLv8HciXoFYX-VGc-zqYQNLaWl8PuwIelI&index=23
In addition to quickly choosing and/or translating the plane to mirror around (either using the manipulator or keyboard shortcuts), it has options for cutting the part first (enabled by default) and for performing a boolean union after the mirror operation. It doesn't have options to mirror more than one axis at a time.
That said, there are occasions in Onshape (or other history based tools) when I start by modeling something across the mirror plane to guarantee that it will be continuous. Cutting that in half could be useful. In the model that's in my screenshot, I started by building the top surface in one piece and then added side, front, bottom and rear surfaces. I would likely do the same thing in Onshape, although I might have mirrored the side surfaces before joining them to the main body.
Wish I had known about it earlier...
I also haven't done any FS that deal with sheet metal but there seems to be some "weirdness" around it.
I have one of these "maybe someday" backlog list too!
Had a quick glance at your code and right of the bat it seems like it relies on "boolean" union, which is not supported for active sheet metal so that's probably where the issue is. It would probably require a different approach so likely not trivial to fix...
Kudos's for this feature. I use it by default iso the native mirror feature.
glad to hear it! The native tool is still better for some things for sure, but I do tend to reach for this one first.