I am trying to setup mate references for DIN rail and DIN rail mountable components. It will snap properly only to one side. Suggestion on mate ref locations on the DIN rail? It seems like i have to have refs on both sides.
I am not 100% sure I understand the issue here. I take it you want the mountable component to stay on the rails but be able to move freely on the rails?
If that there is a couple of ways this count be accomplished. The way I'd do this is to use a plane that goes through the center of the mountable feature and use the symmetry mate about the 2 rails to keep the part properly centered. Then I'd use a coincident constraint between the top surface of the rail and the underside of the clamp (or if you want it centered about the rail use symmetry, just assuming it would rest on top surface realistically due to gravity). Finally either leave the final axis undefined or if the rail has a limited track you want it to move on use limit dimension so that it can only move from one end of the track to the other.
I'm trying to setup mate reference (reference geometry) so when i drag and drop components they snap to the DIN rail, but freely slide across the length of it
Can you post the two parts here?
First set up 2 mate planes in the assembly:
A horizontal plane that is coincident with the rail surface.(Call it "Rail Plane")
A vertical plane that is centered between the rails. (Call it "Center Plane")
Then, in each of the mountable components part files, add 2 mate planes:
A horizontal plane that is coincident with the surface that will contact the rail. ("Rail Plane")
A vertical plane that is centered on the part. ("Center Plane")
In the assembly mate these 2 sets of planes.
This allows you to swap out parts and not worry about geometry changes because you are mating planes & not surfaces.
I did as you suggested, but only the rail mate seems to work. attached are the parts
I worked with it for a little while and didn't have any luck with the Mate References. However, the only times I've ever created new Mate References was for edges of custom bolts, so they'd snap to a Coincident and Concentric mate with the corresponding hole, so don't let my lack of success discourage you. Someone else may figure it out.
In the meantime, the best I could come up with was to insert the part, then use the Alt+drag method twice to place coincident mates as shown below, which I believe will accomplish what you want.
Got it! See revised attached parts. Just a matter of trial and error with aligned and anti-aligned. I dont need the planes but the planes in the parts do keep it from laying down during flipping. I'll be keeping them!
Retrieving data ...