I have a sub assembly that is fully constrained. It is up to date, with no warnings or errors. There is one configuration and one display state.
When I open this subassembly in the parent assembly, the parts are in the wrong position. (The "lock rotation" constraint is applied 180 degrees off.)
I've had this problem off and on since 2018, although the symptoms are sometimes different.
Any ideas on what I'm doing wrong, or how to fix it?
Sub assembly:
Parent assembly:
The parts in question are located with a concentric mate, with lock rotation turned on.
SolidworksModeling And Assemblies
Is the sub-assembly in the "Flexible" mode?
Yes. The work around was to make the sub assembly rigid (which fixed the alignment problem) and then change it back to flexible.
You say the "Lock Rotation" constraint is applied 180 degrees off, what are you referring to??
It looks like the mates could be flipping?
Or..
Do you have more than one configuration??
In my original post I state there is only one configuration.
The two parts each have 2 mates. A surface to surface coincident mate, and a bolt hole to bolt hole concentric mate. It is the top hole on both parts, so if you removed the "lock rotation" and rotated them 180 degrees, you would see what appears in the parent assembly.
My assumption is that the mate is flipped, but there was a time in the process where the parts were in the position shown in the parent assembly. I guess it is possible that somehow the parent assembly is looking at a previous iteration of the sub-assembly, but I'm not sure how that could happen.
Since you brought up mates flipping, do you have any suggestions on how to prevent it? I have two assemblies in which I have to go through all kinds of shenanigans to try stopping it.
There are creative workarounds to keep mates from flipping - could you give us an example, there are different ways to handle - Limit Mates, Angle Mates, Tangent and Distant Mates..
This box is made with an assembly sketch, that the panels are attached to. The pink panels are all the same part, just in different positions. Panel 1 is mated with its face coincident to the edge of that rectangle, it's right plane can either be mated a distance from the corner, or as I prefer it to a point in the assembly sketch.
Originally, I put a point in the assembly sketch and set it at 30" from the corner . Panel 1 then mates it's right plane to that point. Panel 2 is rotated 180 degrees, so I mated it's right plane at 120" which is the length of the panel. If that point moves, sometimes it would flip panel 2. So I added another point at 150" from the corner and mated panel 2's right plane coincident to that. Coincident mates are much more reliable, since it reduces the number of possible "correct" ways it can fit.
I'm asking because this results in a much more complex assembly sketch, with more equations, which all takes longer to make.
First question I would have is; Where is the "Assembly Sketch" located (the one you mentioned), is it in the Assembly Feature Tree or within a part, etc??
Instead of using a Sketch point, draw an L shaped line and mate the Vertical Line to the Vertical Edge and then Mate the Horizontal Line to the Horizontal Edge.. I have been using this type of mates for a few years now, without any issues, sometime if you use points part can flip.
My workflow would be to create a Skeleton Sketch Part (SSP) and insert that part as the first part in the assembly and have all the Design Criteria within that part. I would link the Panel Length dimensions in the SSP to the Component Pattern Feature, that way when you change the panel size the Pattern Distance follows..
The assembly sketch is the first item made in the assembly. I was told in our VAR assemblies class to make this an assembly sketch, not a part. Reason being that info should always flow in one direction, from the assembly down to the parts, or from the parts up to the assembly; if you go up from one part and down to other parts, SW gets confused one which to do first when you make a change.
Ive attached my test assembly. I made it as similar to my real assembly as possible, that's why I have the main assembly sketch, with the sub assembly sketch mated to it, with the parts mated to that sub sketch. These cells in the design table are the size of the assembly
If you really want a headache, take a look at the equations in the sub.
I have the same issues. Just this week I ended up having to use 2 copies of the same part in an assembly because it refused to allow it to be flipped in the two configurations.