<?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 makePath command in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10944906#M134566</link>
    <description>&lt;P&gt;thanks again!! i will give this a try, but in all likelihood will have to look at a different approach.&amp;nbsp; this is the 3rd time that i have tried to manipulate a component with model states thru an iLogic rule in an assembly where i have run into this problem.&amp;nbsp; in the other two cases, i ended up rewriting the code to take a different approach.&amp;nbsp; it seems like i will have to do the same thing here...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again.&amp;nbsp; will let you know if this method works...&lt;/P&gt;</description>
    <pubDate>Fri, 11 Feb 2022 14:45:19 GMT</pubDate>
    <dc:creator>tmathieson</dc:creator>
    <dc:date>2022-02-11T14:45:19Z</dc:date>
    <item>
      <title>iLogic makePath command</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10940272#M134485</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;can anyone tell me what i am doing wrong here.....&lt;/P&gt;&lt;PRE&gt;	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;MakePath&lt;/SPAN&gt;(&lt;SPAN&gt;"SC-PRECAST:2"&lt;/SPAN&gt;, &lt;SPAN&gt;"SC-FOOTING - SIDE:1"&lt;/SPAN&gt;,&lt;SPAN&gt;"SIDE_ANGLE"&lt;/SPAN&gt;)) = &lt;SPAN&gt;ANGLE_SIDE&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;i get this error....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error on Line 10 : Value of type 'System.Collections.ArrayList' cannot be converted to 'String'....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tried it like this, and got same error...&lt;/P&gt;&lt;PRE&gt;	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;MakePath&lt;/SPAN&gt;(&lt;SPAN&gt;"SC-PRECAST:2"&lt;/SPAN&gt;, &lt;SPAN&gt;"SC-FOOTING - SIDE.ipt:1"&lt;/SPAN&gt;,&lt;SPAN&gt;"SIDE_ANGLE"&lt;/SPAN&gt;)) = &lt;SPAN&gt;ANGLE_SIDE&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;the name of the sub, component, and parameter are correct. as far as i can tell, the syntax is as described ilogic....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;anything pop out to anyone?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks in advance!!&lt;/P&gt;</description>
      <pubDate>Wed, 09 Feb 2022 20:55:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10940272#M134485</guid>
      <dc:creator>tmathieson</dc:creator>
      <dc:date>2022-02-09T20:55:30Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic makePath command</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10940958#M134496</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8013420"&gt;@tmathieson&lt;/a&gt;&amp;nbsp;brackets are wrong I think, they should enclose the makepath instructions as below:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;msgbox&lt;/SPAN&gt;(&lt;SPAN&gt;Parameter&lt;/SPAN&gt;((&lt;SPAN&gt;MakePath&lt;/SPAN&gt;(&lt;SPAN&gt;"Test1:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Part1:1"&lt;/SPAN&gt;)),&lt;SPAN&gt;"Thickness"&lt;/SPAN&gt;))&lt;/PRE&gt;&lt;P&gt;That way the path is a single object inside the parameter reference&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 04:03:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10940958#M134496</guid>
      <dc:creator>gcoombridge</dc:creator>
      <dc:date>2022-02-10T04:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic makePath command</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10940962#M134497</link>
      <description>&lt;PRE&gt;&lt;SPAN&gt;Parameter&lt;/SPAN&gt;((&lt;SPAN&gt;MakePath&lt;/SPAN&gt;(&lt;SPAN&gt;"SC-PRECAST:2"&lt;/SPAN&gt;, &lt;SPAN&gt;"SC-FOOTING - SIDE.ipt:1"))&lt;/SPAN&gt;,&lt;SPAN&gt;"SIDE_ANGLE"&lt;/SPAN&gt;) = &lt;SPAN&gt;ANGLE_SIDE&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 04:07:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10940962#M134497</guid>
      <dc:creator>gcoombridge</dc:creator>
      <dc:date>2022-02-10T04:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic makePath command</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10942642#M134526</link>
      <description>&lt;P&gt;Hi gcoombridge,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks so much for the reply.&amp;nbsp; it has helped, but still getting an error...so following your lead from above, i created these two lines of code to be sure my parameters exist and are correct...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;MsgBox(Parameter(MakePath("SC-PRECAST:2", "SC-FOOTING - SIDE:1"),"TEST_5"))&lt;/P&gt;&lt;P&gt;MsgBox(Parameter(MakePath("SC-PRECAST:2", "SC-FOOTING - SIDE:1"),"SIDE_ANGLE"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;works fine!&amp;nbsp; windows pop up showing the values that exist in my component.&amp;nbsp; but... when i code like this, to pass the parameter from the assembly down to the component...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;MakePath&lt;/SPAN&gt;(&lt;SPAN&gt;"SC-PRECAST:2"&lt;/SPAN&gt;, &lt;SPAN&gt;"SC-FOOTING - SIDE:1"&lt;/SPAN&gt;),&lt;SPAN&gt;"TEST_5"&lt;/SPAN&gt;) = &lt;SPAN&gt;ANGLE_SIDE&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;MakePath&lt;/SPAN&gt;(&lt;SPAN&gt;"SC-PRECAST:2"&lt;/SPAN&gt;, &lt;SPAN&gt;"SC-FOOTING - SIDE:1"&lt;/SPAN&gt;),&lt;SPAN&gt;"SIDE_ANGLE"&lt;/SPAN&gt;) = &lt;SPAN&gt;ANGLE_SIDE&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;i get....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error in rule: FOOTING_UPDATE, in document: ASSEMBLY INSERT.iam&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unspecified error (Exception from HRESULT: 0x80004005 (E_FAIL))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i should probably mention that both the sub and the component have model states....&lt;/P&gt;&lt;P&gt;could it be something to do with the units? i am just passing a number, no 'deg' or 'rad' or whatever...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again!!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 16:44:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10942642#M134526</guid>
      <dc:creator>tmathieson</dc:creator>
      <dc:date>2022-02-10T16:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic makePath command</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10943140#M134546</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8013420"&gt;@tmathieson&lt;/a&gt;&amp;nbsp;I've tried it with mismatched units and it works fine... I think the whole makepath needs to go in its own brackets:&amp;nbsp; parameter(&lt;STRONG&gt;(makepath(asm:1,part:1))&lt;/STRONG&gt;,Parametername) = ABC&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Parameter&lt;/SPAN&gt;((&lt;SPAN&gt;MakePath&lt;/SPAN&gt;(&lt;SPAN&gt;"Test1:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Part1:1"&lt;/SPAN&gt;)), &lt;SPAN&gt;"Thickness"&lt;/SPAN&gt;) = &lt;SPAN&gt;TestABC&lt;/SPAN&gt;
