<?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 calculate distance between 2 points using COM Interop in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861028#M62572</link>
    <description>&lt;P&gt;Well but where would I import the Geometry namespace from? I don't see it as being part of the COM Interop? I've heard it's not a good idea (or good programming practice) to mix Interop and the API and that is an API DLL if I'm not mistaken.&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2010 23:13:12 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-12-20T23:13:12Z</dc:date>
    <item>
      <title>How to calculate distance between 2 points using COM Interop</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861008#M62570</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm an advanced .Net developer but not very familiar with AutoCAD. I am developing an application that uses AutoCAD 2011 to check for some standards and I'm having trouble calculating the distance between 2 points using the .Net COM Interop. Here's the VBA line of code that I am migrating:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If Distance(tmpPt, LL_Pt) &amp;lt; 1# Then&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2010 22:52:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861008#M62570</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-20T22:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate distance between 2 points using COM Interop</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861016#M62571</link>
      <description>&lt;P&gt;your points need to be gotten from the entities and cast into point3d objects.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Autodesk.AutoCAD.Geometry.Point3D&lt;/P&gt;&lt;P&gt;then you can use point3DA.distanceTo(point3dB):&lt;/P&gt;&lt;P&gt;Distance = tempPoint.DistanceTo(TestPoint)&lt;/P&gt;&lt;P&gt;The entity has to be gotten from a transaction..., so how much do you know about ACAD .Net programming?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jvj&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2010 22:58:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861016#M62571</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-20T22:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate distance between 2 points using COM Interop</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861028#M62572</link>
      <description>&lt;P&gt;Well but where would I import the Geometry namespace from? I don't see it as being part of the COM Interop? I've heard it's not a good idea (or good programming practice) to mix Interop and the API and that is an API DLL if I'm not mistaken.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2010 23:13:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861028#M62572</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-20T23:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate distance between 2 points using COM Interop</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861066#M62573</link>
      <description>&lt;P&gt;Your talking com interop... That's not going to be very wise.&amp;nbsp; Because&amp;nbsp;... Microsoft to Autodesk said no more 32bit api's.&amp;nbsp; So Autodesk to the rest of us said no more VBA (6.0).&amp;nbsp; That effectively kills Com interop, unless you want to wrap your own in a sweet little DLL.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Enough of that.&amp;nbsp; Let's back up.&amp;nbsp; Who is using this program?&amp;nbsp; Will it run inside or outside of AutoCAD (primarilly)?&amp;nbsp; If you are a savvy .Net developer, then I fully recommend getting into it via the .net dlls (acmgd.dll, acdbmdg.dll) found in the root folder of AutoCAD with the acad.exe file.&amp;nbsp; Much more support for that path, and a longer life time too.&amp;nbsp; Goto Autodesk website and look for developers section ("Partner with Autodesk") and look at AutoCAD product, then get your hands on ObjectARX developer's guide.&amp;nbsp; It has all the stuff for ObjectARX (lowest level C++) and its .Net wrapper (C#, and VB.net).&lt;/P&gt;&lt;P&gt;Also there is an online .Net guide for beginning with AutoCAD development.&lt;/P&gt;&lt;P&gt;&lt;A rel="nofollow" target="_blank" href="http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html"&gt;http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To sum up your code you must learn to:&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#2b91af" face="Consolas"&gt;&lt;FONT size="2" color="#2b91af" face="Consolas"&gt;&lt;FONT size="2" color="#2b91af" face="Consolas"&gt;CommandMethod&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" color="#a31515" face="Consolas"&gt;&lt;FONT size="2" color="#a31515" face="Consolas"&gt;&lt;FONT size="2" color="#a31515" face="Consolas"&gt;"MyDocumentScruitinizer"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT size="2" face="Consolas"&gt;&lt;FONT size="2" face="Consolas"&gt;)&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;public sub:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Get the application (MDIActiveDocument, had to rename my namespace to AApplication)&lt;/P&gt;&lt;P&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="2" color="#0000ff" face="Consolas"&gt;&lt;FONT size="1" face="arial,helvetica,sans-serif"&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Get the document&lt;/P&gt;&lt;P&gt;&lt;FONT size="1" face="arial,helvetica,sans-serif"&gt;doc &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;Document&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; = &lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;AApplication&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;.DocumentManager.MdiActiveDocument&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;get the database&lt;/P&gt;&lt;P&gt;&amp;nbsp;Dim&lt;/P&gt;&lt;P&gt;&lt;FONT size="1" face="arial,helvetica,sans-serif"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&amp;nbsp;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; db &lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;&lt;FONT color="#0000ff"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;&lt;FONT color="#2b91af"&gt;Database&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; = doc.Database&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;start a transaction (Using trans as transaction = db.transactionmanager.starttransaction)&lt;/P&gt;&lt;P&gt;&amp;nbsp; get youre entity from the database:&lt;/P&gt;&lt;P&gt;&amp;nbsp; block table to&lt;/P&gt;&lt;P&gt;&amp;nbsp; block table record to&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; list of object ids through&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; entity = transaction.getobject(objectid,open for read)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do your math here.&lt;/P&gt;&lt;P&gt;&amp;nbsp; trans.commit (IF YOU WANT TO CHANGE SOMETHING)&lt;/P&gt;&lt;P&gt;&amp;nbsp;END USING (trans)(unless you want to crash AutoCAD)&lt;/P&gt;&lt;P&gt;end sub.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;good luck with all that!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jvj&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;check my posts out, I tend to give out fully functional code bits.&amp;nbsp; (also check out "JamieVJohnson")&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2010 00:01:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861066#M62573</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-21T00:01:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate distance between 2 points using COM Interop</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861070#M62574</link>
      <description>&lt;P&gt;Thanks Jamie. Now, correct me if I'm wrong, but if what I'm doing (which is a .Net application that processes a batch of .dwg files to check for certain settings) will be used outside of AutoCAD, I have no choice but to either use the COM Interop or do a DLL using the API and then using the COM Interop do a Netload of that DLL and then execute a command in it. Am I completely missing the point here, can I actually use the .Net API to control AutoCAD from outside the application? (So far I've only done it as a compiled DLL that gets loaded through neload)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Really appreciate your help!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2010 00:08:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861070#M62574</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-21T00:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate distance between 2 points using COM Interop</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861096#M62575</link>
      <description>&lt;P&gt;There is support for using .net OUTSIDE of the running app.&amp;nbsp; (i've never done it.)&amp;nbsp; Look around in here, and you'll find it.&amp;nbsp; I believe the keyword is Real-DWG development ($$$).&amp;nbsp; The major problem is it takes AutoCAD's engine to interpret what the dlls are asking.&amp;nbsp; That hasn't stopped other developers, and if I needed to I would have learned all about it by now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Correction, I have done the basics of what you ask.&amp;nbsp; If you have a computer that has AutoCAD Installed.&amp;nbsp; You can register your .net app (as an automatically running application when autoCAD starts)&amp;nbsp;then run the commands you desire after you create, or hook into a running AutoCAD instance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or, After AutoCAD starts, have IT hook into a service you created outside of the program, then make majic happen.&amp;nbsp; Still you need to define commands within AutoCAD (your custom dll) to make things move.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jvj&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2010 00:30:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861096#M62575</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-21T00:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate distance between 2 points using COM Interop</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861106#M62576</link>
      <description>&lt;P&gt;Jamie, I'm not sure I understand your correction, you mean that you still have to compile a DLL and put it inside AutoCAD, right? That is my problem since I need the results of several tests so that would mean writing to somewhere (probably a DB) and then getting those if I don't use the COM Interop.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I guess going back to my original question, if I wanted to calculate the distance between 2 points using COM Interop how would I do it? I've been able to do everything else besides that so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW, can I email or IM you (might be faster! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; )&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2010 00:35:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861106#M62576</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-21T00:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate distance between 2 points using COM Interop</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861116#M62577</link>
      <description>&lt;P&gt;still need the ACAD engine running.&amp;nbsp; or a dwg file reader.&amp;nbsp; the dll can be installed, automatically (writing to windows registry), As for the rest, see if there is any info in the VBA group (i worked in that group 4 years ago, but forgot much).&amp;nbsp; Going home...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jvj&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2010 00:45:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861116#M62577</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-21T00:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate distance between 2 points using COM Interop</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861564#M62578</link>
      <description>&lt;P&gt;&amp;lt;quote&amp;gt;&lt;/P&gt;&lt;P&gt;Your talking com interop... That's not going to be very wise.&amp;nbsp; Because&amp;nbsp;... Microsoft to Autodesk said no more 32bit api's.&amp;nbsp; So Autodesk to the rest of us said no more VBA (6.0).&amp;nbsp; That effectively kills Com interop, unless you want to wrap your own in a sweet little DLL.&lt;/P&gt;&lt;P&gt;&amp;lt;/quote&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is incorrect. I think you are confusing Acad's COM API with VBA. VBA is not supported in 64-bit AutoCAD because of MS' decision on VBA, but AutoCAD's COM API is still there, well and alive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using COM API inside AutoCAD's managed DLL project is legitimate (well, it tends to be abused/overused when someone try to convert VBA app to managed DLL app), while for out-process exe app to automate AutoCAD, COM API is the only choice, which, it seems, is what the OP is doing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To OP: calculating distance between 2 points is really a very basic math. While Point3d struct in AutoCAD managed API provided a ready to use method Point3d.DistanceTo(), you can easily calculate it (based on welknown formula&amp;nbsp;c^2=a^2+b^2):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;double dis=Math.Sqrt((X_poin2-X_poin1)*(X_poin2-X_poin1) + (Y_poin2-Y_poin1)*(Y_poin2-Y_poin1));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2010 15:06:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861564#M62578</guid>
      <dc:creator>norman.yuan</dc:creator>
      <dc:date>2010-12-21T15:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate distance between 2 points using COM Interop</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861790#M62579</link>
      <description>&lt;P&gt;Thanks Norman, that's exactly what I implemented and seems to work fine!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2010 18:00:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861790#M62579</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-21T18:00:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate distance between 2 points using COM Interop</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861950#M62580</link>
      <description>&lt;P&gt;Maybe I shed a little more light, or at least gain some insight into your software process.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unless you are running RealDWG or a similar DWG file reader you will have a running session of AutoCAD, no matter how you cut it.&amp;nbsp; DLL, COM from external EXE, COM from internal DLL, whatever.&amp;nbsp; That *usually* means the best way of running automation is to create a .NET DLL that gets loaded into AutoCAD, which gives you quite a bit more access in the bargain.&amp;nbsp; You also don't have to worry about which session of AutoCAD is connected to (my users usually have a couple on the go at any given time), which version it is, whether it needs to be "hidden" from the user, and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, you say you "need the results of several tests", across several drawings, yes?&amp;nbsp; Working across multiple drawings doesn't require you to do the work outside of AutoCAD (not sure if you realise this, just making sure).&amp;nbsp; In fact I think its easier to do this from inside AutoCAD in the first place.&amp;nbsp; No database, text file, or other external storage required.&amp;nbsp; The general process would be to loop over a list of file names (possibly opening them, possibly just loading the database) and pass each&amp;nbsp;filename (or the active&amp;nbsp;drawing if they are being opened)&amp;nbsp;to a function which does your calculation.&amp;nbsp; The return value of the function can be&amp;nbsp;stored in memory using an&amp;nbsp;array, List (my favorite), or more complicated structure depending on how much information is returned.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2010 19:33:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861950#M62580</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2010-12-21T19:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate distance between 2 points using COM Interop</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861968#M62581</link>
      <description>&lt;P&gt;Thanks, now, is it possible to have the full power of .Net, meaning Windows Forms, WPF, access to Office and such from inside the AutoCAD DLL? Because that would be what I need.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2010 19:42:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861968#M62581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-21T19:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate distance between 2 points using COM Interop</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861974#M62582</link>
      <description>&lt;P&gt;Think less of Inside, and more like Beside.&amp;nbsp; AutoCAD will run any .net program you ask it too.&amp;nbsp; You can pop open windows that:&lt;/P&gt;&lt;P&gt;1. Float freely independant of AutoCAD's engine (form.open, window.open)&lt;/P&gt;&lt;P&gt;2. Float dialog windows, that make AutoCAD wait on you.&amp;nbsp; (read up on Document.Lock here)&lt;/P&gt;&lt;P&gt;3. Dock a window into an AutoCAD Palette (think tool palettes,&amp;nbsp;properties palettes, and the layer palette). as a user control.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your program can choose to use/not use AutoCAD within your program&amp;nbsp;at your own whim.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;jvj&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2010 19:47:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2861974#M62582</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-21T19:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to calculate distance between 2 points using COM Interop</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2862254#M62583</link>
      <description>&lt;P&gt;Yes, you can have all that, and more.&amp;nbsp;&amp;nbsp;Working in .NET is&amp;nbsp;a lot less linear than VBA or LSP, so it can be a bit of a conceptual "jump" to get your head around handling modeless forms, palettes (haven't even *started* looking into those yet), modular construction, iterating through documents, and the like.&amp;nbsp; Its one of the reasons I recommend keeping it all in the DLL -&amp;nbsp;its one less thing that can go wrong.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Dec 2010 22:09:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-calculate-distance-between-2-points-using-com-interop/m-p/2862254#M62583</guid>
      <dc:creator>dgorsman</dc:creator>
      <dc:date>2010-12-21T22:09:16Z</dc:date>
    </item>
  </channel>
</rss>

