<?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: Help with roundToNearest() math Function in parameter in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/help-with-roundtonearest-math-function-in-parameter/m-p/11942591#M47443</link>
    <description>&lt;P&gt;Thank you Alex &amp;amp; and PCCrawly, i eventually ended up doing exactly this. Just wish it was more clear that ETO wasn't native to Inventor. Now I know I guess.&lt;/P&gt;&lt;P&gt;Thanks for the help though!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 May 2023 20:27:55 GMT</pubDate>
    <dc:creator>Jallen_USBattery</dc:creator>
    <dc:date>2023-05-04T20:27:55Z</dc:date>
    <item>
      <title>Help with roundToNearest() math Function in parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/help-with-roundtonearest-math-function-in-parameter/m-p/11940268#M47440</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am designing an assembly that uses linear rails that are ordered in lengths incrementing by 25mm.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to get Inventor to round a parameter to the nearest 25mm using the 'roundToNearest()' math function but everytime I try to use the function Inventor throws a fit and says it cannot parse equation...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: I have also tried adding a "(equationhere) x 1mm", to see if it was because roundToNearest might be a UL function but that didn't help either...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Link to 'roundToNearest()' math function:&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/ETOCOMP/2020/ENU/?guid=GUID-6DDEEF80-5964-406F-99A6-C982BB508607" target="_blank"&gt;https://help.autodesk.com/view/ETOCOMP/2020/ENU/?guid=GUID-6DDEEF80-5964-406F-99A6-C982BB508607&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screen Shot is attached for what I am trying to do and the error I receive&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Inventor RoundToNearest Error Screenshot 2023-05-03 215938.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1210226iCE67ABDCC8C6B19D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Inventor RoundToNearest Error Screenshot 2023-05-03 215938.png" alt="Inventor RoundToNearest Error Screenshot 2023-05-03 215938.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone please set me straight on this??&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 02:03:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/help-with-roundtonearest-math-function-in-parameter/m-p/11940268#M47440</guid>
      <dc:creator>Jallen_USBattery</dc:creator>
      <dc:date>2023-05-04T02:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Help with roundToNearest() math Function in parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/help-with-roundtonearest-math-function-in-parameter/m-p/11940369#M47441</link>
      <description>&lt;P&gt;The help file you've linked to is for "Inventor ETO" 2020 - which had some iLogic-like programming capability, and "&lt;SPAN&gt;roundToNearest()" was one of those functions.&amp;nbsp; It's not a standard Inventor Professional function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Try this for Inventor:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="params.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1210236iB22DFC555F3AB1A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="params.jpg" alt="params.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;To save you typing:&lt;/P&gt;&lt;P&gt;round(round(Length / 25 ul) * 25 ul)&lt;/P&gt;&lt;P&gt;roundedLength * 1 mm&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hopefully obvious - change the "25" in the equation if you want to change the increment.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 04:11:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/help-with-roundtonearest-math-function-in-parameter/m-p/11940369#M47441</guid>
      <dc:creator>pcrawley</dc:creator>
      <dc:date>2023-05-04T04:11:57Z</dc:date>
    </item>
    <item>
      <title>Re: Help with roundToNearest() math Function in parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/help-with-roundtonearest-math-function-in-parameter/m-p/11940794#M47442</link>
      <description>&lt;P&gt;hi, t&lt;SPAN class="HwtZe"&gt;&lt;SPAN class="jCAhz ChMk0b"&gt;&lt;SPAN class="ryNqvb"&gt;ry the following formula for parameter&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;round(round(Z_LinearRail_Length / 1 mm) / 25 ul) * 25 ul * 1 mm&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 08:39:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/help-with-roundtonearest-math-function-in-parameter/m-p/11940794#M47442</guid>
      <dc:creator>Alexander_Chernikov</dc:creator>
      <dc:date>2023-05-04T08:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Help with roundToNearest() math Function in parameter</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/help-with-roundtonearest-math-function-in-parameter/m-p/11942591#M47443</link>
      <description>&lt;P&gt;Thank you Alex &amp;amp; and PCCrawly, i eventually ended up doing exactly this. Just wish it was more clear that ETO wasn't native to Inventor. Now I know I guess.&lt;/P&gt;&lt;P&gt;Thanks for the help though!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 May 2023 20:27:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/help-with-roundtonearest-math-function-in-parameter/m-p/11942591#M47443</guid>
      <dc:creator>Jallen_USBattery</dc:creator>
      <dc:date>2023-05-04T20:27:55Z</dc:date>
    </item>
  </channel>
</rss>