&lt;SPAN&gt;MsgBox&lt;/SPAN&gt;(&lt;SPAN&gt;Parameter&lt;/SPAN&gt;((&lt;SPAN&gt;MakePath&lt;/SPAN&gt;(&lt;SPAN&gt;"Test1:1"&lt;/SPAN&gt;, &lt;SPAN&gt;"Part1:1"&lt;/SPAN&gt;)), &lt;SPAN&gt;"Thickness"&lt;/SPAN&gt;))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Feb 2022 20:12:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10943140#M134546</guid>
      <dc:creator>gcoombridge</dc:creator>
      <dc:date>2022-02-10T20:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic makePath command</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10943598#M134547</link>
      <description>&lt;P&gt;thanks again.&amp;nbsp; i can get it to work if i pass a parameter to a component that has only the master model state. the parts i am trying to pass the parameter to&amp;nbsp; have model states...i've tried setting the edit factory scope to&amp;nbsp; a single state, all states and just the master state... no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;am i barking up the wrong tree here/&amp;nbsp; should this snippet work with a component that has model states?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks.&amp;nbsp; i appreciate your help!&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 00:33:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10943598#M134547</guid>
      <dc:creator>tmathieson</dc:creator>
      <dc:date>2022-02-11T00:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic makePath command</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10943638#M134548</link>
      <description>&lt;P&gt;Sorry I ignored that part of your previous response because I'm still on 2021 so couldn't offer any insight. You could try this kind of syntax (putting the modelstate in &amp;lt;&amp;gt; after the filename) but that is a guess...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gcoombridge_0-1644542158986.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1023800i787E230673EF4CE3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gcoombridge_0-1644542158986.png" alt="gcoombridge_0-1644542158986.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 01:15:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10943638#M134548</guid>
      <dc:creator>gcoombridge</dc:creator>
      <dc:date>2022-02-11T01:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic makePath command</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10944686#M134561</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8013420"&gt;@tmathieson&lt;/a&gt; &amp;amp; &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4047630"&gt;@gcoombridge&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know that the:&lt;/P&gt;
