Solved

Reading an AutoCad DWG file

Posted on 1998-08-06
5
361 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
Comment Utility
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
Comment Utility
Checked out the Hyper Visual Cadd.

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

Expert Comment

by:ZifNab
Comment Utility
to get the file format try this one :

 www.wotsit.org/wgraphic/dwg_ff.zip

Regards, Zif.
0
 
LVL 4

Expert Comment

by:erajoj
Comment Utility
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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now