.NET

Reply
*CB
Message 11 of 12 (325 Views)

Re: DatabaseServices ReadDwgFile

06-16-2006 10:34 AM in reply to: *Mark Johnston
From my understanding now.... is that you can still do what you have done
before through the com object (i guess that is what I was trying to get
clarified before I continue learning with .net). I would guess that I will
not be able to take advantage of some of the exposed functions in arx/.net
by using the dbx/com object but it will work for my purposes. Someone
please tell me if I am wrong before I continue further with .net and
autocad. I will stick it out with VB6 if I have to.

I fell the RealDWG license is unnessesary also. I think the dwg format
should have full *free* api (from autodesk) for manipulating the files and
reading the format. Too many people rely on the format for archiving and
storage. If there where no opensource sdks for jpeg and png writting then I
would bet money that most people would not store there photos with it. It
is an extra bit of security to have the ability to utilize a format without
contracts or licensing. I know the gif made allot of web designers nervous
before the patent term expired (to this day most open source software will
not write to it without adding the ability yourself).

I do not think that you have to pay for a RealDWG license.... last I checked
in 2005 (you may have to be part of the adn, which comes with a subscription
fee). Autodesk does want you to fill out paperwork and submit a business
plan/model for why and your plans with the technology. I personally would
not share my business plan with anyone other than to seek venture capitol
and prospective clients. Add to that the fact that my programming skills
with arx/.net is still in learning / personal utilities, and not production.
I figure there are allot of people in my same boat who would love to explore
the technology of RealDwg but will find it not worth the hassle. Plus to be
perfectly honest I would probably use the RealDWG technology create a better
drawing port to blender or gimp. Something that would probably not please
autodesk..... and I would doubt getting a license.

The only alternative is the opened libraries but you have to pay for them.
You have to pay allot. I have always wondered if it was possible to use the
opened libraries by installing the software that uses it like intellicad. I
have never tried.

Good luck
--
CB




"Mark Johnston" wrote in message
news:5209079@discussion.autodesk.com...
So could I create an app that uses the managed wrappers to:
1. Start the AutoCAD application (hopefully without displaying it)
2. Use DatabaseServices to quickly read a drawing without displaying it
3. Close AutoCAD

Our AutoCAD users only use the program for about 50% of the workday but they
want access to the data in the drawings at any given time. Starting the
AutoCAD editor just to read a piece of data out of a drawing seems like a
tremendous waste of time and resources.

ObjectDBX did this for us in the past but the ability to do that has been
removed with more current versions. I don't understand that. I understand
promoting RealDWG for those that want to work with drawing files WITHOUT
having AutoCAD. That is a great idea. Why though, should I have to pay for
RealDWG when I have already paid for full-blown AutoCAD?

(sorry for the rant, they took away one of my favorite toys)

"J. Daniel Smith" wrote in message
news:5208851@discussion.autodesk.com...
Yes, .NET interacts very well with COM. Depending on the particulars of the
COM API (Office, for example), VB.NET may be a little easier than C#.

The AutoCAD COM automatation API is completely different from the managed
wrappers, even though you can use either one from the same .NET language.
The .NET wrappers can only be used in one of two situtations: 1) in-process
with AutoCAD, loading a "managed ARX", or 2) (uncommon) out-of-process in
conjunction with RealDWG (aka ObjectDBX).

Dan

"CB" wrote in message
news:5208748@discussion.autodesk.com...
Can you access the com object model through .net? Ultimately I am trying to
figure out if it is possible to program an interface in .net that mimics
Eagle point software. I want to be able to open the app outside of AutoCAD
and manipulate the currently opened drawing. I understand that you will
need realDWG if autocad is not going to be loaded.... but if autocad is on
the client machine will .net have the ability to silently open or use the
currently open dwg and perform some drawing manipulation. I have done this
with dbx and VB6 but I have decided to switch to c# and I am finding it
difficult to get an answer to this question. I am still very new to .net
and was wondering if it is possible without spending time hacking away at
the object model for myself.
Thanks
--
CB




wrote in message news:5208394@discussion.autodesk.com...
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.
Cheers,
Mick.
*CB
Message 12 of 12 (325 Views)

Re: DatabaseServices ReadDwgFile

06-16-2006 10:52 AM in reply to: *Mark Johnston
To correct the last post - opened should be openDWG.


"The only alternative is the opened libraries but you have to pay for them."

--
CB




"Mark Johnston" wrote in message
news:5209079@discussion.autodesk.com...
So could I create an app that uses the managed wrappers to:
1. Start the AutoCAD application (hopefully without displaying it)
2. Use DatabaseServices to quickly read a drawing without displaying it
3. Close AutoCAD

Our AutoCAD users only use the program for about 50% of the workday but they
want access to the data in the drawings at any given time. Starting the
AutoCAD editor just to read a piece of data out of a drawing seems like a
tremendous waste of time and resources.

ObjectDBX did this for us in the past but the ability to do that has been
removed with more current versions. I don't understand that. I understand
promoting RealDWG for those that want to work with drawing files WITHOUT
having AutoCAD. That is a great idea. Why though, should I have to pay for
RealDWG when I have already paid for full-blown AutoCAD?

(sorry for the rant, they took away one of my favorite toys)

"J. Daniel Smith" wrote in message
news:5208851@discussion.autodesk.com...
Yes, .NET interacts very well with COM. Depending on the particulars of the
COM API (Office, for example), VB.NET may be a little easier than C#.

The AutoCAD COM automatation API is completely different from the managed
wrappers, even though you can use either one from the same .NET language.
The .NET wrappers can only be used in one of two situtations: 1) in-process
with AutoCAD, loading a "managed ARX", or 2) (uncommon) out-of-process in
conjunction with RealDWG (aka ObjectDBX).

Dan

"CB" wrote in message
news:5208748@discussion.autodesk.com...
Can you access the com object model through .net? Ultimately I am trying to
figure out if it is possible to program an interface in .net that mimics
Eagle point software. I want to be able to open the app outside of AutoCAD
and manipulate the currently opened drawing. I understand that you will
need realDWG if autocad is not going to be loaded.... but if autocad is on
the client machine will .net have the ability to silently open or use the
currently open dwg and perform some drawing manipulation. I have done this
with dbx and VB6 but I have decided to switch to c# and I am finding it
difficult to get an answer to this question. I am still very new to .net
and was wondering if it is possible without spending time hacking away at
the object model for myself.
Thanks
--
CB




wrote in message news:5208394@discussion.autodesk.com...
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.
Cheers,
Mick.

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community