<?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: iLogic driven from sub assembly in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-driven-from-sub-assembly/m-p/4320517#M129891</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the title correct?&lt;/P&gt;
&lt;P&gt;As I understand you are actually trying to drive everything from the main assembly - and that should be OK.&lt;/P&gt;
&lt;P&gt;What do you mean by you are trying to drive things FROM the subassembly? - it's not completely clear to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The best might be if you could provide some very basic sample documents that could be used to reproduce things and also the exact steps to follow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
    <pubDate>Fri, 05 Jul 2013 14:44:45 GMT</pubDate>
    <dc:creator>adam.nagy</dc:creator>
    <dc:date>2013-07-05T14:44:45Z</dc:date>
    <item>
      <title>iLogic driven from sub assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-driven-from-sub-assembly/m-p/4315983#M129890</link>
      <description>&lt;P&gt;Hi guys, I'm having a lot of trouble with a bit of code.&lt;/P&gt;&lt;P&gt;I've spent several hours going in circles and now I'm even more confused.&lt;/P&gt;&lt;P&gt;I'd greatly appreciate any help at all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a parent assembly that contains multiple sub assemblies, two of which need to synchornise with each other.&lt;/P&gt;&lt;P&gt;In the parent assembly, I have created a user form that controls the sizes and quantities of all the different sub assemblies.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub assembly 1 contains a bracket for supporting 4 rows of pipes.&lt;/P&gt;&lt;P&gt;Based on the width selected from the main parent assembly, the length of this bracket can vary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The spacing of the 4 mounting positions is also determined from the length of the bracket.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub assembly 2 is an assembly containing all the pipes.&lt;/P&gt;&lt;P&gt;The pipes are spaced apart to suit the bracket using a component pattern, and it is this distance that I want to control from the parent &amp;nbsp;assembly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is just one of the basic scripts I've tried.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pipe_Spacing=Parameter("SubAssembly1:1", "Pipe_Spacing_A")&lt;/P&gt;&lt;P&gt;Parameter("Piping assembly:1", "Pipe_Spacing_B")=Pipe_Spacing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Pipe_Spacing_A is the spacing of the bracket&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Pipe_Spacing_B is the component pattern in the piping assembly&lt;/P&gt;&lt;P&gt;Pipe_Spacing is the parameter in the parent assembly to be driven by the bracket parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have very little iLogic experience &amp;amp; have being learning as I go along with this project.&lt;/P&gt;&lt;P&gt;My best guess is that the code can't loop back on itself but I was hoping someone might know a way around it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On a slightly different note, I have also noticed that the sub assemblies don't update properly.&lt;/P&gt;&lt;P&gt;If I adjust the width to X and regenerate the model, some of the sub assembly updates.&lt;/P&gt;&lt;P&gt;To fully update, I have to go back into the user form, change the size to Y &amp;amp; then change it back again to X and then regenerate. This is really bugging me, but if I have to, I can live with it.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2013 22:12:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-driven-from-sub-assembly/m-p/4315983#M129890</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-07-01T22:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic driven from sub assembly</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-driven-from-sub-assembly/m-p/4320517#M129891</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the title correct?&lt;/P&gt;
&lt;P&gt;As I understand you are actually trying to drive everything from the main assembly - and that should be OK.&lt;/P&gt;
&lt;P&gt;What do you mean by you are trying to drive things FROM the subassembly? - it's not completely clear to me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The best might be if you could provide some very basic sample documents that could be used to reproduce things and also the exact steps to follow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2013 14:44:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-driven-from-sub-assembly/m-p/4320517#M129891</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2013-07-05T14:44:45Z</dc:date>
    </item>
  </channel>
</rss>

