<?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 - error when running code  (Exception from HRESULT: 0x80004005 (E_FAI in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7791812#M92597</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5455015"&gt;@mikko.m&lt;/a&gt;&amp;nbsp;that sounds like it's because of database units not being and measurements automatically being converted to the database lengths ("cm") instead of your working units ("mm").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its definitely something to look up and be aware of if you are using params in iLogic!&lt;/P&gt;</description>
    <pubDate>Tue, 20 Feb 2018 14:26:22 GMT</pubDate>
    <dc:creator>MechMachineMan</dc:creator>
    <dc:date>2018-02-20T14:26:22Z</dc:date>
    <item>
      <title>iLogic - error when running code  (Exception from HRESULT: 0x80004005 (E_FAIL))</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7780485#M92591</link>
      <description>&lt;P&gt;I get this error when i try to run my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;System.Runtime.InteropServices.COMException (0x80004005): Määrittämätön virhe. (Exception from HRESULT: 0x80004005 (E_FAIL))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Int32[] aWrapperTypes, MessageData&amp;amp; msgData)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Inventor.CustomPropertyFormat.set_ShowTrailingZeros(Boolean )&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at LmiRuleScript.Main()&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at Autodesk.iLogic.Exec.AppDomExec.ExecRuleInAssembly(Assembly assem)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It doesn't happen on all parts. I've attached part with this problem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found this but it didn't help.&lt;/P&gt;&lt;P&gt;&lt;A href=" https://www.cadlinecommunity.co.uk/hc/en-us/articles/201769272-Trouble-Shooting-Inventor-iLogic-Error-Messages" target="_blank"&gt;https://www.cadlinecommunity.co.uk/hc/en-us/articles/201769272-Trouble-Shooting-Inventor-iLogic-Error-Messages&lt;/A&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;&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #808080;"&gt;'Set a reference to the active part document&lt;/SPAN&gt;
    &lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt;
    &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ActiveDocument&lt;/SPAN&gt;
    
    &lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartComponentDefinition&lt;/SPAN&gt;
    &lt;SPAN style="color: #800000;"&gt;oDef&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;
	
	&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Update&lt;/SPAN&gt;
	

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oparams&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Parameters&lt;/SPAN&gt;
    &lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oparam&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;
    &lt;SPAN style="color: #800000;"&gt;oparams&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Parameters&lt;/SPAN&gt;
    &lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;exists&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Boolean&lt;/SPAN&gt;
    &lt;SPAN style="color: #800000;"&gt;exists&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt;


    &lt;SPAN style="color: #808080;"&gt;'Find out if parameter exists, if not it will create this parameter in the table&lt;/SPAN&gt;
    &lt;SPAN style="color: #ff0000;"&gt;For&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Each&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oparam&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;In&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oparams&lt;/SPAN&gt;
    &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oparam&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"MAX_Y"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;exists&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oparam&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"MAX_Z"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;exists&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;
	&lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;oparam&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Name&lt;/SPAN&gt; = &lt;SPAN style="color: #008080;"&gt;"MAX_X"&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;exists&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt;

	&lt;SPAN style="color: #ff0000;"&gt;Next&lt;/SPAN&gt;

    &lt;SPAN style="color: #808080;"&gt;'Change the value if the parameter exists otherwise add the parameter&lt;/SPAN&gt;
	
	 &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;exists&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
		 &lt;SPAN style="color: #800000;"&gt;oparams&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_Y"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;ExtentsWidth&lt;/SPAN&gt;/10
        
    &lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
         &lt;SPAN style="color: #800000;"&gt;oparams&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UserParameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddByValue&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_Y"&lt;/SPAN&gt;,  &lt;SPAN style="color: #800080;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;ExtentsWidth&lt;/SPAN&gt;/10,  11266)
    &lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	
	
	
	 &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;exists&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
		 &lt;SPAN style="color: #800000;"&gt;oparams&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_X"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;ExtentsLength&lt;/SPAN&gt;/10
        
    &lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
         &lt;SPAN style="color: #800000;"&gt;oparams&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UserParameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddByValue&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_X"&lt;/SPAN&gt;, &lt;SPAN style="color: #800080;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;ExtentsLength&lt;/SPAN&gt;/10,  11266)
    &lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	
	
	
	 &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;exists&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;Then&lt;/SPAN&gt;
		 &lt;SPAN style="color: #800000;"&gt;oparams&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_Z"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;ExtentsHeight&lt;/SPAN&gt;/10
        
    &lt;SPAN style="color: #ff0000;"&gt;Else&lt;/SPAN&gt;
        &lt;SPAN style="color: #800000;"&gt;oparams&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;UserParameters&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddByValue&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_Z"&lt;/SPAN&gt;, &lt;SPAN style="color: #800080;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;ExtentsHeight&lt;/SPAN&gt;/10,  11266)
    &lt;SPAN style="color: #ff0000;"&gt;End&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;If&lt;/SPAN&gt;
	


&lt;SPAN style="color: #808080;"&gt;'Dim param As Parameter&lt;/SPAN&gt;
&lt;SPAN style="color: #808080;"&gt;'param = Parameter.Param("MAX_Y") &lt;/SPAN&gt;
&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Param&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_Y"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;ExposedAsProperty&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt; 

&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Param&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_Y"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Precision&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CustomPropertyPrecisionEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kZeroDecimalPlacePrecision&lt;/SPAN&gt; 
&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Param&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_Y"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ShowTrailingZeros&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt; 
&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Param&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_Y"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ShowLeadingZeros&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt; 
&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Param&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_Y"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ShowUnitsString&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt; 
&lt;SPAN style="color: #808080;"&gt;'Parameter.Param("MAX_Y").CustomPropertyFormat.Units = "mm" &lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;'param =Parameter.Param("MAX_Z") &lt;/SPAN&gt;
&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Param&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_Z"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;ExposedAsProperty&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt; 

&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Param&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_Z"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Precision&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CustomPropertyPrecisionEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kZeroDecimalPlacePrecision&lt;/SPAN&gt;  
&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Param&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_Z"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ShowTrailingZeros&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt; 
&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Param&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_Z"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ShowLeadingZeros&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt; 
&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Param&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_Z"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ShowUnitsString&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt; 
&lt;SPAN style="color: #808080;"&gt;'Parameter.Param("MAX_Z").CustomPropertyFormat.Units = "mm" &lt;/SPAN&gt;

&lt;SPAN style="color: #808080;"&gt;'param =Parameter.Param("MAX_X") &lt;/SPAN&gt;
&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Param&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_X"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;ExposedAsProperty&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt; 

&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Param&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_X"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Precision&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CustomPropertyPrecisionEnum&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;kZeroDecimalPlacePrecision&lt;/SPAN&gt;   
&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Param&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_X"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ShowTrailingZeros&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;True&lt;/SPAN&gt; 
&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Param&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_X"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ShowLeadingZeros&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt; 
&lt;SPAN style="color: #800080;"&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Param&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_X"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ShowUnitsString&lt;/SPAN&gt; = &lt;SPAN style="color: #ff0000;"&gt;False&lt;/SPAN&gt; 
&lt;SPAN style="color: #808080;"&gt;'Parameter.Param("MAX_X").CustomPropertyFormat.Units = "mm" &lt;/SPAN&gt;

	&lt;SPAN style="color: #800000;"&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Update&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 14:06:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7780485#M92591</guid>
      <dc:creator>mikko.m</dc:creator>
      <dc:date>2018-02-15T14:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic - error when running code  (Exception from HRESULT: 0x80004005 (E_FAI</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7780586#M92592</link>
      <description>&lt;P&gt;See if you get the proper results and no errors if you just exclude the ShowTrailingZeroes statements&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Parameter.Param("MAX_Y").CustomPropertyFormat.Precision = Inventor.CustomPropertyPrecisionEnum.kZeroDecimalPlacePrecision 
'Parameter.Param("MAX_Y").CustomPropertyFormat.ShowTrailingZeros = True &lt;/PRE&gt;
&lt;P&gt;I mean, aren't the 2 redundant - if you don't have a decimal (as set by your Zero Decimal precision), any trailing zeroes would just be adding to increasing the value by a factor of 10, instead of just acting as placeholders&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 14:29:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7780586#M92592</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-02-15T14:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic - error when running code  (Exception from HRESULT: 0x80004005 (E_FAI</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7780945#M92593</link>
      <description>&lt;P&gt;take a look at this similar code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/ilogic-to-set-max-dimensions-as-parameters-with-export/m-p/7741987#M79821" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/ilogic-to-set-max-dimensions-as-parameters-with-export/m-p/7741987#M79821&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Feb 2018 15:55:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7780945#M92593</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2018-02-15T15:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic - error when running code  (Exception from HRESULT: 0x80004005 (E_FAI</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7782560#M92594</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2511355"&gt;@MechMachineMan&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Excluding the ShowTrailingZeroes didn't help. The code itself seems to be working and changing values. Error message appears after the code has run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Same problem with that code. Code runs but the error occurs.&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 05:47:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7782560#M92594</guid>
      <dc:creator>mikko.m</dc:creator>
      <dc:date>2018-02-16T05:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic - error when running code  (Exception from HRESULT: 0x80004005 (E_FAI</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7783836#M92595</link>
      <description>&lt;P&gt;Hi mikko,&lt;BR /&gt;&lt;BR /&gt;Try this code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SyntaxEditor Code Snippet&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;'Set a reference to the active part 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;PartDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;
    
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;PartComponentDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;oDef&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;
	
&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Update&lt;/SPAN&gt;
	

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oparams&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Parameters&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oparam&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Parameter&lt;/SPAN&gt;
&lt;SPAN&gt;oparams&lt;/SPAN&gt; = &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentDefinition&lt;/SPAN&gt;.&lt;SPAN&gt;Parameters&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;exists&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Boolean&lt;/SPAN&gt;
&lt;SPAN&gt;exists&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;

&lt;SPAN&gt;'Find out if parameter exists, if not it will create this parameter in the table&lt;/SPAN&gt;
&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oparam&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oparams&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oparam&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;"MAX_Y"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;exists&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oparam&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;"MAX_Z"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;exists&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oparam&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;"MAX_X"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;exists&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;'Change the value if the parameter exists otherwise add the parameter	&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;exists&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;oparams&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Y"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;Measure&lt;/SPAN&gt;.&lt;SPAN&gt;ExtentsWidth&lt;/SPAN&gt;
&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;oparams&lt;/SPAN&gt;.&lt;SPAN&gt;UserParameters&lt;/SPAN&gt;.&lt;SPAN&gt;AddByValue&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Y"&lt;/SPAN&gt;,  &lt;SPAN&gt;Measure&lt;/SPAN&gt;.&lt;SPAN&gt;ExtentsWidth&lt;/SPAN&gt;,  11266)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;exists&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;oparams&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_X"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;Measure&lt;/SPAN&gt;.&lt;SPAN&gt;ExtentsLength&lt;/SPAN&gt;        
&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;oparams&lt;/SPAN&gt;.&lt;SPAN&gt;UserParameters&lt;/SPAN&gt;.&lt;SPAN&gt;AddByValue&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_X"&lt;/SPAN&gt;, &lt;SPAN&gt;Measure&lt;/SPAN&gt;.&lt;SPAN&gt;ExtentsLength&lt;/SPAN&gt;,  11266)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;exists&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
	&lt;SPAN&gt;oparams&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Z"&lt;/SPAN&gt;).&lt;SPAN&gt;Value&lt;/SPAN&gt; = &lt;SPAN&gt;Measure&lt;/SPAN&gt;.&lt;SPAN&gt;ExtentsHeight&lt;/SPAN&gt;        
&lt;SPAN&gt;Else&lt;/SPAN&gt;
	&lt;SPAN&gt;oparams&lt;/SPAN&gt;.&lt;SPAN&gt;UserParameters&lt;/SPAN&gt;.&lt;SPAN&gt;AddByValue&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Z"&lt;/SPAN&gt;, &lt;SPAN&gt;Measure&lt;/SPAN&gt;.&lt;SPAN&gt;ExtentsHeight&lt;/SPAN&gt;,  11266)
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;	


&lt;SPAN&gt;'Dim param As Parameter&lt;/SPAN&gt;
&lt;SPAN&gt;'param = Parameter.Param("MAX_Y") &lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Y"&lt;/SPAN&gt;).&lt;SPAN&gt;ExposedAsProperty&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Y"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;Precision&lt;/SPAN&gt; = &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;CustomPropertyPrecisionEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kZeroDecimalPlacePrecision&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; (&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Y"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;PropertyType&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;CustomPropertyTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kNumberPropertyType&lt;/SPAN&gt;)
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Y"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;ShowTrailingZeros&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt; 
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Y"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;ShowLeadingZeros&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt; 
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Y"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;ShowUnitsString&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt; 
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;'param =Parameter.Param("MAX_Z") &lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Z"&lt;/SPAN&gt;).&lt;SPAN&gt;ExposedAsProperty&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Z"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;Precision&lt;/SPAN&gt; = &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;CustomPropertyPrecisionEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kZeroDecimalPlacePrecision&lt;/SPAN&gt;  
&lt;SPAN&gt;If&lt;/SPAN&gt; (&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Y"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;PropertyType&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;CustomPropertyTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kNumberPropertyType&lt;/SPAN&gt;)
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Z"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;ShowTrailingZeros&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Z"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;ShowLeadingZeros&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt; 
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Z"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;ShowUnitsString&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt; 
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;'param =Parameter.Param("MAX_X") &lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_X"&lt;/SPAN&gt;).&lt;SPAN&gt;ExposedAsProperty&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_X"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;Precision&lt;/SPAN&gt; = &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;CustomPropertyPrecisionEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kZeroDecimalPlacePrecision&lt;/SPAN&gt;  
&lt;SPAN&gt;If&lt;/SPAN&gt; (&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_Y"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;PropertyType&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;CustomPropertyTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kNumberPropertyType&lt;/SPAN&gt;)
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_X"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;ShowTrailingZeros&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_X"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;ShowLeadingZeros&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt; 
	&lt;SPAN&gt;Parameter&lt;/SPAN&gt;.&lt;SPAN&gt;Param&lt;/SPAN&gt;(&lt;SPAN&gt;"MAX_X"&lt;/SPAN&gt;).&lt;SPAN&gt;CustomPropertyFormat&lt;/SPAN&gt;.&lt;SPAN&gt;ShowUnitsString&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt; 
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Update&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;BR /&gt;Jaroslav&lt;/P&gt;</description>
      <pubDate>Fri, 16 Feb 2018 15:14:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7783836#M92595</guid>
      <dc:creator>t_hascj</dc:creator>
      <dc:date>2018-02-16T15:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic - error when running code  (Exception from HRESULT: 0x80004005 (E_FAI</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7787676#M92596</link>
      <description>&lt;P&gt;Thank you! That works, no errors. I think I have to divide parameter value by 10 because otherwise parameter value shows 10 times higher.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #800000;"&gt;oparams&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(&lt;SPAN style="color: #008080;"&gt;"MAX_Y"&lt;/SPAN&gt;).&lt;SPAN style="color: #800000;"&gt;Value&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;Measure&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;ExtentsWidth&lt;/SPAN&gt;/10&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Feb 2018 05:50:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7787676#M92596</guid>
      <dc:creator>mikko.m</dc:creator>
      <dc:date>2018-02-19T05:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic - error when running code  (Exception from HRESULT: 0x80004005 (E_FAI</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7791812#M92597</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5455015"&gt;@mikko.m&lt;/a&gt;&amp;nbsp;that sounds like it's because of database units not being and measurements automatically being converted to the database lengths ("cm") instead of your working units ("mm").&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Its definitely something to look up and be aware of if you are using params in iLogic!&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 14:26:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7791812#M92597</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2018-02-20T14:26:22Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic - error when running code  (Exception from HRESULT: 0x80004005 (E_FAI</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7791880#M92598</link>
      <description>&lt;P&gt;Yes, you are right.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The nominal value is multiplied by 10, therefore Measure.ExtentXXX return value in mm. And AddByValue function get value in database units(cm) and then convert it to specified units(11266 = mm)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More info&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-DB91F7F6-842C-4849-A856-1003F8B7C576" target="_blank" rel="nofollow noopener noreferrer"&gt;http://help.autodesk.com/view/INVNTOR/2018/ENU/?guid=GUID-DB91F7F6-842C-4849-A856-1003F8B7C576&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Feb 2018 14:41:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-error-when-running-code-exception-from-hresult-0x80004005/m-p/7791880#M92598</guid>
      <dc:creator>t_hascj</dc:creator>
      <dc:date>2018-02-20T14:41:04Z</dc:date>
    </item>
  </channel>
</rss>

