<?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: DatabaseServices ReadDwgFile in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676600#M81368</link>
    <description>From my understanding now.... is that you can still do what you have done &lt;BR /&gt;
before through the com object (i guess that is what I was trying to get &lt;BR /&gt;
clarified before I continue learning with .net).  I would guess that I will &lt;BR /&gt;
not be able to take advantage of some of the exposed functions in arx/.net &lt;BR /&gt;
by using the dbx/com object but it will work for my purposes.  Someone &lt;BR /&gt;
please tell me if I am wrong before I continue further with .net and &lt;BR /&gt;
autocad.  I will stick it out with VB6 if I have to.&lt;BR /&gt;
&lt;BR /&gt;
I fell the RealDWG license is unnessesary also.  I think the dwg format &lt;BR /&gt;
should have full *free* api (from autodesk) for manipulating the files and &lt;BR /&gt;
reading the format.  Too many people rely on the format for archiving and &lt;BR /&gt;
storage.  If there where no opensource sdks for jpeg and png writting then I &lt;BR /&gt;
would bet money that most people would not store there photos with it.  It &lt;BR /&gt;
is an extra bit of security to have the ability to utilize a format without &lt;BR /&gt;
contracts or licensing.  I know the gif made allot of web designers nervous &lt;BR /&gt;
before the patent term expired (to this day most open source software will &lt;BR /&gt;
not write to it without adding the ability yourself).&lt;BR /&gt;
&lt;BR /&gt;
I do not think that you have to pay for a RealDWG license.... last I checked &lt;BR /&gt;
in 2005 (you may have to be part of the adn, which comes with a subscription &lt;BR /&gt;
fee).  Autodesk does want you to fill out paperwork and submit a business &lt;BR /&gt;
plan/model for why and your plans with the technology.  I personally would &lt;BR /&gt;
not share my business plan with anyone other than to seek venture capitol &lt;BR /&gt;
and prospective clients.  Add to that the fact that my programming skills &lt;BR /&gt;
with arx/.net is still in learning / personal utilities, and not production. &lt;BR /&gt;
I figure there are allot of people in my same boat who would love to explore &lt;BR /&gt;
the technology of RealDwg but will find it not worth the hassle.  Plus to be &lt;BR /&gt;
perfectly honest I would probably use the RealDWG technology create a better &lt;BR /&gt;
drawing port to blender or gimp.  Something that would probably not please &lt;BR /&gt;
autodesk..... and I would doubt getting a license.&lt;BR /&gt;
&lt;BR /&gt;
The only alternative is the opened libraries but you have to pay for them. &lt;BR /&gt;
You have to pay allot.  I have always wondered if it was possible to use the &lt;BR /&gt;
opened libraries by installing the software that uses it like intellicad.  I &lt;BR /&gt;
have never tried.&lt;BR /&gt;
&lt;BR /&gt;
Good luck&lt;BR /&gt;
--&lt;BR /&gt;
CB&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Mark Johnston" &lt;MARKJOHNSTON&gt; wrote in message &lt;BR /&gt;
news:5209079@discussion.autodesk.com...&lt;BR /&gt;
So could I create an app that uses the managed wrappers to:&lt;BR /&gt;
1. Start the AutoCAD application (hopefully without displaying it)&lt;BR /&gt;
2. Use DatabaseServices to quickly read a drawing without displaying it&lt;BR /&gt;
3. Close AutoCAD&lt;BR /&gt;
&lt;BR /&gt;
Our AutoCAD users only use the program for about 50% of the workday but they&lt;BR /&gt;
want access to the data in the drawings at any given time. Starting the&lt;BR /&gt;
AutoCAD editor just to read a piece of data out of a drawing seems like a&lt;BR /&gt;
tremendous waste of time and resources.&lt;BR /&gt;
&lt;BR /&gt;
ObjectDBX did this for us in the past but the ability to do that has been&lt;BR /&gt;
removed with more current versions. I don't understand that. I understand&lt;BR /&gt;
promoting RealDWG for those that want to work with drawing files WITHOUT&lt;BR /&gt;
having AutoCAD. That is a great idea. Why though, should I have to pay for&lt;BR /&gt;
RealDWG when I have already paid for full-blown AutoCAD?&lt;BR /&gt;
&lt;BR /&gt;
(sorry for the rant, they took away one of my favorite toys)&lt;BR /&gt;
&lt;BR /&gt;
"J. Daniel Smith" &lt;J_DANIEL_SMITH&gt; wrote in message&lt;BR /&gt;
news:5208851@discussion.autodesk.com...&lt;BR /&gt;
Yes, .NET interacts very well with COM.  Depending on the particulars of the&lt;BR /&gt;
COM API (Office, for example), VB.NET may be a little easier than C#.&lt;BR /&gt;
&lt;BR /&gt;
The AutoCAD COM automatation API is completely different from the managed&lt;BR /&gt;
wrappers, even though you can use either one from the same .NET language.&lt;BR /&gt;
The .NET wrappers can only be used in one of two situtations: 1) in-process&lt;BR /&gt;
with AutoCAD, loading a "managed ARX", or 2) (uncommon) out-of-process in&lt;BR /&gt;
conjunction with RealDWG (aka ObjectDBX).&lt;BR /&gt;
&lt;BR /&gt;
   Dan&lt;BR /&gt;
