×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Mate Reference Functionality & Macros

Mate Reference Functionality & Macros

Mate Reference Functionality & Macros

(OP)
I am interested constructing an assembly automation Macro utilizing mate references.  Since parts can have multiple mate references, this could be a very powerful feature.

When you use a mate reference in the traditional manner, and you add a part to an assembly (and and existing part in the assembly, and the new part share a properly configured mate reference pair), you have to manually place the new part close to its mating part.  A vertical dumbell symbol appears.  If you left click when the dumbell is present (ie close enough together)... the parts snap together.  Mates are created automatically.

Is there a way to turn off this limitation, so that as soon as a part is added, it snaps in place?  It seems that this behavior keys off of display behavior, and will thus require macro/API work....  

For instance...if you zoom way in close to your primary mate reference feature on the base part...then import its mating part...the dumbells appear immediately. If you immediately left click the part snaps in place.  

Rather than work around like this...it seems like it would be a lot better if there were a way to have this behavior turned off altogether.  In fact, I am not even interested in seeing the parts mated into place....just show me the finished product.  

This will be my first foray into Macro/API work...so take it easy on me...!

RE: Mate Reference Functionality & Macros

How would the macro know which parts you want mated together? I could see this working for a 2 part assembly, maybe, but beyond that? Also, that "limitation" is a safeguard so that you can be assured that your parts are mating together correctly. I don't know that I'd ever trust SolidWorks enough to let it always determine how parts are to be mated together. I've had parts try to mate backwards enough to be wary.  

Jeff Mirisola, CSWP
Design Manager/Senior Designer
M9 Defense
My Blog

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources