Is there a way ( ole or component ) to view Atocad 2004-2011 drawings inside Delphi application ?
Asked
Active
Viewed 5,168 times
3
-
[Here](http://www.delphipraxis.net/160200-dxf-delphi-darstellen.html) are some links, mainly regarding DXF. Apparently [Autodesk Design Review](http://www.autodesk.de/adsk/servlet/pc/index?id=14623668&siteID=403786) has an ActiveX viewer component. – Uli Gerhardt Sep 28 '11 at 17:38
3 Answers
4
I don't know for sure, but if you have AutoCad installed on your PC, try importing the ActiveX. It's in the Delphi IDE under Component | Import Component... | Import ActiveX Control. That'll show the list of available ActiveX gizmos. See if there's anything there that looks like AutoCad. If so, you should be able to make it work ON YOUR PC. To make it work on ANY PC, you'd need a free or licensed viewer that can handle AutoCad.

Chris Thornton
- 15,620
- 5
- 37
- 62
2
The Open Design Alliance supports (or used to support, I'm not sure about that one) Delphi in their TeighaX library.
In the past you have been able to use DWG Trueview as an ActiveX control but that may have been disabled.

CAD bloke
- 8,578
- 7
- 65
- 114
-
1I actually tried with Trueview and i succeed to add to Delphi library the components, but i cant find anywhere some documentation, neither examples - how to use it :| – Yordan Yanakiev Oct 06 '11 at 06:30
-
1Try the usual AutoCAD VBA documentation - it is built on the same framework so it, in theory, should be similar. You won't find any examples because it is _very_ unsupported. – CAD bloke Oct 06 '11 at 10:05