Craig,
Please watch this video, which demonstrates the use of iMates with varying Offset values and the ALT-Drag assembly technique.
https://autode.sk/2BGKqCH
( I have attached the files used in the video. 2019 format)
The 'AddByTwoiMates' function supports non-zero values and mixed units that evaluate to the same value.
Why does the function require the values to match? Inventor doesn't, as shown in the video above.
In my opinion, 'AddByTwoiMates' has a bug. It should support unmatched Offset values just like Inventor does.
Do you use fasteners from custom Content Center Libraries? What methods do you use to assemble these?
It is puzzling why the developers of the libraries chose the different edges for the 'Insert In1' iMate edge. This requires using different code when automating ANSI or ISO hardware.
As I continue to develop my programming knowledge and skills, I could really benefit from the experience of others in managing fasteners in assemblies.
I look forward to your reply.
Respectfully,
Jerry
-----------------------------------------------------------------------------------------
CAD Administrator
Using AutoCAD & Inventor 2025
Autodesk Certified Instructor
Autodesk Inventor 2020 Certified Professional
Autodesk AutoCAD 2017 Certified Professional