<?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: Drawings: Revert all override dimensions back to default in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawings-revert-all-override-dimensions-back-to-default/m-p/8631178#M95124</link>
    <description>&lt;P&gt;This will reset overridden dimensions of the GeneralDimension Type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oApp As Inventor.Application = ThisApplication
Dim oDoc As DrawingDocument = oApp.ActiveDocument
Dim oSheet As Sheet

For Each oSheet In oDoc.Sheets
	For Each oDrawingDim As GeneralDimension In oSheet.DrawingDimensions.GeneralDimensions
		If oDrawingDim.ModelValueOverridden Then
			oDrawingDim.ModelValueOverridden = False
		End If
	Next
Next&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will have to loop through other dimension&amp;nbsp;types as well if they exist on the drawing. See the following link for further details on the DrawingDimensions Object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2018/ENU/Inventor-API/files/DrawingDimensions-htm.html" target="_blank"&gt;https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2018/ENU/Inventor-API/files/DrawingDimensions-htm.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2019 20:34:45 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-01T20:34:45Z</dc:date>
    <item>
      <title>Drawings: Revert all override dimensions back to default</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawings-revert-all-override-dimensions-back-to-default/m-p/8630876#M95123</link>
      <description>&lt;P&gt;I got of work on bunch of drawings.&lt;/P&gt;
&lt;P&gt;One of my co-workers has overridden many dimensions in drawings. Upon, model changes I found dimensions are not updating.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could someone help me with some coding to get all such dimensions reverted back to default dimensions.&lt;/P&gt;
&lt;P&gt;Thanks.&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, 01 Mar 2019 18:09:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawings-revert-all-override-dimensions-back-to-default/m-p/8630876#M95123</guid>
      <dc:creator>RoyWickrama_RWEI</dc:creator>
      <dc:date>2019-03-01T18:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: Drawings: Revert all override dimensions back to default</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawings-revert-all-override-dimensions-back-to-default/m-p/8631178#M95124</link>
      <description>&lt;P&gt;This will reset overridden dimensions of the GeneralDimension Type.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oApp As Inventor.Application = ThisApplication
Dim oDoc As DrawingDocument = oApp.ActiveDocument
Dim oSheet As Sheet

For Each oSheet In oDoc.Sheets
	For Each oDrawingDim As GeneralDimension In oSheet.DrawingDimensions.GeneralDimensions
		If oDrawingDim.ModelValueOverridden Then
			oDrawingDim.ModelValueOverridden = False
		End If
	Next
Next&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will have to loop through other dimension&amp;nbsp;types as well if they exist on the drawing. See the following link for further details on the DrawingDimensions Object.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2018/ENU/Inventor-API/files/DrawingDimensions-htm.html" target="_blank"&gt;https://knowledge.autodesk.com/search-result/caas/CloudHelp/cloudhelp/2018/ENU/Inventor-API/files/DrawingDimensions-htm.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2019 20:34:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawings-revert-all-override-dimensions-back-to-default/m-p/8631178#M95124</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-01T20:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Drawings: Revert all override dimensions back to default</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawings-revert-all-override-dimensions-back-to-default/m-p/8633752#M95154</link>
      <description>&lt;P&gt;Code looks good. But, it does not do anything.&lt;/P&gt;
&lt;P&gt;Not sure why.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 06:54:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawings-revert-all-override-dimensions-back-to-default/m-p/8633752#M95154</guid>
      <dc:creator>RoyWickrama_RWEI</dc:creator>
      <dc:date>2019-03-04T06:54:45Z</dc:date>
    </item>
    <item>
      <title>Re: Drawings: Revert all override dimensions back to default</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawings-revert-all-override-dimensions-back-to-default/m-p/8634121#M95175</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/2129088"&gt;@RoyWickrama_RWEI&lt;/a&gt;&amp;nbsp;as&amp;nbsp;@Anonymous&lt;/a&gt;&amp;nbsp;mentioned, with your current code you're only referencing one of the DrawingDimension sub-types.&lt;/P&gt;
&lt;P&gt;The code in this post takes a broader approach and demonstrates how to change the colour of any overridden dimension regardless of its type:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/macro-add-in-to-show-override-dimensions-in-sketch/m-p/7603923/highlight/true#M77816" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/macro-add-in-to-show-override-dimensions-in-sketch/m-p/7603923/highlight/true#M77816&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can combine the two to get the desired effect.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 10:32:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/drawings-revert-all-override-dimensions-back-to-default/m-p/8634121#M95175</guid>
      <dc:creator>AlexFielder</dc:creator>
      <dc:date>2019-03-04T10:32:17Z</dc:date>
    </item>
  </channel>
</rss>

