<?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: Parameter Error on laptop in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/parameter-error-on-laptop/m-p/11328933#M140730</link>
    <description>&lt;P&gt;HI!&lt;/P&gt;&lt;P&gt;First...&lt;/P&gt;&lt;P&gt;Check if both inventors are in the same update version.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2022 16:25:28 GMT</pubDate>
    <dc:creator>CCarreiras</dc:creator>
    <dc:date>2022-07-29T16:25:28Z</dc:date>
    <item>
      <title>Parameter Error on laptop</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/parameter-error-on-laptop/m-p/11328910#M140729</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;I would like to ask if someone could help me with this strange behavior: I'm using the comand "Parameter("","")" to get a parameter from another file, but the strange is that when I run the code in a desktop machine it works perfectly but when run in a laptop it return an error...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code that is generating problem is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;MATERIAL_CONE&lt;/SPAN&gt; = &lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;arquivo&lt;/SPAN&gt;, &lt;SPAN&gt;"CONE_DIMENSAO"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;I should access the "arquivo" file and get the "CONE_DIMENSAO" parameter...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The error is this one:&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="rafaelmorenoP66TL_0-1659106854900.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1098198iAB4F4EF46A719862/image-size/medium?v=v2&amp;amp;px=400" role="button" title="rafaelmorenoP66TL_0-1659106854900.png" alt="rafaelmorenoP66TL_0-1659106854900.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the full code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartDocument&lt;/SPAN&gt; 
&lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt; =&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;


&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt;         
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oRefFile&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;FileDescriptor&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;oAsmDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ReferencedDocuments&lt;/SPAN&gt;(1)
&lt;SPAN&gt;arquivo&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName&lt;/SPAN&gt;


&lt;SPAN&gt;MATERIAL_CONE&lt;/SPAN&gt; = &lt;SPAN&gt;Parameter&lt;/SPAN&gt;(&lt;SPAN&gt;arquivo&lt;/SPAN&gt;, &lt;SPAN&gt;"CONE_DIMENSAO"&lt;/SPAN&gt;)


&lt;SPAN&gt;iProperties&lt;/SPAN&gt;.&lt;SPAN&gt;Value&lt;/SPAN&gt;(&lt;SPAN&gt;"Custom"&lt;/SPAN&gt;, &lt;SPAN&gt;"CUSTOM_DIMENSAO"&lt;/SPAN&gt;) = &lt;SPAN&gt;MATERIAL_CONE&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same files are in a folder both in the laptop and in the desktop.&lt;/P&gt;&lt;P&gt;The comand "arquivo = oDoc.DisplayName" is working on the laptop, I have checked with a "messagebox.show" and returns the correct name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there differnce to use this function on a laptop machine?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&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>Fri, 29 Jul 2022 16:16:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/parameter-error-on-laptop/m-p/11328910#M140729</guid>
      <dc:creator>rafael.morenoP66TL</dc:creator>
      <dc:date>2022-07-29T16:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter Error on laptop</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/parameter-error-on-laptop/m-p/11328933#M140730</link>
      <description>&lt;P&gt;HI!&lt;/P&gt;&lt;P&gt;First...&lt;/P&gt;&lt;P&gt;Check if both inventors are in the same update version.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 16:25:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/parameter-error-on-laptop/m-p/11328933#M140730</guid>
      <dc:creator>CCarreiras</dc:creator>
      <dc:date>2022-07-29T16:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter Error on laptop</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/parameter-error-on-laptop/m-p/11329333#M140733</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/576681"&gt;@CCarreiras&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, they are on the same update version.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have ran the code in two different laptops and both didn't work. I have ran the code in 4 desktops and all of them works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really strange...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 19:33:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/parameter-error-on-laptop/m-p/11329333#M140733</guid>
      <dc:creator>rafael.morenoP66TL</dc:creator>
      <dc:date>2022-07-29T19:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter Error on laptop</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/parameter-error-on-laptop/m-p/11337410#M140877</link>
      <description>&lt;P&gt;I found here the issue:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command :&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;arquivo&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DisplayName&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Is afected with the windows configuration to show or not the extension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have changed the code to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;arquivo&lt;/SPAN&gt; = &lt;SPAN&gt;System.IO.Path.GetFileName(oDoc.FullDocumentName)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and it works now!&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>Wed, 03 Aug 2022 12:23:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/parameter-error-on-laptop/m-p/11337410#M140877</guid>
      <dc:creator>rafael.morenoP66TL</dc:creator>
      <dc:date>2022-08-03T12:23:25Z</dc:date>
    </item>
  </channel>
</rss>

