<?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 iLogic To Round Dimension On Drawing in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-round-dimension-on-drawing/m-p/6469122#M65754</link>
    <description>&lt;P&gt;I need a dimension style that rounds up to next 5mm , in Autocad its part of the settings you can change but in inventor it still doesn't exist.&lt;/P&gt;
&lt;P&gt;i thought&amp;nbsp;maybe&amp;nbsp;there's a way with iLogic Or through the 'API Object Model' that this can be done?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 31 Jul 2016 08:09:28 GMT</pubDate>
    <dc:creator>Alexrose1942</dc:creator>
    <dc:date>2016-07-31T08:09:28Z</dc:date>
    <item>
      <title>iLogic To Round Dimension On Drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-round-dimension-on-drawing/m-p/6469122#M65754</link>
      <description>&lt;P&gt;I need a dimension style that rounds up to next 5mm , in Autocad its part of the settings you can change but in inventor it still doesn't exist.&lt;/P&gt;
&lt;P&gt;i thought&amp;nbsp;maybe&amp;nbsp;there's a way with iLogic Or through the 'API Object Model' that this can be done?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 31 Jul 2016 08:09:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-round-dimension-on-drawing/m-p/6469122#M65754</guid>
      <dc:creator>Alexrose1942</dc:creator>
      <dc:date>2016-07-31T08:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic To Round Dimension On Drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-round-dimension-on-drawing/m-p/6470213#M65762</link>
      <description>&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope my code will be helpful for you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Dim oDrawDoc as DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
Dim oDrawingDimension as object
For each oDrawingDimension in oDrawDoc.Activesheet.DrawingDimensions.GeneralDimensions
Dim oDimValue as Double
oDimValue = oDrawingDimension.ModelValue * 10
oDimValue = (Round(oDimValue/5))*5
oDrawingDimension.OverrideModelValue = oDimValue / 10&lt;BR /&gt;Next&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;Note: This will round of only the drawing driven dimension if you delete the dimension and repeat the dimension it will load the default dimension value again you need to run the rule.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 09:11:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-round-dimension-on-drawing/m-p/6470213#M65762</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-08-01T09:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic To Round Dimension On Drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-round-dimension-on-drawing/m-p/6470982#M65770</link>
      <description>&lt;P&gt;@Anonymous﻿&lt;/a&gt;&amp;nbsp;wow that's a great code! ill give it few tests and see what improvements&amp;nbsp;i can suggest.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 15:53:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-round-dimension-on-drawing/m-p/6470982#M65770</guid>
      <dc:creator>Alexrose1942</dc:creator>
      <dc:date>2016-08-01T15:53:16Z</dc:date>
    </item>
  </channel>
</rss>

