API Instructions: Oring Mate

O-ring Procreator


Place Oring Mate.swp in a safe folder location. Assign hot key, or icon to execute command within SOLIDWORKS.


This macro has assumptions about how you currently set up your model in order to place multiple mates for o-rings in one go.

  • The top level assembly has an Axis named ‘Axis1’ along the center
  • Your o-rings also have an Axis named ‘Axis1’ that cooresponds to the top level assembly center.
  • Your o-rings have a plane named ‘CENTER’ that defineds the center of the groove location.
  • The Front Plane in the assembly and o-ring are 90 degrees from the center plane of the groove.

You can select as many selections as you want. The macro will take every other selection pair to perform the mating conditions with. Selection 1 is a face from the o-ring, Selection 2 is the bottom face of the groove. Selection 3 is the next o-ring; Selection 4 is the next bottom face of its corresponding groove, and so on.

First it will take and find the adjacent faces to the bottom groove face and apply a symmetric mate between the CENTER plane of the o-ring and these two faces.

Then it will mate the Axis1 from the o-ring to the Axis1 of the top level assembly.

Next it will place a parallel mate between the Front Plane of the top level assembly and the Front Plane of the o-ring.

Lastly, it repeats this process for how many selections you have made.





Usage Agreement

The software/macro/customization is supplied “as is” and all use is at your own risk. GoEngineer disclaims all warranties of any kind, either express or implied, as to the features and functionality. Neither this agreement nor any documentation furnished under it is intended to neither express or imply any warranty that the operation of the software will be error‐free nor cause undesirable results on files that it is ran against. Under no circumstances shall GoEngineer be liable to any user for direct, indirect, incidental, consequential, special, or exemplary damages, arising from or relating to this agreement, the software, or users use or misuse of the software or any other services provided by GoEngineer. Such limitation of liability shall apply whether the damages arise from the use or misuse of the software or any other services supplied by GoEngineer (including such damages incurred by third parties), or errors of the software. Use of the software/macro/customization constitutes acceptance to this agreement.

Additional Resources

Take Advantage of GoEngineer’s Extensive Knowledge Base and Resources

GoEngineer Knowledge Base and website search

Find a Solution

Our robust Knowledge Base contains over 12,000 resources to help answer your product design questions. From basic CAD questions to in-depth guides and tutorials, find your solution here. Find a Solution

Get Certified Professional SOLIDWORKS Training at GoEngineer


Improve your skills with professional training and certifications in SOLIDWORKS, CAM, 3D Printing, and 3D Scanning offered four ways: self-paced, online, on-site, or in-classroom. Certified Training Courses

GoEngineer blog page


#1 Technical Resource Worldwide - Right at your fingertips. Search or browse through hundreds of SOLIDWORKS tips & tricks, additive manufacturing product developments, announcements, how-to guides, and tutorials. Blog

GoEngineer YouTube Channel

YouTube Channel

Our YouTube channel hosts hundreds of educational tutorials, product demonstrations, recorded webinars, and best practices for all of our products and services. GoEngineer's YouTube Channel

Order 3D printing materials and consumables from GoEngineer


Order 3D printing materials and consumables, enroll in SOLIDWORKS training classes, and buy official GoEngineer gear directly from our online store. Online Store

Free SOLIDWORKS tools offered from GoEngineer


Enjoy this collection of small ‘macros’ that were tailored to help our customers. These free SOLIDWORKS tools are for you to use, review, and modify. SOLIDWORKS Automation Tools

Webinars offered by GoEngineer


Our engineering webinars are hosted by some of the top experts in the industry. They are always recorded, always free, and always offer a live Q&A. WEBINARS

3D design and part printing services available at GoEngineer

3D Printing Services

Need to 3D print a part? Our Additive Manufacturing experts will 3D print your part and deliver it to you using the latest technology on one of our professional FDM, PolyJet, SL, or Metal 3D printers. 3D Printing Services