Solved

Reading an AutoCad DWG file

Posted on 1998-08-06
5
365 Views
Last Modified: 2010-04-04
I need to be able to read and display an AyutoCad R14 drawing. Has anyone any ideas?
0
Comment
Question by:aulic
5 Comments
 
LVL 7

Expert Comment

by:BlackMan
ID: 1361625
Hmm, had it just been DXF :-) DWG is more difficult because the format is not documented. Then only viewer (with VCL) I know of, is Hyper Visual Cadd (http://netnow.micron.net/~sgarland/vcadd.htm)
I think there is a few DLLs around too, but I don't know how well integrated they are in Delphi..
0
 

Author Comment

by:aulic
ID: 1361626
Checked out the Hyper Visual Cadd.

Looks ok, will try it out. Thanks
0
 
LVL 8

Expert Comment

by:ZifNab
ID: 1361627
to get the file format try this one :

 www.wotsit.org/wgraphic/dwg_ff.zip

Regards, Zif.
0
 
LVL 4

Expert Comment

by:erajoj
ID: 1361628
Since Autodesk are unwilling to release the DWG spec, some companies have formed OpenDWG. On their site there are lots of information: http://www.opendwg.org/
They also have an ActiveX component: http://www.opendwg.org/downloads/utilities/MyriadXDWG.exe
And a DWG to DXF converter: http://www.opendwg.org/library/utilities/DCONVERT.zip
And the spec in HTML: http://www.opendwg.org/library/ad2/reference/onlineref/opendwg.html

/// John
0
 
LVL 8

Accepted Solution

by:
Answers2000 earned 100 total points
ID: 1361629
DrDwg have an ActiveX control to view DWG's and one on the way to edit them.  You should be able to use these from Delphi.  Their home page is http://www.drdwg.com.  I've not used this but have heard it's good.


Cimmetry's VCET toolkit also allows you to incorporate AutoCAD viewing.  (I've used this and it's pretty good).  There EDAT toolkit allows editting (not tried it).  URL is
http://www.cimmetry.com/

In deciding which to use check out that all entity types are supported and how well as compared to AutoCAD.  For DWG we couldn't find any problems at all with Cimmetry.  Some other toolkits did loose some entities on DWG.

Unless you have really a tremendous amount of time to devote to this project forget about trying to develop DWG reading or writing from scratch yourself, it is very hard and you are subject to the whims of AutoCAD changing the format in each release (and they do, do this - and can afford to while they continue to dominate the PC CAD market to the extent they do).


0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

789 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question