&lt;BR /&gt;
"CB" &lt;SPAMFILTER&gt; wrote in message&lt;BR /&gt;
news:5208748@discussion.autodesk.com...&lt;BR /&gt;
Can you access the com object model through .net?  Ultimately I am trying to&lt;BR /&gt;
figure out if it is possible to program an interface in .net that mimics&lt;BR /&gt;
Eagle point software.  I want to be able to open the app outside of AutoCAD&lt;BR /&gt;
and manipulate the currently opened drawing.  I understand that you will&lt;BR /&gt;
need realDWG if autocad is not going to be loaded.... but if autocad is on&lt;BR /&gt;
the client machine will .net have the ability to silently open or use the&lt;BR /&gt;
currently open dwg and perform some drawing manipulation.  I have done this&lt;BR /&gt;
with dbx and VB6 but I have decided to switch to c# and I am finding it&lt;BR /&gt;
difficult to get an answer to this question.  I am still very new to .net&lt;BR /&gt;
and was wondering if it is possible without spending time hacking away at&lt;BR /&gt;
the object model for myself.&lt;BR /&gt;
Thanks&lt;BR /&gt;
--&lt;BR /&gt;
CB&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;MICK duprez=""&gt; wrote in message news:5208394@discussion.autodesk.com...&lt;BR /&gt;
You can only use the managed wrappers from 'inside' autocad (the same as&lt;BR /&gt;
arx) ie. a dll loaded into acad at runtime. If you want to do this without&lt;BR /&gt;
AutoCAD you will have to use the COM/dbx interface.&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Mick.&lt;/MICK&gt;&lt;/SPAMFILTER&gt;&lt;/J_DANIEL_SMITH&gt;&lt;/MARKJOHNSTON&gt;</description>
    <pubDate>Fri, 16 Jun 2006 17:34:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-06-16T17:34:36Z</dc:date>
    <item>
      <title>DatabaseServices ReadDwgFile</title>
      <link>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676590#M81358</link>
      <description>I am trying to open a drawing file without opening AutoCAD.&lt;BR /&gt;
I do have AutoCAD properly installed on the computer.&lt;BR /&gt;
&lt;BR /&gt;
I understood from a post here that the DatabaseServices library to do this.&lt;BR /&gt;
&lt;BR /&gt;
I added a reference to acdbmgd.dll.&lt;BR /&gt;
&lt;BR /&gt;
I tried this:&lt;BR /&gt;
// declaration&lt;BR /&gt;
using Autodesk.AutoCAD.DatabaseServices;&lt;BR /&gt;
&lt;BR /&gt;
// in my procedure&lt;BR /&gt;
Database thisdrawing = new Database(false, true);&lt;BR /&gt;
thisdrawing.ReadDwgFile(@"C:\1114-12.dwg", System.IO.FileShare.None, false, &lt;BR /&gt;
null);&lt;BR /&gt;
System.Windows.Forms.MessageBox.Show(thisdrawing.Filename);&lt;BR /&gt;
&lt;BR /&gt;
---&lt;BR /&gt;
I get this error.&lt;BR /&gt;
&lt;BR /&gt;
System.AccessViolationException was unhandled&lt;BR /&gt;
  Message="Attempted to read or write protected memory. This is often an &lt;BR /&gt;