&lt;P&gt;Parameter("CompName1:1", "ParamName1") = Value&lt;/P&gt;
&lt;P&gt;will (normally) access whichever model state that the named component is currently set to in a top level component, but I have not tried it while using MakePath yet.&amp;nbsp; Even that was a little unpredictable at times though.&amp;nbsp; I don't know if they have all the bugs worked out of the new ModelStates yet.&amp;nbsp; Then their lack of detailed documentation about their 'iLogic only' snippets doesn't help either.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 13:15:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10944686#M134561</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-02-11T13:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic makePath command</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10944906#M134566</link>
      <description>&lt;P&gt;thanks again!! i will give this a try, but in all likelihood will have to look at a different approach.&amp;nbsp; this is the 3rd time that i have tried to manipulate a component with model states thru an iLogic rule in an assembly where i have run into this problem.&amp;nbsp; in the other two cases, i ended up rewriting the code to take a different approach.&amp;nbsp; it seems like i will have to do the same thing here...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks again.&amp;nbsp; will let you know if this method works...&lt;/P&gt;</description>
      <pubDate>Fri, 11 Feb 2022 14:45:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10944906#M134566</guid>
      <dc:creator>tmathieson</dc:creator>
      <dc:date>2022-02-11T14:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic makePath command</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10952274#M134668</link>
      <description>&lt;P&gt;Hi, so for THAT particular issue, i got rid of the model states, made separate subs WITHOUT Model states, and can manipulate as you should be able to...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;however,&amp;nbsp; on another project i did up a while ago, which has model states components, not sub assemblies, in the top level, and i still have issues with Model states...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have tried writing this line in the 3 different ways shown here....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;	&lt;SPAN&gt;'Parameter(NEW_PLATE &amp;amp; "&amp;lt;" &amp;amp; NEW_STATE &amp;amp; "&amp;gt;", "PLATE_TH_MM") = PLATE_THICK&lt;/SPAN&gt;
	&lt;SPAN&gt;'Parameter(MakePath((NEW_PLATE &amp;amp; "&amp;lt;" &amp;amp; NEW_STATE &amp;amp; "&amp;gt;")), "PLATE_TH_MM") = PLATE_THICK&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;((&lt;SPAN&gt;NEW_PLATE&lt;/SPAN&gt;), &lt;SPAN&gt;"PLATE_TH_MM"&lt;/SPAN&gt;) = &lt;SPAN&gt;PLATE_THICK&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;if i un comment either of the first 2 with the Make Path option, i get the error below that the component&amp;nbsp; is not found...if i run with the last Parameter statement, i get the fail error shown here... do i need to get my "new_state", (model state), inside&amp;nbsp; the NEW_Plate variable, so that the result would be like (BAP BW PLATE&amp;lt;BAP 10N&amp;gt;:1) instead of the way it is now...(BAP BW PLATE:1&amp;lt;BAP 10N&amp;gt;)... never mind, tried it and get the 'component not found error'.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes, i have mentioned before in other posts that the Model State, id very limited in what you can do, and wasn't completely thought out (in my opinion).....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have written a rule in the individual component that will update the parameter, but it is an extra step and ,in my opinion,, should not be necessary. should be able to modify parameters from the assembly for model state parts just like you can for&amp;nbsp; non model state parts..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;will keep slugging away...&amp;nbsp; thanks all!!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 18:59:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10952274#M134668</guid>
      <dc:creator>tmathieson</dc:creator>
      <dc:date>2022-02-15T18:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic makePath command</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10952420#M134672</link>
      <description>&lt;P&gt;Just to clarify one point...&lt;/P&gt;
&lt;P&gt;There are only 2 iLogic snippets that allow you to specify what model state you want to work with, and neither of them have to do with accessing Parameters.&lt;/P&gt;
&lt;P&gt;One is for replacing one component with another component:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Component.Replace("SubAssembly:1", "OtherAssembly.iam&amp;lt;Model State1&amp;gt;", True)&lt;/LI-CODE&gt;
&lt;P&gt;The other is for adding a component to the assembly:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim modelStateComponentA = Components.AddWithModelState("a:1", "a.ipt", "Model State2")&lt;/LI-CODE&gt;
&lt;P&gt;So...we do not have any official confirmation or example from Autodesk that says that their Parameter() iLogic snippet allows you to specify a model state to work with.&amp;nbsp; It simply may not have that capability/option built into it yet.&lt;/P&gt;
&lt;P&gt;We do have an example of the Parameter() snippet being used with the MakePath snippet:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Parameter(MakePath("SubAssem1:1", "Part1:1"), "d0") = 1.2&lt;/LI-CODE&gt;
&lt;P&gt;, but not one that includes anything about specifying a model state.&amp;nbsp; So, I would give up on trying to access a Parameter specific to a named model state using the Parameter() iLogic snippet.&lt;/P&gt;
&lt;P&gt;Have you tried any regular Inventor API route yet.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Feb 2022 20:00:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10952420#M134672</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2022-02-15T20:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic makePath command</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10954107#M134704</link>
      <description>&lt;P&gt;thanks for the info!! i will stop beating my head.... no, i have not looked at the API to see what is possible.&amp;nbsp; i will investigate and see what i can find.&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;thanks again!!&lt;/P&gt;</description>
      <pubDate>Wed, 16 Feb 2022 14:01:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-makepath-command/m-p/10954107#M134704</guid>
      <dc:creator>tmathieson</dc:creator>
      <dc:date>2022-02-16T14:01:27Z</dc:date>
    </item>
  </channel>
</rss>

