I have a top assembly with many subassemblies and thousands of custom made bolts in them.
I need to replace all the bolts with new ones (many instances of the same bolt). I am doing this because we have created a new fastener library and I have to update the assy. with the new components.
So what I did is I named the mating surfaces of the old and the new bolts in the same way using the "Entity Property". I hoped that during the Replace Component operation I wouldn't get errors or need to re-mate my new bolts. It didn't work. The reason is that the original mates were done before I named the surfaces.
Do you know of a way to update the mates in assembly so they refer to the names from the "Entity Property" and not the automatically assigned internal ID?
Thanks in advance for your help.
Marco
SolidworksAssemblies
I had to do this one time, and there was only one way i could get it to work.
I had to go back into the sketch and redraw the part, as the new part... leaving the sketchlines for the respective mating surfaces untouched. (other than length)
Then i renamed the old part, forcing solidworks to ask me where the file was. The selected the new part and since you were"technically" still using the same sketch ID for the mates, voila!
of course, this is a ton of work if you have to redraw several fasteners.
This is the main reason I now use inserted planes and axis for mating instead of surfaces. Makes changing over to new parts, or new revisions alot easier. then you just make a part from a part, tell the reference geometry what its new reference surface is, and the mates will all still work.
the only way I know of is to delete the mates and re-make them - I would ask in the api section if there is some way to do this with a marco.
you know now that i think of it.. can you select all those bolts in the feature tree and select "replace component"
yes, he can. but that does not change the mate issue. I use the replace component command a lot.
wouldnt solidworks ask for the new surface? I have to do that all the time when i change old parts and it always ask what the surfaces to mate off of... if you have 65 identical components, wouldnt it apply across the board?
you would have to select the face for each mate. so if they are patterned you only have to pick once. or if the failing mate is to the same face on the other part (one large plate bolted in a lot of locations). but if they are individually mated, you have to do each.
seems to me that any mate change using a repeated surface, SHOULD automatically populate through every instance of that part in the assy.. if its not built in, we def should get that added.
..then again, i also think we should have access to the internal ID...
James,
This is probably the best thing to do. Unfortunately the new fasteners have slightly different geometry. I can't reuse the sketch from the old part. Good tip though.
Thanks!
Jeremy,
Do this with a marco? I am Marco and still doesn't work . I often get this typo myself.
Cheers
yes, all instances are individual with their own set of mates. after using the replace command all the mates give me an error. I could correct the error by selecting the ref. surface of the new part but with thousands of bolts it will take me forever..........
are you able to share the old and new bolt models? maybe we can find a way to edit the old into the new so your mates will work...
Jeremy, attached are the old bolt AXT-DIN... and the new one M12x45...
Cheers
Marco