indication that other memory is corrupt."&lt;BR /&gt;
  Source="acdbmgd"&lt;BR /&gt;
  StackTrace:&lt;BR /&gt;
       at AcDbDatabase.{ctor}(AcDbDatabase* , Boolean , Boolean )&lt;BR /&gt;
       at Autodesk.AutoCAD.DatabaseServices.Database..ctor(Boolean &lt;BR /&gt;
buildDefaultDrawing, Boolean noDocument)&lt;BR /&gt;
&lt;BR /&gt;
Can anybody help me along?</description>
      <pubDate>Thu, 15 Jun 2006 16:45:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676590#M81358</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-15T16:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: DatabaseServices ReadDwgFile</title>
      <link>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676591#M81359</link>
      <description>I didn't know you could</description>
      <pubDate>Thu, 15 Jun 2006 19:31:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676591#M81359</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-15T19:31:34Z</dc:date>
    </item>
    <item>
      <title>Re: DatabaseServices ReadDwgFile</title>
      <link>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676592#M81360</link>
      <description>I read it in this post.&lt;BR /&gt;
I hope Mr. Jones doesn't mind my copying it here. I could figure out how to &lt;BR /&gt;
add a link to his actual post.&lt;BR /&gt;
&lt;BR /&gt;
---QUOTE---&lt;BR /&gt;
//Create a database&lt;BR /&gt;
Database tempDb = new Database(true, false);&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
//Get a database from a file &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
public Database GetDatabaseFromFile(string fileName)&lt;BR /&gt;
{&lt;BR /&gt;
    Database databaseFromFile = new Database(false, true);&lt;BR /&gt;
    databaseFromFile.ReadDwgFile(fileName, System.IO.FileShare.None, false,&lt;BR /&gt;
null);&lt;BR /&gt;
    return databaseFromFile;&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
Remember that you must Dispose of any database that you create when you are&lt;BR /&gt;
done with it.&lt;BR /&gt;
-- &lt;BR /&gt;
Bobby C. Jones&lt;BR /&gt;
---END QUOTE---&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Stuart Nathan" &lt;STUART.NATHAN&gt; wrote in message &lt;BR /&gt;
news:5207994@discussion.autodesk.com...&lt;BR /&gt;
I didn't know you could&lt;/STUART.NATHAN&gt;</description>
      <pubDate>Thu, 15 Jun 2006 20:12:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676592#M81360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-15T20:12:03Z</dc:date>
    </item>
    <item>
      <title>Re: DatabaseServices ReadDwgFile</title>
      <link>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676593#M81361</link>
      <description>"I could figure out how to add a link to his actual post."&lt;BR /&gt;
&lt;BR /&gt;
Go to the web version, copy the url, and paste it into your post.&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
----&lt;BR /&gt;
Ed&lt;BR /&gt;
----</description>
      <pubDate>Thu, 15 Jun 2006 20:31:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676593#M81361</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-15T20:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: DatabaseServices ReadDwgFile</title>
      <link>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676594#M81362</link>
      <description>So you can or can't.  Where you able to access the drawing?  Can .net be &lt;BR /&gt;
used to create a third party app (outside of autocad namespace) while the &lt;BR /&gt;
drawing is open on or off screen?&lt;BR /&gt;
--&lt;BR /&gt;
CB&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Stuart Nathan" &lt;STUART.NATHAN&gt; wrote in message &lt;BR /&gt;
news:5207994@discussion.autodesk.com...&lt;BR /&gt;
I didn't know you could&lt;/STUART.NATHAN&gt;</description>
      <pubDate>Fri, 16 Jun 2006 01:00:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676594#M81362</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-16T01:00:55Z</dc:date>
    </item>
    <item>
      <title>Re: DatabaseServices ReadDwgFile</title>
      <link>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676595#M81363</link>
      <description>You can only use the managed wrappers from 'inside' autocad (the same as arx) ie. a dll loaded into acad at runtime. If you want to do this without AutoCAD you will have to use the COM/dbx interface.&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Mick.</description>
      <pubDate>Fri, 16 Jun 2006 01:16:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676595#M81363</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-16T01:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: DatabaseServices ReadDwgFile</title>
      <link>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676596#M81364</link>
      <description>Can you access the com object model through .net?  Ultimately I am trying to &lt;BR /&gt;
figure out if it is possible to program an interface in .net that mimics &lt;BR /&gt;
Eagle point software.  I want to be able to open the app outside of AutoCAD &lt;BR /&gt;
and manipulate the currently opened drawing.  I understand that you will &lt;BR /&gt;
need realDWG if autocad is not going to be loaded.... but if autocad is on &lt;BR /&gt;
the client machine will .net have the ability to silently open or use the &lt;BR /&gt;
currently open dwg and perform some drawing manipulation.  I have done this &lt;BR /&gt;
with dbx and VB6 but I have decided to switch to c# and I am finding it &lt;BR /&gt;
difficult to get an answer to this question.  I am still very new to .net &lt;BR /&gt;
and was wondering if it is possible without spending time hacking away at &lt;BR /&gt;
the object model for myself.&lt;BR /&gt;
Thanks&lt;BR /&gt;
--&lt;BR /&gt;
CB&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;MICK duprez=""&gt; wrote in message news:5208394@discussion.autodesk.com...&lt;BR /&gt;
You can only use the managed wrappers from 'inside' autocad (the same as &lt;BR /&gt;
arx) ie. a dll loaded into acad at runtime. If you want to do this without &lt;BR /&gt;
AutoCAD you will have to use the COM/dbx interface.&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Mick.&lt;/MICK&gt;</description>
      <pubDate>Fri, 16 Jun 2006 13:04:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676596#M81364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-16T13:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: DatabaseServices ReadDwgFile</title>
      <link>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676597#M81365</link>
      <description>Yes, .NET interacts very well with COM.  Depending on the particulars of the &lt;BR /&gt;
COM API (Office, for example), VB.NET may be a little easier than C#.&lt;BR /&gt;
&lt;BR /&gt;
The AutoCAD COM automatation API is completely different from the managed &lt;BR /&gt;
wrappers, even though you can use either one from the same .NET language. &lt;BR /&gt;
The .NET wrappers can only be used in one of two situtations: 1) in-process &lt;BR /&gt;
with AutoCAD, loading a "managed ARX", or 2) (uncommon) out-of-process in &lt;BR /&gt;
conjunction with RealDWG (aka ObjectDBX).&lt;BR /&gt;
&lt;BR /&gt;
   Dan&lt;BR /&gt;
