Read Autocad drawing object properties in VB

M

Mark

Hi

Sorry if this seems a little OT but we have a simple document management
system developed in vb.NET (VS 2005 etc.) which need to be able to:

a) scan selected locations for autocad drawings
b) extract from those drawings particular object properties (such as tag
numbers etc.)
c) store those properties along with the file name etc. (we are using SQL
Serer 2000 for backend).

I'm comfortable scanning for files and writing data to the server etc. but
have never had to extract data from Autocad drawings before. Does anyone
have any pointers?

Many thanks in advance

Mark
 
J

James Maeding

Hi Mark,
Acad is my life, so hopefully I can help.
Your question can be done eiser with lisp, than vb.net IMO, but here is the approach:
1) open the drawing via "dbx", this means its done in memory, the drawing does not open in an acad session.
2) loop through the entities in the modelspace and paperspace block tables, and process those that you want to.
3) feed that info into a database table. (not acad related and simple compared to the acad side.

I highly recommend you stop by the autodesk discussion groups, there is a .net one, as well as theswamp.org.
That is where the Acadheads hang out. What you ask has already been answered there.
thx

"Mark" <[email protected]>
|>Hi
|>
|>Sorry if this seems a little OT but we have a simple document management
|>system developed in vb.NET (VS 2005 etc.) which need to be able to:
|>
|>a) scan selected locations for autocad drawings
|>b) extract from those drawings particular object properties (such as tag
|>numbers etc.)
|>c) store those properties along with the file name etc. (we are using SQL
|>Serer 2000 for backend).
|>
|>I'm comfortable scanning for files and writing data to the server etc. but
|>have never had to extract data from Autocad drawings before. Does anyone
|>have any pointers?
|>
|>Many thanks in advance
|>
|>Mark
|>
 
Joined
Jul 19, 2011
Messages
1
Reaction score
0
Hi James,
I need your help for my project. I want VB.net source code to calculate the certain area measure the drawing opened in CAD and store it in database.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top