<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Imate constraint with Ilogic in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/8909270#M379352</link>
    <description>&lt;P&gt;Hi Curtis,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry to add to an already solved thread.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if item A has a composite imate and it could be places on item B on 6 different locations (6 imate composites defined on item B as well. Is there way then when we place item A in assembly it asks for which solution to make out of 6 on item B.&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry again - here is link to my separate thread where I have requested for this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-to-choose/m-p/8903303/highlight/true#M99449" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/ilogic-to-choose/m-p/8903303/highlight/true#M99449&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sajid&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 15 Jul 2019 11:34:35 GMT</pubDate>
    <dc:creator>sam</dc:creator>
    <dc:date>2019-07-15T11:34:35Z</dc:date>
    <item>
      <title>Imate constraint with Ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/5593535#M379349</link>
      <description>&lt;P&gt;I placed several bearings from Content Center and I want to place them on shafts with Insert constraint. I have the following rule that works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAssyDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;AssemblyDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oAssyDoc&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
 
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOcc1&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOcc2&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;bearing_name&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;Parameter&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;category4&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;+&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;:1&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;
&lt;SPAN&gt;oOcc1&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Component&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;InventorComponent&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;bearing_name&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;SPAN&gt;oOcc2&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;Component&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;InventorComponent&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"shaft&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPartDef1&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;oPartDef1&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oOcc1&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Definition&lt;/SPAN&gt;
 
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPartDef2&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;oPartDef2&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oOcc2&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Definition&lt;/SPAN&gt;
 
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;iMate1&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;iMateDefinition&lt;/SPAN&gt;
&lt;SPAN&g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lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;The problem is on this line&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;iMate1&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oPartDef1&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;iMateDefinitions&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Item&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;No2 reprezent the index number of the iMate constraint of the bearing from CC. (one of the insert constraints)&lt;/P&gt;&lt;P&gt;But sometimes the index number is different, 1 to 5.&lt;/P&gt;&lt;P&gt;I want to be able to define iMate1 as the name of the constraint "Insert In1" and not the index number. Somthing like this&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;iMate1&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oPartDef1&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;iMateDefinitions&lt;/SPAN&gt;&lt;SPAN&gt;.name&lt;/SPAN&gt;&lt;SPAN&gt;("Insert In1"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;but is not working&lt;/P&gt;</description>
      <pubDate>Wed, 15 Apr 2015 17:07:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/5593535#M379349</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-15T17:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Imate constraint with Ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/5594856#M379350</link>
      <description>&lt;P&gt;I'm still stuck on this stage. Could someone give me an answer?&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 12:28:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/5594856#M379350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-04-16T12:28:17Z</dc:date>
    </item>
    <item>
      <title>Re: Imate constraint with Ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/5595614#M379351</link>
      <description>&lt;P&gt;Hi marcu.bogdan,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I understand correctly, you're wanting to use existing iMates to mate components in your assembly. Here is a quick example that uses &lt;STRONG&gt;AddByTwoiMate&lt;/STRONG&gt; method.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've attached a simple example file set as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also just as a tip, you can search and ask programming questions of this type on the Inventor Customization forum too:&lt;BR /&gt;&lt;A href="http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120" target="_blank"&gt;http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oAsmCompDef As AssemblyComponentDefinition
oAsmCompDef = ThisApplication.ActiveDocument.ComponentDefinition
 
Dim oOcc1 As ComponentOccurrence
Dim oOcc2 As ComponentOccurrence
oOcc1 = oAsmCompDef.Occurrences.ItemByName("Shaft101:1")
oOcc2 = oAsmCompDef.Occurrences.ItemByName("ISO 1224 (I) (Inch) 0.375 x 0.625 x 0.1562:1")

i = 1
For each  iMateDefinition in oOcc1.iMateDefinitions
	If iMateDefinition.Name= "Insert100" Then
		iMate1 = oOcc1.iMateDefinitions.Item(i)
		Exit For
	End If
	i = i+1
Next

i = 1
For each  iMateDefinition in oOcc2.iMateDefinitions
	If iMateDefinition.Name= "Insert In1" Then
		iMate2 = oOcc2.iMateDefinitions.Item(i)
		Exit For
	End If
	i = i+1
Next

' Create an iMate result between two iMates
Dim oiMateResult As iMateResult
oiMateResult = oAsmCompDef.iMateResults.AddByTwoiMates(iMate1, iMate2)



&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2015 18:17:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/5595614#M379351</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2015-04-16T18:17:13Z</dc:date>
    </item>
    <item>
      <title>Re: Imate constraint with Ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/8909270#M379352</link>
      <description>&lt;P&gt;Hi Curtis,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry to add to an already solved thread.&amp;nbsp;&lt;/P&gt;&lt;P&gt;if item A has a composite imate and it could be places on item B on 6 different locations (6 imate composites defined on item B as well. Is there way then when we place item A in assembly it asks for which solution to make out of 6 on item B.&amp;nbsp;&lt;/P&gt;&lt;P&gt;sorry again - here is link to my separate thread where I have requested for this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-to-choose/m-p/8903303/highlight/true#M99449" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/ilogic-to-choose/m-p/8903303/highlight/true#M99449&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sajid&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jul 2019 11:34:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/8909270#M379352</guid>
      <dc:creator>sam</dc:creator>
      <dc:date>2019-07-15T11:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: Imate constraint with Ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9106589#M379353</link>
      <description>&lt;P&gt;Would someone please confirm that '&lt;SPAN&gt;AddByTwoiMates' does not support iMates with non-matching Offset values?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Perhaps Chandra&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4427777"&gt;@chandra.shekar.g&lt;/a&gt;&amp;nbsp;or Mike&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534"&gt;@MjDeck&lt;/a&gt;&amp;nbsp; from Autodesk?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tested the assembly and iLogic above. It works correctly in its original form.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the shaft part, I edited the iMate named, "Insert100". I changed the Offset value from &lt;EM&gt;0.0 in&lt;/EM&gt; to &lt;EM&gt;1.0 in&lt;/EM&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When I ran the rule, an error resulted: "The parameter is incorrect."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I edited the bearing's iMate named "Insert In1". It had a value of &lt;EM&gt;0 &lt;STRONG&gt;mm&lt;/STRONG&gt;&lt;/EM&gt;. I changed it to &lt;EM&gt;1.0 in&lt;/EM&gt;. (Matching values)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The rule ran successfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Undo to restore part positions.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the shaft part, I set an Offset = &lt;EM&gt;1.0 in&lt;/EM&gt;. In the bearing I set an Offset = &lt;EM&gt;25.4 mm&lt;/EM&gt;. The rule ran successfully.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I restored the bearing's iMate value to &lt;EM&gt;0 mm&lt;/EM&gt; and got an error: "&lt;/SPAN&gt;&lt;SPAN&gt;iMate Result failed to compute due to value mismatch."&amp;nbsp;I only got that error to happen one time after multiple Offset value edits.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I conclude the problem is that 'AddByTwoImates' must have matching Offset values. This is very inconvenient.&lt;/P&gt;&lt;P&gt;When manually constraining using iMates with different Offset values, the Offset value used is based on which part you select first. Use ALT-Drag to test this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This would indicate that Content Center parts that use equations in their Offset value cannot be used with&amp;nbsp;'AddByTwoiMates' if there is a chance their Offset values will not evaluate to match.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example, place from Content Center a &lt;EM&gt;Hex Cap Screw - Inch 1/2-13 - 2 UNC&lt;/EM&gt; or an &lt;EM&gt;ISO 4017 M12 x 50&lt;/EM&gt;. Each contain an iMate named 'Insert In1'. However, the ANSI part uses a formula in the Offset value, &lt;EM&gt;-( NLG + SD ) + GUL&lt;/EM&gt;,&amp;nbsp;and the ISO part uses a fixed value,&amp;nbsp;&lt;EM&gt;0.0 mm&lt;/EM&gt;. The ANSI part has its iMate at the end of the threaded bolt away from the head. The ISO bolt has its iMate located under the head. That makes more sense to me.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CC Part Differences 2019-10-24_10-22-44.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/691115i38A8D05A2C9AF969/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CC Part Differences 2019-10-24_10-22-44.png" alt="CC Part Differences 2019-10-24_10-22-44.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you interrogate the iMates within a Part to determine their type, direction, mode, value, etc.? If so, I guess you might be able to assemble ANSI CC parts using some other constraint method. Seems like a lot of extra work. Otherwise, I will have to re-edit the custom CC parts I have made from ANSI to change the existing iMate to that used in ISO CC parts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope someone can find a way to use 'AddByTwoiMates' when Offsets have non-matching values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I look forward to the replies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jerry&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 15:48:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9106589#M379353</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2019-10-24T15:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: Imate constraint with Ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9107328#M379354</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/582192"&gt;@JBerns&lt;/a&gt;&amp;nbsp;, I confirmed that AddByTwoiMates will only work if the offset values are equal. You could log an enhancement request to remove this limitation.&lt;BR /&gt;Yes, you can read the properties of the iMateDefinition (or InsertiMateDefinition in this case) through the API. You should be able to get enough data from that to create a constraint directly on the faces or edges.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2019 21:48:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9107328#M379354</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-10-24T21:48:40Z</dc:date>
    </item>
    <item>
      <title>Re: Imate constraint with Ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9108740#M379355</link>
      <description>&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would consider this a bug, not an enhancement request.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please watch this video that demonstrates how iMates with varying Offset values can be used with the ALT-Drag assembly technique.&lt;/P&gt;&lt;P&gt;&lt;A href="https://autode.sk/2BGKqCH" target="_blank" rel="noopener"&gt;https://autode.sk/2BGKqCH&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Clearly the AddByTwoiMates function supports non-zero values and mixed units that evaluate to the same value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why does the function &lt;U&gt;require&lt;/U&gt; the values to match? Inventor doesn't, as shown in the video above.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Respectfully,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 13:33:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9108740#M379355</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2019-10-25T13:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: Imate constraint with Ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9109073#M379356</link>
      <description>&lt;P&gt;Jerry,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;I agree there does seem to be a defect. The behavior is inconsistent between different workflows. However, the API behavior is as designed. You also get the same behavior if you add a component to an assembly without using the iMates and then use the Constrain command (from the ribbon) to try to put them together. They won't match if the offsets are different.&lt;/P&gt;
&lt;P&gt;Here's a very old &lt;A href="https://forums.autodesk.com/t5/inventor-forum/iv8-imate-with-an-ajustable-offset-how/td-p/1179119" target="_blank" rel="noopener"&gt;forum post&lt;/A&gt; that talks about our original intent for iMate offsets. See message 5 from Scott Kohls. I'll try to find out if anything has changed since then.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 15:49:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9109073#M379356</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-10-25T15:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Imate constraint with Ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9109253#M379357</link>
      <description>&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the quick reply and agreement on the defect issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you clarify your statement, "&lt;SPAN&gt;&lt;EM&gt;You also get the same behavior if you add a component to an assembly without using the iMates and then use the Constrain command (from the ribbon) to try to put them together. They won't match if the offsets are different.&lt;/EM&gt;"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;To my experience, you cannot select an iMate using the Constrain command from the ribbon. Their offset values are not accessed by the Constrain command. Offsets are used during 'Place Component' and yes, the Offset values must match or the iMate will not resolve.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The goal is to automate a drag conveyor which includes the fastening of different components and components that vary in thickness. Using iLogic, how would you assemble ANSI bolts, washers, and nuts obtained from the Content Center?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Drag_Images_2019-10-25_12-08-09.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/691594i9837B1494CF7E722/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Drag_Images_2019-10-25_12-08-09.png" alt="Drag_Images_2019-10-25_12-08-09.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Will it be necessary to edit the ANSI bolts and change the Offset value from a formula to a number (0in)? I had already copied and edited the original ANSI parts to our custom CCL when I discovered this iMate issue. I may have to edit them again. I imagine I never would have had this problem if I had used ISO parts from the CCL.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again for your time and attention. I look forward to any advice you&amp;nbsp;&lt;/SPAN&gt;can offer&lt;SPAN style="font-family: inherit;"&gt;, Mike, as well as the community,&amp;nbsp; &amp;nbsp;regarding fastener automation.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Kind regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Jerry&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 17:18:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9109253#M379357</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2019-10-25T17:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Imate constraint with Ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9109267#M379358</link>
      <description>&lt;P&gt;Jerry,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Let me answer your question about using the Constrain command with iMates first.&amp;nbsp;&lt;BR /&gt;It will work if you select the proper type of constraint. When you start the command, the default is Mate. In this case, you want to select Insert. Then two Insert iMates with the same offset will work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 17:29:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9109267#M379358</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-10-25T17:29:07Z</dc:date>
    </item>
    <item>
      <title>Re: Imate constraint with Ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9109291#M379359</link>
      <description>&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Interesting - in 20 years of using Inventor, I can't recall selecting an iMate with the Constrain command - I have typically used ALT-Drag. Good to know that. Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: inherit;"&gt;Do you think it would be a benefit if Constrain supported varying Offsets? Just use the value from the first selection much like ALT-Drag does. That I'm sure would have to be an enhancement request.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Jerry&lt;/P&gt;</description>
      <pubDate>Fri, 25 Oct 2019 17:36:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9109291#M379359</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2019-10-25T17:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Imate constraint with Ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9115161#M379360</link>
      <description>&lt;P&gt;Jerry,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;It seems like the behavior in Alt-Drag is the same as it is in the API and Constrain command. You can't match two iMates with different offsets. However, you can connect an Insert iMate (with any offset) directly to a circular edge. That's an iMate-to-geometry constraint, not iMate-to-iMate.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;About the related issue: I'm not sure why the ANSI and ISO hex cap screws differ in their iMate offsets. It would be better if they were the same. To work around that, you could have conditional code in a rule that would adjust the iMate offset in the connecting part depending on whether an ANSI or ISO screw was being used.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 16:01:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9115161#M379360</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-10-29T16:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: Imate constraint with Ilogic</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9115588#M379361</link>
      <description>&lt;P&gt;Mike,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply and explanation. I will have to find an alternate method to assemble the fasteners.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jerry&lt;/P&gt;</description>
      <pubDate>Tue, 29 Oct 2019 19:15:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/imate-constraint-with-ilogic/m-p/9115588#M379361</guid>
      <dc:creator>JBerns</dc:creator>
      <dc:date>2019-10-29T19:15:46Z</dc:date>
    </item>
  </channel>
</rss>