&lt;BR /&gt;
"CB" &lt;SPAMFILTER&gt; wrote in message &lt;BR /&gt;
news:5208748@discussion.autodesk.com...&lt;BR /&gt;
Can you access the com object model through .net?  Ultimately I am trying to&lt;BR /&gt;
figure out if it is possible to program an interface in .net that mimics&lt;BR /&gt;
Eagle point software.  I want to be able to open the app outside of AutoCAD&lt;BR /&gt;
and manipulate the currently opened drawing.  I understand that you will&lt;BR /&gt;
need realDWG if autocad is not going to be loaded.... but if autocad is on&lt;BR /&gt;
the client machine will .net have the ability to silently open or use the&lt;BR /&gt;
currently open dwg and perform some drawing manipulation.  I have done this&lt;BR /&gt;
with dbx and VB6 but I have decided to switch to c# and I am finding it&lt;BR /&gt;
difficult to get an answer to this question.  I am still very new to .net&lt;BR /&gt;
and was wondering if it is possible without spending time hacking away at&lt;BR /&gt;
the object model for myself.&lt;BR /&gt;
Thanks&lt;BR /&gt;
--&lt;BR /&gt;
CB&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;MICK duprez=""&gt; wrote in message news:5208394@discussion.autodesk.com...&lt;BR /&gt;
You can only use the managed wrappers from 'inside' autocad (the same as&lt;BR /&gt;
arx) ie. a dll loaded into acad at runtime. If you want to do this without&lt;BR /&gt;
AutoCAD you will have to use the COM/dbx interface.&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Mick.&lt;/MICK&gt;&lt;/SPAMFILTER&gt;</description>
      <pubDate>Fri, 16 Jun 2006 13:56:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676597#M81365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-16T13:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: DatabaseServices ReadDwgFile</title>
      <link>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676598#M81366</link>
      <description>Thanks.  I guess I will have to use the limitations of the com object model &lt;BR /&gt;
for out-of-process programming with AutoCAD if I do not want to go through &lt;BR /&gt;
any hassle of obtaining a realdwg license.&lt;BR /&gt;
&lt;BR /&gt;
You are right on about vb.net being easier coming from a background in VB. &lt;BR /&gt;
I was able to pickup vb.net fairly fast but I like the code structure with &lt;BR /&gt;
c#.&lt;BR /&gt;
Thanks again&lt;BR /&gt;
--&lt;BR /&gt;
CB&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"J. Daniel Smith" &lt;J_DANIEL_SMITH&gt; wrote in message &lt;BR /&gt;
news:5208851@discussion.autodesk.com...&lt;BR /&gt;
Yes, .NET interacts very well with COM.  Depending on the particulars of the&lt;BR /&gt;
COM API (Office, for example), VB.NET may be a little easier than C#.&lt;BR /&gt;
&lt;BR /&gt;
The AutoCAD COM automatation API is completely different from the managed&lt;BR /&gt;
wrappers, even though you can use either one from the same .NET language.&lt;BR /&gt;
The .NET wrappers can only be used in one of two situtations: 1) in-process&lt;BR /&gt;
with AutoCAD, loading a "managed ARX", or 2) (uncommon) out-of-process in&lt;BR /&gt;
conjunction with RealDWG (aka ObjectDBX).&lt;BR /&gt;
&lt;BR /&gt;
   Dan&lt;BR /&gt;
