<?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 sub-routine argument limit? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-sub-routine-argument-limit/m-p/9626802#M113063</link>
    <description>&lt;P&gt;There is no limit, as I was able to call a subroutine with 6 arguments with no problem. The issue is that you are not passing a string to DesPlanes on line 73. Double check that the string is defined and is being passed to the sub routine in every instance. You can test that it works by adding "TestString" where DesPlanes should be.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jul 2020 17:35:10 GMT</pubDate>
    <dc:creator>ckeveryga</dc:creator>
    <dc:date>2020-07-09T17:35:10Z</dc:date>
    <item>
      <title>Ilogic sub-routine argument limit?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-sub-routine-argument-limit/m-p/9626572#M113057</link>
      <description>&lt;P&gt;I have an ilogic&amp;nbsp;sub-routine that I want to pass 6 arguments to, but I keep getting this error...&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Rule Compile Errors in Ground Bus, in _General Assembly.iam

Error on Line 73 : Argument not specified for parameter 'DesPlanes' of 'Public Sub Install(PartNo As String, ConstraintTypes As String, ConstraintOffsets As String, ConstraintPlanes As String, ConstrainTo As String, DesPlanes As String)'.&lt;/LI-CODE&gt;&lt;P&gt;If I remove the last argument from both the call and the sub I do not get an error.&lt;/P&gt;&lt;P&gt;Here are my call statement and the sub-routine's receiving line...&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Call Install(NewAssyNo, "Flush|Mate|Flush", Pos, "XZ Plane|YZ Plane|XY Plane", HousingOccurNo, DesPlanes)

Sub Install(PartNo As String, ConstraintTypes As String, ConstraintOffsets As String, ConstraintPlanes As String, ConstrainTo As String, DesPlanes As String)&lt;/LI-CODE&gt;&lt;P&gt;Does iLogic limit the number of arguments that can be passed to 5, or what stupid thing am I missing?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 15:43:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-sub-routine-argument-limit/m-p/9626572#M113057</guid>
      <dc:creator>meck</dc:creator>
      <dc:date>2020-07-09T15:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic sub-routine argument limit?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-sub-routine-argument-limit/m-p/9626802#M113063</link>
      <description>&lt;P&gt;There is no limit, as I was able to call a subroutine with 6 arguments with no problem. The issue is that you are not passing a string to DesPlanes on line 73. Double check that the string is defined and is being passed to the sub routine in every instance. You can test that it works by adding "TestString" where DesPlanes should be.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 17:35:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-sub-routine-argument-limit/m-p/9626802#M113063</guid>
      <dc:creator>ckeveryga</dc:creator>
      <dc:date>2020-07-09T17:35:10Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic sub-routine argument limit?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-sub-routine-argument-limit/m-p/9626840#M113066</link>
      <description>&lt;P&gt;Thanks for the response!&lt;/P&gt;&lt;P&gt;You were correct! It did not recognize the variable DesPlanes as a string. All I had to do to fix it was to add this... Dim DesPlanes as String.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Serves me right for trying to cut corners.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By best to you and stay healthy!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jul 2020 17:55:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-sub-routine-argument-limit/m-p/9626840#M113066</guid>
      <dc:creator>meck</dc:creator>
      <dc:date>2020-07-09T17:55:16Z</dc:date>
    </item>
  </channel>
</rss>

