<?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: How to locate orphaned Dimensions on Drawing Document in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3416107#M136725</link>
    <description>&lt;P&gt;Hi dgesler,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found these, but have not tried to use them.&lt;/P&gt;&lt;P&gt;Please post back some sample code if you are successful.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A target="_blank" href="http://inventortrenches.blogspot.com"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'Auto-Reattach Annotation
ThisApplication.CommandManager.ControlDefinitions.Item("DLxAnnoReconnectCmd").Execute
'Auto-Reattach Orphaned Annotations
ThisApplication.CommandManager.ControlDefinitions.Item("DLxAutoReattachSickAnnotationsCmd").Execute&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 16 Apr 2012 21:23:12 GMT</pubDate>
    <dc:creator>Curtis_W</dc:creator>
    <dc:date>2012-04-16T21:23:12Z</dc:date>
    <item>
      <title>How to locate orphaned Dimensions on Drawing Document</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3415071#M136721</link>
      <description>&lt;DIV class="lia-message-body"&gt;&lt;DIV class="lia-message-body-content"&gt;&lt;P&gt;After looking thru the api, i'm finding it hard to get a list of orphaned dimensions.&lt;/P&gt;&lt;P&gt;I can get a list of all the dimensions...easy.&lt;/P&gt;&lt;P&gt;I've basically deleted a part from the assembly and now want to remove that dimension in a section view on the drawing document.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But looking / comparing the properties of a non-orphaned vs an orphaned shows nothing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an orphaned list?&lt;/P&gt;&lt;P&gt;Is there a color override switch somewhere?&lt;/P&gt;&lt;P&gt;Or can I somehow get the object that the dimension is trying to reference and check to see if it is valid or has a valid file reference...or something?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Doug&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 16 Apr 2012 14:08:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3415071#M136721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-16T14:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to locate orphaned Dimensions on Drawing Document</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3415259#M136722</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use &lt;STRONG&gt;If&lt;/STRONG&gt; &lt;STRONG&gt;oDrawingDim.Attached = False&lt;/STRONG&gt; for this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A target="_blank" href="http://inventortrenches.blogspot.com"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;oDoc = ThisDoc.Document&lt;BR /&gt;&lt;BR /&gt;'Delete all orphaned dimensions&lt;BR /&gt;For Each oDrawingDim In oDoc.ActiveSheet.DrawingDimensions&lt;BR /&gt;If oDrawingDim.Attached = False Then&lt;BR /&gt;oDrawingDim.Delete&lt;BR /&gt;End If&lt;BR /&gt;Next&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2012 15:25:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3415259#M136722</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2012-04-16T15:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to locate orphaned Dimensions on Drawing Document</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3415315#M136723</link>
      <description>&lt;P&gt;yes, i looked into that, but i don't show that value working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's true for this dimension, the dimension is definately orphaned, the color on screen is magenta and if i try to re-attach via the GUI, it generates an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Doug&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2012 15:48:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3415315#M136723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-16T15:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to locate orphaned Dimensions on Drawing Document</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3416077#M136724</link>
      <description>&lt;P&gt;Do you know a way to re-attach them via the API.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Basically call the "Re-Attach Orphaned Annotations" in the menu system.&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;somehow make an entire copy of the dimension.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Doug&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2012 21:08:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3416077#M136724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-16T21:08:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to locate orphaned Dimensions on Drawing Document</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3416107#M136725</link>
      <description>&lt;P&gt;Hi dgesler,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I found these, but have not tried to use them.&lt;/P&gt;&lt;P&gt;Please post back some sample code if you are successful.&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A target="_blank" href="http://inventortrenches.blogspot.com"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'Auto-Reattach Annotation
ThisApplication.CommandManager.ControlDefinitions.Item("DLxAnnoReconnectCmd").Execute
'Auto-Reattach Orphaned Annotations
ThisApplication.CommandManager.ControlDefinitions.Item("DLxAutoReattachSickAnnotationsCmd").Execute&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2012 21:23:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3416107#M136725</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2012-04-16T21:23:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to locate orphaned Dimensions on Drawing Document</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3416131#M136726</link>
      <description>&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, both do work... I haven't tried it as a service yet (Application.Visible = false)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but here is my code after locating the dimensions to re-attach&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;// works, but wanted individual control of dimensions, saved just in case select doesn't work when in non-GUI mode&lt;/P&gt;&lt;P&gt;//m_application.CommandManager.ControlDefinitions["DLxAutoReattachSickAnnotationsCmd"].Execute2(true);&lt;BR /&gt;&lt;BR /&gt;foreach (Inventor.DrawingDimension d in reAttachList)&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Document.SelectSet.Clear();&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Document.SelectSet.Select(d);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; m_application.CommandManager.ControlDefinitions["DLxAnnoReconnectCmd"].Execute2(true);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Doug&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2012 21:38:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3416131#M136726</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-16T21:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to locate orphaned Dimensions on Drawing Document</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3416789#M136727</link>
      <description>&lt;P&gt;Now I'm just wondering how the Attach Property is actually calculated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My dimensions do not have a valid workpoint (the part with the workpoint is not even loaded in the assembly anymore).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently I know what dimensions need re-attached, but would like a generic function just to re-attach any orphaned ones, individually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Doug&lt;/P&gt;</description>
      <pubDate>Tue, 17 Apr 2012 12:33:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3416789#M136727</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-04-17T12:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to locate orphaned Dimensions on Drawing Document</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3897497#M136728</link>
      <description>&lt;P&gt;See we have an issue, i would like to use your code to re-attach the dimensions.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is my situation:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp;as soon as we change a part to something bigger or smaller the dims lose there hold. we can reattach manually but it takes time. Will this code fix that?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2013 18:05:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3897497#M136728</guid>
      <dc:creator>DeerSpotter</dc:creator>
      <dc:date>2013-04-29T18:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to locate orphaned Dimensions on Drawing Document</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3897512#M136729</link>
      <description>the DLxAutoReattachSickAnnotationsCmd command is the equivalent to selecting "Re-Attach Orphaned Annotations"</description>
      <pubDate>Mon, 29 Apr 2013 18:14:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/how-to-locate-orphaned-dimensions-on-drawing-document/m-p/3897512#M136729</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-04-29T18:14:07Z</dc:date>
    </item>
  </channel>
</rss>