&lt;BR /&gt;
"CB" &lt;SPAMFILTER&gt; wrote in message&lt;BR /&gt;
news:5208748@discussion.autodesk.com...&lt;BR /&gt;
Can you access the com object model through .net?  Ultimately I am trying to&lt;BR /&gt;
figure out if it is possible to program an interface in .net that mimics&lt;BR /&gt;
Eagle point software.  I want to be able to open the app outside of AutoCAD&lt;BR /&gt;
and manipulate the currently opened drawing.  I understand that you will&lt;BR /&gt;
need realDWG if autocad is not going to be loaded.... but if autocad is on&lt;BR /&gt;
the client machine will .net have the ability to silently open or use the&lt;BR /&gt;
currently open dwg and perform some drawing manipulation.  I have done this&lt;BR /&gt;
with dbx and VB6 but I have decided to switch to c# and I am finding it&lt;BR /&gt;
difficult to get an answer to this question.  I am still very new to .net&lt;BR /&gt;
and was wondering if it is possible without spending time hacking away at&lt;BR /&gt;
the object model for myself.&lt;BR /&gt;
Thanks&lt;BR /&gt;
--&lt;BR /&gt;
CB&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;MICK duprez=""&gt; wrote in message news:5208394@discussion.autodesk.com...&lt;BR /&gt;
You can only use the managed wrappers from 'inside' autocad (the same as&lt;BR /&gt;
arx) ie. a dll loaded into acad at runtime. If you want to do this without&lt;BR /&gt;
AutoCAD you will have to use the COM/dbx interface.&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Mick.&lt;/MICK&gt;&lt;/SPAMFILTER&gt;&lt;/J_DANIEL_SMITH&gt;</description>
      <pubDate>Fri, 16 Jun 2006 14:56:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676598#M81366</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-16T14:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: DatabaseServices ReadDwgFile</title>
      <link>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676599#M81367</link>
      <description>So could I create an app that uses the managed wrappers to:&lt;BR /&gt;
1. Start the AutoCAD application (hopefully without displaying it)&lt;BR /&gt;
2. Use DatabaseServices to quickly read a drawing without displaying it&lt;BR /&gt;
3. Close AutoCAD&lt;BR /&gt;
&lt;BR /&gt;
Our AutoCAD users only use the program for about 50% of the workday but they &lt;BR /&gt;
want access to the data in the drawings at any given time. Starting the &lt;BR /&gt;
AutoCAD editor just to read a piece of data out of a drawing seems like a &lt;BR /&gt;
tremendous waste of time and resources.&lt;BR /&gt;
&lt;BR /&gt;
ObjectDBX did this for us in the past but the ability to do that has been &lt;BR /&gt;
removed with more current versions. I don't understand that. I understand &lt;BR /&gt;
promoting RealDWG for those that want to work with drawing files WITHOUT &lt;BR /&gt;
having AutoCAD. That is a great idea. Why though, should I have to pay for &lt;BR /&gt;
RealDWG when I have already paid for full-blown AutoCAD?&lt;BR /&gt;
&lt;BR /&gt;
(sorry for the rant, they took away one of my favorite toys)&lt;BR /&gt;
&lt;BR /&gt;
"J. Daniel Smith" &lt;J_DANIEL_SMITH&gt; wrote in message &lt;BR /&gt;
news:5208851@discussion.autodesk.com...&lt;BR /&gt;
Yes, .NET interacts very well with COM.  Depending on the particulars of the&lt;BR /&gt;
COM API (Office, for example), VB.NET may be a little easier than C#.&lt;BR /&gt;
&lt;BR /&gt;
The AutoCAD COM automatation API is completely different from the managed&lt;BR /&gt;
wrappers, even though you can use either one from the same .NET language.&lt;BR /&gt;
The .NET wrappers can only be used in one of two situtations: 1) in-process&lt;BR /&gt;
with AutoCAD, loading a "managed ARX", or 2) (uncommon) out-of-process in&lt;BR /&gt;
conjunction with RealDWG (aka ObjectDBX).&lt;BR /&gt;
&lt;BR /&gt;
   Dan&lt;BR /&gt;
