<?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: How to record constraits from one assembly and use them in another in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-record-constraits-from-one-assembly-and-use-them-in/m-p/11212832#M36299</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12498327"&gt;@jaka73LU2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can accomplish what you are wanting to do with iLogic.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;First create the assembly constraints manually.&lt;/LI&gt;
&lt;LI&gt;Then create a new iLogic rule.&lt;/LI&gt;
&lt;LI&gt;Next locate the secondary part in the Model tree in the Ruler Editor&lt;/LI&gt;
&lt;LI&gt;Right click on main part and choose Capture Current State (Components Constraints.Add)&lt;/LI&gt;
&lt;LI&gt;Observe the code created for you:
&lt;UL&gt;
&lt;LI&gt;this code adds the component to the assembly&lt;/LI&gt;
&lt;LI&gt;this code re-creates all the constraints found on that part.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you can use this code in a rule in another assembly configuration that contains only the primary component, as long as:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The component names match&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;The geometry of the components is the same.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;In my example image, Part1 is the primary component and Part2 is a secondary component.&amp;nbsp;&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" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Curtis_Waguespack_0-1654263873014.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1075770iD1CF107CA8FBD705/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Curtis_Waguespack_0-1654263873014.png" alt="Curtis_Waguespack_0-1654263873014.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 03 Jun 2022 13:44:39 GMT</pubDate>
    <dc:creator>Curtis_W</dc:creator>
    <dc:date>2022-06-03T13:44:39Z</dc:date>
    <item>
      <title>How to record constraits from one assembly and use them in another</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-record-constraits-from-one-assembly-and-use-them-in/m-p/11212675#M36298</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to build modular assemblys. I have an idea of how to do it, but I don't even know if it is possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a standard part that is always present in final assembly and i have optional parts that get in assembly sometimes. I would like to have a program that would open up optional parts and automaticly make constraits with the standard part.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Somehow I was thinking the program would remember specific faces and assosiated constraints and would link up automaticly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Normaly if you link two parts with each other in one assembly this link does not carry over to a new assembly if you import those same parts individualy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to make inventor remember this links from one assembly and carry them over to another assembly. This link data would probably have to be written in a external file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could some one tell me if this is posible and if soo, point me in the right direction.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 12:37:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-record-constraits-from-one-assembly-and-use-them-in/m-p/11212675#M36298</guid>
      <dc:creator>jaka73LU2</dc:creator>
      <dc:date>2022-06-03T12:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to record constraits from one assembly and use them in another</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-record-constraits-from-one-assembly-and-use-them-in/m-p/11212832#M36299</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12498327"&gt;@jaka73LU2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Welcome to the forum.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think you can accomplish what you are wanting to do with iLogic.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;First create the assembly constraints manually.&lt;/LI&gt;
&lt;LI&gt;Then create a new iLogic rule.&lt;/LI&gt;
&lt;LI&gt;Next locate the secondary part in the Model tree in the Ruler Editor&lt;/LI&gt;
&lt;LI&gt;Right click on main part and choose Capture Current State (Components Constraints.Add)&lt;/LI&gt;
&lt;LI&gt;Observe the code created for you:
&lt;UL&gt;
&lt;LI&gt;this code adds the component to the assembly&lt;/LI&gt;
&lt;LI&gt;this code re-creates all the constraints found on that part.&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you can use this code in a rule in another assembly configuration that contains only the primary component, as long as:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The component names match&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;The geometry of the components is the same.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;In my example image, Part1 is the primary component and Part2 is a secondary component.&amp;nbsp;&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" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Curtis_Waguespack_0-1654263873014.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1075770iD1CF107CA8FBD705/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Curtis_Waguespack_0-1654263873014.png" alt="Curtis_Waguespack_0-1654263873014.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 13:44:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-record-constraits-from-one-assembly-and-use-them-in/m-p/11212832#M36299</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2022-06-03T13:44:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to record constraits from one assembly and use them in another</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-record-constraits-from-one-assembly-and-use-them-in/m-p/11213224#M36300</link>
      <description>&lt;P&gt;Tanks for fast reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would this work also in an Addin?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to automate this proces accros multiple computers and like I said, I would need to read files outside of inventor.&lt;/P&gt;&lt;P&gt;So is this possible with the inventor API in VB.net?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be realy &lt;SPAN&gt;convenient if there was a an API method that would do that.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 15:56:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-record-constraits-from-one-assembly-and-use-them-in/m-p/11213224#M36300</guid>
      <dc:creator>jaka73LU2</dc:creator>
      <dc:date>2022-06-03T15:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to record constraits from one assembly and use them in another</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-record-constraits-from-one-assembly-and-use-them-in/m-p/11213532#M36301</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12498327"&gt;@jaka73LU2&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No unfortunately the previous information only pertains to iLogic. I'm not aware of a n API method or any API example to extract the constraint information from the assembly in the same way, but I suppose it could be written.&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" rel="noopener"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 18:28:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-record-constraits-from-one-assembly-and-use-them-in/m-p/11213532#M36301</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2022-06-03T18:28:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to record constraits from one assembly and use them in another</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-record-constraits-from-one-assembly-and-use-them-in/m-p/11213600#M36302</link>
      <description>&lt;P&gt;Ok, so my question would be, is it possible to do this same thing, with the API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would assume I would be something like getting the constraints of top level objects and record there constraint faces?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you point me in the right dirrection?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jun 2022 18:58:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-record-constraits-from-one-assembly-and-use-them-in/m-p/11213600#M36302</guid>
      <dc:creator>jaka73LU2</dc:creator>
      <dc:date>2022-06-03T18:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to record constraits from one assembly and use them in another</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-record-constraits-from-one-assembly-and-use-them-in/m-p/11216448#M36303</link>
      <description>&lt;P&gt;I am able to find the constraints of a component in the assembly throu&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oAsmDef As AssemblyComponentDefinition = g_assemblyDoc.ComponentDefinition&lt;BR /&gt;Dim oConstrs As AssemblyConstraints = oAsmDef.Constraints&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dim oConstraints As AssemblyConstraints = oAsmDef.Constraints&lt;BR /&gt;Dim oConstraint As AssemblyConstraint = oConstraints.Item(1).Name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I cant get the assosiated faces that define where the constraint holds two piaces.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2022 06:41:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-record-constraits-from-one-assembly-and-use-them-in/m-p/11216448#M36303</guid>
      <dc:creator>jaka73LU2</dc:creator>
      <dc:date>2022-06-06T06:41:12Z</dc:date>
    </item>
  </channel>
</rss>

