Read dwg extents

Read dwg extents

Anonymous
Not applicable
2,195 Views
9 Replies
Message 1 of 10

Read dwg extents

Anonymous
Not applicable

Hi!

 

I would like to make windows service (.NET C#), which would watch directory changes and read dwg extents, if file extension was .dwg.

Is this possible to make on machine, where autocad isn't installed?

0 Likes
2,196 Views
9 Replies
Replies (9)
Message 2 of 10

arcticad
Advisor
Advisor

You would have to use RealDWG or OpenDesign

 

http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=770257

 

http://www.opendesign.com/

 

---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes
Message 3 of 10

Anonymous
Not applicable

Is there no free alternative?

0 Likes
Message 4 of 10

dgorsman
Consultant
Consultant

Could you elaborate on the reasoning behind this?  There may be "in drawing" solutions that could fulfull the requirements.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Likes
Message 5 of 10

Anonymous
Not applicable

I am working on application, which creates database with information of extents of DWG, TIF and other geolocated files.

Then user can click on some location on the map and check which files are under that location.

I solved all other formats, but not dwg. I can read DWG extents only inside autocad.

 

If there is no free solution to do this without AutoCAD, is this possible on machine that has AutoCAD installed without running autocad?

 

Thank you in advance!

0 Likes
Message 6 of 10

arcticad
Advisor
Advisor

If you don't want to pay for a solution then you will have to create an instance of AutoCAD to be able to run your code, 

 

---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes
Message 7 of 10

fieldguy
Advisor
Advisor

Yes.  You can search here for "out of process" or "unmanaged".  There should be several examples.  What version of acad are you targeting?

0 Likes
Message 8 of 10

arcticad
Advisor
Advisor

I'd like to know what your referring to...

 

You will still have to connect to AutoCAD to run your application via ActiveX API and create an instance of AutoCAD.

You don't need to show autocad on the screen but it's still running.

---------------------------



(defun botsbuildbots() (botsbuildbots))
0 Likes
Message 9 of 10

fieldguy
Advisor
Advisor

Scratch that - sorry.  I was taking out-ot-process too literally.

0 Likes
Message 10 of 10

Anonymous
Not applicable

hi borut

 

autodesk publish dxf code references as pdf file by autocad version here:

http://usa.autodesk.com/adsk/servlet/item?linkID=10809853&id=12272454&siteID=123112

 

it's introduction says that "The DXFformat is a tagged data representation of all the information contained in an AutoCAD® drawing file. Tagged data means that each data element in the file is preceded by an integer number that is called a group code."

so therefore i think that once you have a .dwg file saved as a .dxf file, you could write a .net application that searches this .dxf file for respective group codes and associated values; e.g. the dxf 'header variables' for drawing extents are given on p19 (i.e. from the acad2011 ref). unfortunately, i haven't done this myself, but .dxf files can be used by non-acad software.

 

felix

 

 

0 Likes