&lt;BR /&gt;
"CB" &lt;SPAMFILTER&gt; wrote in message&lt;BR /&gt;
news:5208748@discussion.autodesk.com...&lt;BR /&gt;
Can you access the com object model through .net?  Ultimately I am trying to&lt;BR /&gt;
figure out if it is possible to program an interface in .net that mimics&lt;BR /&gt;
Eagle point software.  I want to be able to open the app outside of AutoCAD&lt;BR /&gt;
and manipulate the currently opened drawing.  I understand that you will&lt;BR /&gt;
need realDWG if autocad is not going to be loaded.... but if autocad is on&lt;BR /&gt;
the client machine will .net have the ability to silently open or use the&lt;BR /&gt;
currently open dwg and perform some drawing manipulation.  I have done this&lt;BR /&gt;
with dbx and VB6 but I have decided to switch to c# and I am finding it&lt;BR /&gt;
difficult to get an answer to this question.  I am still very new to .net&lt;BR /&gt;
and was wondering if it is possible without spending time hacking away at&lt;BR /&gt;
the object model for myself.&lt;BR /&gt;
Thanks&lt;BR /&gt;
--&lt;BR /&gt;
CB&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;MICK duprez=""&gt; wrote in message news:5208394@discussion.autodesk.com...&lt;BR /&gt;
You can only use the managed wrappers from 'inside' autocad (the same as&lt;BR /&gt;
arx) ie. a dll loaded into acad at runtime. If you want to do this without&lt;BR /&gt;
AutoCAD you will have to use the COM/dbx interface.&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Mick.&lt;/MICK&gt;&lt;/SPAMFILTER&gt;&lt;/J_DANIEL_SMITH&gt;</description>
      <pubDate>Fri, 16 Jun 2006 15:49:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676599#M81367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-16T15:49:40Z</dc:date>
    </item>
    <item>
      <title>Re: DatabaseServices ReadDwgFile</title>
      <link>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676600#M81368</link>
      <description>From my understanding now.... is that you can still do what you have done &lt;BR /&gt;
before through the com object (i guess that is what I was trying to get &lt;BR /&gt;
clarified before I continue learning with .net).  I would guess that I will &lt;BR /&gt;
not be able to take advantage of some of the exposed functions in arx/.net &lt;BR /&gt;
by using the dbx/com object but it will work for my purposes.  Someone &lt;BR /&gt;
please tell me if I am wrong before I continue further with .net and &lt;BR /&gt;
autocad.  I will stick it out with VB6 if I have to.&lt;BR /&gt;
&lt;BR /&gt;
I fell the RealDWG license is unnessesary also.  I think the dwg format &lt;BR /&gt;
should have full *free* api (from autodesk) for manipulating the files and &lt;BR /&gt;
reading the format.  Too many people rely on the format for archiving and &lt;BR /&gt;
storage.  If there where no opensource sdks for jpeg and png writting then I &lt;BR /&gt;
would bet money that most people would not store there photos with it.  It &lt;BR /&gt;
is an extra bit of security to have the ability to utilize a format without &lt;BR /&gt;
contracts or licensing.  I know the gif made allot of web designers nervous &lt;BR /&gt;
before the patent term expired (to this day most open source software will &lt;BR /&gt;
not write to it without adding the ability yourself).&lt;BR /&gt;
&lt;BR /&gt;
I do not think that you have to pay for a RealDWG license.... last I checked &lt;BR /&gt;
in 2005 (you may have to be part of the adn, which comes with a subscription &lt;BR /&gt;
fee).  Autodesk does want you to fill out paperwork and submit a business &lt;BR /&gt;
plan/model for why and your plans with the technology.  I personally would &lt;BR /&gt;
not share my business plan with anyone other than to seek venture capitol &lt;BR /&gt;
and prospective clients.  Add to that the fact that my programming skills &lt;BR /&gt;
with arx/.net is still in learning / personal utilities, and not production. &lt;BR /&gt;
I figure there are allot of people in my same boat who would love to explore &lt;BR /&gt;
the technology of RealDwg but will find it not worth the hassle.  Plus to be &lt;BR /&gt;
perfectly honest I would probably use the RealDWG technology create a better &lt;BR /&gt;
drawing port to blender or gimp.  Something that would probably not please &lt;BR /&gt;
autodesk..... and I would doubt getting a license.&lt;BR /&gt;
&lt;BR /&gt;
The only alternative is the opened libraries but you have to pay for them. &lt;BR /&gt;
You have to pay allot.  I have always wondered if it was possible to use the &lt;BR /&gt;
opened libraries by installing the software that uses it like intellicad.  I &lt;BR /&gt;
have never tried.&lt;BR /&gt;
&lt;BR /&gt;
Good luck&lt;BR /&gt;
--&lt;BR /&gt;
CB&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Mark Johnston" &lt;MARKJOHNSTON&gt; wrote in message &lt;BR /&gt;
news:5209079@discussion.autodesk.com...&lt;BR /&gt;
So could I create an app that uses the managed wrappers to:&lt;BR /&gt;
1. Start the AutoCAD application (hopefully without displaying it)&lt;BR /&gt;
2. Use DatabaseServices to quickly read a drawing without displaying it&lt;BR /&gt;
3. Close AutoCAD&lt;BR /&gt;
&lt;BR /&gt;
Our AutoCAD users only use the program for about 50% of the workday but they&lt;BR /&gt;
want access to the data in the drawings at any given time. Starting the&lt;BR /&gt;
AutoCAD editor just to read a piece of data out of a drawing seems like a&lt;BR /&gt;
tremendous waste of time and resources.&lt;BR /&gt;
&lt;BR /&gt;
ObjectDBX did this for us in the past but the ability to do that has been&lt;BR /&gt;
removed with more current versions. I don't understand that. I understand&lt;BR /&gt;
promoting RealDWG for those that want to work with drawing files WITHOUT&lt;BR /&gt;
having AutoCAD. That is a great idea. Why though, should I have to pay for&lt;BR /&gt;
RealDWG when I have already paid for full-blown AutoCAD?&lt;BR /&gt;
&lt;BR /&gt;
(sorry for the rant, they took away one of my favorite toys)&lt;BR /&gt;
&lt;BR /&gt;
"J. Daniel Smith" &lt;J_DANIEL_SMITH&gt; wrote in message&lt;BR /&gt;
news:5208851@discussion.autodesk.com...&lt;BR /&gt;
Yes, .NET interacts very well with COM.  Depending on the particulars of the&lt;BR /&gt;
COM API (Office, for example), VB.NET may be a little easier than C#.&lt;BR /&gt;
&lt;BR /&gt;
The AutoCAD COM automatation API is completely different from the managed&lt;BR /&gt;
wrappers, even though you can use either one from the same .NET language.&lt;BR /&gt;
The .NET wrappers can only be used in one of two situtations: 1) in-process&lt;BR /&gt;
with AutoCAD, loading a "managed ARX", or 2) (uncommon) out-of-process in&lt;BR /&gt;
conjunction with RealDWG (aka ObjectDBX).&lt;BR /&gt;
&lt;BR /&gt;
   Dan&lt;BR /&gt;
