<?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: Add annotative scale via COM in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/add-annotative-scale-via-com/m-p/2476909#M70829</link>
    <description>Why do you want to do it via COM?&lt;BR /&gt;
&lt;BR /&gt;
Having asked that you may getter a better response by posting it as a VBA question in the relevant group and if you get a response there converting it to .NET.&lt;BR /&gt;
&lt;BR /&gt;
Regards - Nathan</description>
    <pubDate>Tue, 28 Apr 2009 11:37:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2009-04-28T11:37:59Z</dc:date>
    <item>
      <title>Add annotative scale via COM</title>
      <link>https://forums.autodesk.com/t5/net-forum/add-annotative-scale-via-com/m-p/2476908#M70828</link>
      <description>I want to add an annotative scale (for example 1:20) to my dimension(s) in ModelSpace.&lt;BR /&gt;
&lt;BR /&gt;
I have seen an example how to do this with ObjectARX by Kean Walmsley: "Making AutoCAD objects annotative using .NET"&lt;BR /&gt;
(http://through-the-interface.typepad.com/through_the_interface/2007/04/making_autocad_.html)&lt;BR /&gt;
&lt;BR /&gt;
But I want to do the exact same thing via .Net COM...&lt;BR /&gt;
&lt;BR /&gt;
Any insight is highly appreciated!</description>
      <pubDate>Tue, 28 Apr 2009 08:41:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/add-annotative-scale-via-com/m-p/2476908#M70828</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-28T08:41:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add annotative scale via COM</title>
      <link>https://forums.autodesk.com/t5/net-forum/add-annotative-scale-via-com/m-p/2476909#M70829</link>
      <description>Why do you want to do it via COM?&lt;BR /&gt;
&lt;BR /&gt;
Having asked that you may getter a better response by posting it as a VBA question in the relevant group and if you get a response there converting it to .NET.&lt;BR /&gt;
&lt;BR /&gt;
Regards - Nathan</description>
      <pubDate>Tue, 28 Apr 2009 11:37:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/add-annotative-scale-via-com/m-p/2476909#M70829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-28T11:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add annotative scale via COM</title>
      <link>https://forums.autodesk.com/t5/net-forum/add-annotative-scale-via-com/m-p/2476910#M70830</link>
      <description>Hi Nathan,&lt;BR /&gt;
&lt;BR /&gt;
Why via COM? By using MS Excel, I have created a configurator which...&lt;BR /&gt;
&lt;BR /&gt;
1) ...starts AutoCAD if it's not running...&lt;BR /&gt;
2) ...starts a new drawing from a specific template&lt;BR /&gt;
3) ...copies Dynamic Blocks from a library drawing to the new drawing&lt;BR /&gt;
4) ...inserts those Dynamic Blocks in ModelSpace at specific coordinates&lt;BR /&gt;
5) ...modifies the Dynamic Properties of those Dynamic Blocks (adjusting width and height)&lt;BR /&gt;
6) ...adds dimensions (at scale 1:1) at the proper locations in ModelSpace&lt;BR /&gt;
7) ...creates ViewPorts in PaperSpace, looking at the right positions in ModelSpace&lt;BR /&gt;
8) ...adds Notes, Leaders, etc. to PaperSpace&lt;BR /&gt;
9) ...changes the attributes of the Title Block&lt;BR /&gt;
10) ...plots the drawing to PDF&lt;BR /&gt;
11) ...saves the drawing as a DXF (or DWG) to the network&lt;BR /&gt;
&lt;BR /&gt;
All is working, except for two things:&lt;BR /&gt;
&lt;BR /&gt;
A) Adding an Annotative Scale&lt;BR /&gt;
&lt;BR /&gt;
The scale of the 'main view' depends on the size of our construction (either the height or the width drives the scale of the 'main view'). For example, a small construction will result in a scale of 1:10, but larger construction will result in a scale of 1:20 (or 1:40 r 1:50, etc). The main dimensions which I show in that 'main view' must have the corresponding annotative scale.&lt;BR /&gt;
&lt;BR /&gt;
With ObjectARX, I can add the annotative scale to my dimensions, but I want to automate AutoCAD from Excel.&lt;BR /&gt;
&lt;BR /&gt;
If only I could 'access' the custom commands which the ObjectARX adds to AutoCAD...(but I don't know how)&lt;BR /&gt;
&lt;BR /&gt;
B) Hatches&lt;BR /&gt;
&lt;BR /&gt;
The hatching of my Dynamic Block is not correctly generated, and it refuses to update. I have tried (with code) Regen, Update, going into MSpace of the ViewPort and perform an update/regen...nothing happens! If I activate the ViewPort by hand and perform a regen...the hatch updates just fine. Go figure...&lt;BR /&gt;
&lt;BR /&gt;
As for the VBA, I already had  started topcic here: http://discussion.autodesk.com/forums/thread.jspa?threadID=724758&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
Teun</description>
      <pubDate>Wed, 29 Apr 2009 06:19:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/add-annotative-scale-via-com/m-p/2476910#M70830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2009-04-29T06:19:47Z</dc:date>
    </item>
  </channel>
</rss>

