Solved

Reading an AutoCad DWG file

Posted on 1998-08-06
5
368 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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

Suggested Solutions

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…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

730 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