&lt;BR /&gt;
"CB" &lt;SPAMFILTER&gt; wrote in message&lt;BR /&gt;
news:5208748@discussion.autodesk.com...&lt;BR /&gt;
Can you access the com object model through .net?  Ultimately I am trying to&lt;BR /&gt;
figure out if it is possible to program an interface in .net that mimics&lt;BR /&gt;
Eagle point software.  I want to be able to open the app outside of AutoCAD&lt;BR /&gt;
and manipulate the currently opened drawing.  I understand that you will&lt;BR /&gt;
need realDWG if autocad is not going to be loaded.... but if autocad is on&lt;BR /&gt;
the client machine will .net have the ability to silently open or use the&lt;BR /&gt;
currently open dwg and perform some drawing manipulation.  I have done this&lt;BR /&gt;
with dbx and VB6 but I have decided to switch to c# and I am finding it&lt;BR /&gt;
difficult to get an answer to this question.  I am still very new to .net&lt;BR /&gt;
and was wondering if it is possible without spending time hacking away at&lt;BR /&gt;
the object model for myself.&lt;BR /&gt;
Thanks&lt;BR /&gt;
--&lt;BR /&gt;
CB&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;MICK duprez=""&gt; wrote in message news:5208394@discussion.autodesk.com...&lt;BR /&gt;
You can only use the managed wrappers from 'inside' autocad (the same as&lt;BR /&gt;
arx) ie. a dll loaded into acad at runtime. If you want to do this without&lt;BR /&gt;
AutoCAD you will have to use the COM/dbx interface.&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Mick.&lt;/MICK&gt;&lt;/SPAMFILTER&gt;&lt;/J_DANIEL_SMITH&gt;&lt;/MARKJOHNSTON&gt;</description>
      <pubDate>Fri, 16 Jun 2006 17:34:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676600#M81368</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-16T17:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: DatabaseServices ReadDwgFile</title>
      <link>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676601#M81369</link>
      <description>To correct the last post -  opened should be openDWG.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"The only alternative is the opened libraries but you have to pay for them."&lt;BR /&gt;
