<?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 Updating drawing/database after modifying it. in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/updating-drawing-database-after-modifying-it/m-p/3522448#M54795</link>
    <description>&lt;P&gt;Hello Forum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written a command that replaces the given annotative scale of all objects in a drawing, with another annotative scale. Works great, except I can't remove the replaced annotative scale (with SCALELISTEDIT - DELETE button), unless I save the drawing and then open it again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An annotative scale that is in use, can't be deleted. But since I can delete it after reopening the drawing, I am sure it is not in use anymore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to "refresh" the drawing/database, without reopening it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 30 Jun 2012 11:35:56 GMT</pubDate>
    <dc:creator>Ertqwa</dc:creator>
    <dc:date>2012-06-30T11:35:56Z</dc:date>
    <item>
      <title>Updating drawing/database after modifying it.</title>
      <link>https://forums.autodesk.com/t5/net-forum/updating-drawing-database-after-modifying-it/m-p/3522448#M54795</link>
      <description>&lt;P&gt;Hello Forum,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have written a command that replaces the given annotative scale of all objects in a drawing, with another annotative scale. Works great, except I can't remove the replaced annotative scale (with SCALELISTEDIT - DELETE button), unless I save the drawing and then open it again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An annotative scale that is in use, can't be deleted. But since I can delete it after reopening the drawing, I am sure it is not in use anymore.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to "refresh" the drawing/database, without reopening it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jun 2012 11:35:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/updating-drawing-database-after-modifying-it/m-p/3522448#M54795</guid>
      <dc:creator>Ertqwa</dc:creator>
      <dc:date>2012-06-30T11:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Updating drawing/database after modifying it.</title>
      <link>https://forums.autodesk.com/t5/net-forum/updating-drawing-database-after-modifying-it/m-p/3522776#M54796</link>
      <description>&lt;P&gt;Did you set the Database.Cannoscale property to one of your new scales? I would have thought you could then erase the unused scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have you looked into any of the following posts? Numbers 3 and 4 might be helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Adding a new annotation scale in AutoCAD using .NET:&lt;BR /&gt;&lt;A target="_blank" href="http://through-the-interface.typepad.com/through_the_interface/2007/04/adding_a_new_an.html"&gt;http://through-the-interface.typepad.com/through_the_interface/2007/04/adding_a_new_an.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;2. Making AutoCAD objects annotative using .NET:&lt;BR /&gt;&lt;A target="_blank" href="http://through-the-interface.typepad.com/through_the_interface/2007/04/making_autocad_.html"&gt;http://through-the-interface.typepad.com/through_the_interface/2007/04/making_autocad_.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;3. Deleting unused annotation scales in AutoCAD using .NET:&lt;BR /&gt;&lt;A target="_blank" href="http://through-the-interface.typepad.com/through_the_interface/2008/05/deleting-unused.html"&gt;http://through-the-interface.typepad.com/through_the_interface/2008/05/deleting-unused.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;4. Delete "all but current" Annotation Scales on AutoCAD objects using .NET:&lt;BR /&gt;&lt;A target="_blank" href="http://through-the-interface.typepad.com/through_the_interface/2011/10/delete-all-but-current-annotation-scales-on-autocad-objects-using-net.html"&gt;http://through-the-interface.typepad.com/through_the_interface/2011/10/delete-all-but-current-annotation-scales-on-autocad-objects-using-net.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;5. Using the .NET API to add a scale to a drawing:&lt;BR /&gt;&lt;A target="_blank" href="http://adndevblog.typepad.com/autocad/2012/05/using-the-net-api-to-add-a-scale-to-a-drawing.html"&gt;http://adndevblog.typepad.com/autocad/2012/05/using-the-net-api-to-add-a-scale-to-a-drawing.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;6. Annotation scale being used in Model Space:&lt;BR /&gt;&lt;A target="_blank" href="http://adndevblog.typepad.com/autocad/2012/05/annotation-scale-being-used-in-model-space.html"&gt;http://adndevblog.typepad.com/autocad/2012/05/annotation-scale-being-used-in-model-space.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Art&lt;/P&gt;</description>
      <pubDate>Sun, 01 Jul 2012 17:14:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/updating-drawing-database-after-modifying-it/m-p/3522776#M54796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-01T17:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Updating drawing/database after modifying it.</title>
      <link>https://forums.autodesk.com/t5/net-forum/updating-drawing-database-after-modifying-it/m-p/3525712#M54797</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;yes I am not trying to delete the current annotation scale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've looked at the links (very interesting ty), but haven't found anything yet to solve my problem. I've litterally copied the command from article 3 (Deleting unused annotation scales), and the same problem happens.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- I replace old scale with new scale.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Command from article 3 &lt;STRONG&gt;can not&lt;/STRONG&gt; remove old scale.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Save and reopen.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;- Command from article 3 &lt;STRONG&gt;can&lt;/STRONG&gt; remove old scale.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This does not happen with all drawings and/or annotative scales. Some can be removed without saving and reopening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your response.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jul 2012 20:03:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/updating-drawing-database-after-modifying-it/m-p/3525712#M54797</guid>
      <dc:creator>Ertqwa</dc:creator>
      <dc:date>2012-07-03T20:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Updating drawing/database after modifying it.</title>
      <link>https://forums.autodesk.com/t5/net-forum/updating-drawing-database-after-modifying-it/m-p/3526162#M54798</link>
      <description>I'm not sure how you could refresh the database without programatically closing and reopening the drawing. If you post a sample drawing and code I'd be happy to take a closer look. Art</description>
      <pubDate>Wed, 04 Jul 2012 07:05:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/updating-drawing-database-after-modifying-it/m-p/3526162#M54798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-04T07:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: Updating drawing/database after modifying it.</title>
      <link>https://forums.autodesk.com/t5/net-forum/updating-drawing-database-after-modifying-it/m-p/3528082#M54799</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;try the following to simulate my problem:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Start a new drawing with annoscales: 1:1/1:2/1:4.&lt;/P&gt;&lt;P&gt;Remove everything from the layouts.&lt;/P&gt;&lt;P&gt;Goto modelspace.&lt;BR /&gt;Set annoscale to 1:2.&lt;BR /&gt;Draw a rectangle.&lt;BR /&gt;Fill rectangle with annotative hatch (1:2).&lt;BR /&gt;Create a NON-ANNOTATIVE block from the rectangle+hatch called test.&lt;/P&gt;&lt;P&gt;Set the current annotative scale to 1:4 (IMPORTANT).&lt;BR /&gt;&lt;BR /&gt;Save and reopen the drawing. Now change the current annotative scale&lt;BR /&gt;to 1:1. The scale 1:4 is no longer in use by anything, so you should&lt;BR /&gt;be able to delete it, but you can't.&amp;nbsp;At least, I can't (on 2 different systems with AutoCAD2009).&lt;BR /&gt;&lt;BR /&gt;But If I set the current annotative scale to 1:1, save and reopen, I&lt;BR /&gt;suddenly can remove the 1:4...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2012 19:08:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/updating-drawing-database-after-modifying-it/m-p/3528082#M54799</guid>
      <dc:creator>Ertqwa</dc:creator>
      <dc:date>2012-07-05T19:08:11Z</dc:date>
    </item>
    <item>
      <title>Re: Updating drawing/database after modifying it.</title>
      <link>https://forums.autodesk.com/t5/net-forum/updating-drawing-database-after-modifying-it/m-p/3531080#M54800</link>
      <description>&lt;P&gt;I see what you mean. This appears to me to be an internal&amp;nbsp;AutoCAD issue (perhaps even a&amp;nbsp;bug) rather than an issue with the .NET API. Sorry I can't think of anything to help you with this one.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Jul 2012 13:30:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/updating-drawing-database-after-modifying-it/m-p/3531080#M54800</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-07-09T13:30:57Z</dc:date>
    </item>
  </channel>
</rss>