&lt;BR /&gt;
--&lt;BR /&gt;
CB&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
"Mark Johnston" &lt;MARKJOHNSTON&gt; wrote in message&lt;BR /&gt;
news:5209079@discussion.autodesk.com...&lt;BR /&gt;
So could I create an app that uses the managed wrappers to:&lt;BR /&gt;
1. Start the AutoCAD application (hopefully without displaying it)&lt;BR /&gt;
2. Use DatabaseServices to quickly read a drawing without displaying it&lt;BR /&gt;
3. Close AutoCAD&lt;BR /&gt;
&lt;BR /&gt;
Our AutoCAD users only use the program for about 50% of the workday but they&lt;BR /&gt;
want access to the data in the drawings at any given time. Starting the&lt;BR /&gt;
AutoCAD editor just to read a piece of data out of a drawing seems like a&lt;BR /&gt;
tremendous waste of time and resources.&lt;BR /&gt;
&lt;BR /&gt;
ObjectDBX did this for us in the past but the ability to do that has been&lt;BR /&gt;
removed with more current versions. I don't understand that. I understand&lt;BR /&gt;
promoting RealDWG for those that want to work with drawing files WITHOUT&lt;BR /&gt;
having AutoCAD. That is a great idea. Why though, should I have to pay for&lt;BR /&gt;
RealDWG when I have already paid for full-blown AutoCAD?&lt;BR /&gt;
&lt;BR /&gt;
(sorry for the rant, they took away one of my favorite toys)&lt;BR /&gt;
&lt;BR /&gt;
"J. Daniel Smith" &lt;J_DANIEL_SMITH&gt; wrote in message&lt;BR /&gt;
news:5208851@discussion.autodesk.com...&lt;BR /&gt;
Yes, .NET interacts very well with COM.  Depending on the particulars of the&lt;BR /&gt;
COM API (Office, for example), VB.NET may be a little easier than C#.&lt;BR /&gt;
&lt;BR /&gt;
The AutoCAD COM automatation API is completely different from the managed&lt;BR /&gt;
wrappers, even though you can use either one from the same .NET language.&lt;BR /&gt;
The .NET wrappers can only be used in one of two situtations: 1) in-process&lt;BR /&gt;
with AutoCAD, loading a "managed ARX", or 2) (uncommon) out-of-process in&lt;BR /&gt;
conjunction with RealDWG (aka ObjectDBX).&lt;BR /&gt;
&lt;BR /&gt;
   Dan&lt;BR /&gt;
&lt;BR /&gt;
"CB" &lt;SPAMFILTER&gt; wrote in message&lt;BR /&gt;
news:5208748@discussion.autodesk.com...&lt;BR /&gt;
Can you access the com object model through .net?  Ultimately I am trying to&lt;BR /&gt;
figure out if it is possible to program an interface in .net that mimics&lt;BR /&gt;
Eagle point software.  I want to be able to open the app outside of AutoCAD&lt;BR /&gt;
and manipulate the currently opened drawing.  I understand that you will&lt;BR /&gt;
need realDWG if autocad is not going to be loaded.... but if autocad is on&lt;BR /&gt;
the client machine will .net have the ability to silently open or use the&lt;BR /&gt;
currently open dwg and perform some drawing manipulation.  I have done this&lt;BR /&gt;
with dbx and VB6 but I have decided to switch to c# and I am finding it&lt;BR /&gt;
difficult to get an answer to this question.  I am still very new to .net&lt;BR /&gt;
and was wondering if it is possible without spending time hacking away at&lt;BR /&gt;
the object model for myself.&lt;BR /&gt;
Thanks&lt;BR /&gt;
--&lt;BR /&gt;
CB&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;MICK duprez=""&gt; wrote in message news:5208394@discussion.autodesk.com...&lt;BR /&gt;
You can only use the managed wrappers from 'inside' autocad (the same as&lt;BR /&gt;
arx) ie. a dll loaded into acad at runtime. If you want to do this without&lt;BR /&gt;
AutoCAD you will have to use the COM/dbx interface.&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Mick.&lt;/MICK&gt;&lt;/SPAMFILTER&gt;&lt;/J_DANIEL_SMITH&gt;&lt;/MARKJOHNSTON&gt;</description>
      <pubDate>Fri, 16 Jun 2006 17:52:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/databaseservices-readdwgfile/m-p/1676601#M81369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-06-16T17:52:55Z</dc:date>
    </item>
  </channel>
</rss>

