Delphi and Kylix

Moderators: pritaeas
Number of threads: 7260
Number of posts: 19067

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Convert dwg to dxf Posted by Emmakcurt on 11 Feb 2004 at 5:44 AM
Hi,
Does anyone have any source code that allows batch conversion of AutoCAD dwg files to dxf?

Thank you
Emma Curtis
Report
Re: Convert dwg to dxf Posted by Jeff P. on 11 Feb 2004 at 6:29 AM
: Hi,
: Does anyone have any source code that allows batch conversion of AutoCAD dwg files to dxf?
:
: Thank you
: Emma Curtis
:


There is a free stand-alone utility available from:
http://www.opendesign.com/downloads/guest.htm

Most of the native Delphi untis I have seen for this are commercial, closed-source software, and they are *very* expensive!
Report
Re: Convert dwg to dxf Posted by Emmakcurt on 11 Feb 2004 at 6:46 AM
Hi there, thank you for your reply,
I am aware of that utility - but I need to develop a custom application - either in VB or Delphi that automates the batch process by calling the AutoCAD API.

Thanks for your time
Emma
Report
Re: Convert dwg to dxf Posted by zibadian on 11 Feb 2004 at 8:01 AM
: Hi there, thank you for your reply,
: I am aware of that utility - but I need to develop a custom application - either in VB or Delphi that automates the batch process by calling the AutoCAD API.
:
: Thanks for your time
: Emma
:
You could try to find the correct interface to solve your problem, if that's possible. Perhaps AutoCAD has an interface server to perform that conversion. You can let Delphi create the necessary unit by either using "Project|Import Type Library" or "Component|Import ActiveX Control" command.
If it is not an interface, then a websearch for technical info on AutoCAD or some developer's book might give you the correct exported routines.
Report
Re: Convert dwg to dxf Posted by Jeff P. on 11 Feb 2004 at 8:26 AM
: : Hi there, thank you for your reply,
: : I am aware of that utility - but I need to develop a custom application - either in VB or Delphi that automates the batch process by calling the AutoCAD API.
: :
: : Thanks for your time
: : Emma
: :
: You could try to find the correct interface to solve your problem, if that's possible. Perhaps AutoCAD has an interface server to perform that conversion. You can let Delphi create the necessary unit by either using "Project|Import Type Library" or "Component|Import ActiveX Control" command.
: If it is not an interface, then a websearch for technical info on AutoCAD or some developer's book might give you the correct exported routines.
:

It has been a few years since I used AutoCAD,
but if I remember correctly, it has an extensive
and well-documented COM interface. You can create
an instance directly from Delphi using something like:

MyCad:=CreateOleObject('AutoCAD.Application');
MyCad.ActiveDocument.Load('somefile.dwg');
MyCad.ActiveDocument.Export('somefile.dxf');


- This should be regarded as "psuedo-code" ,see the AutoCAD
documentation for the exact syntax.
Report
Re: Convert dwg to dxf Posted by TatyanaP on 16 Feb 2011 at 5:39 AM
Hi Emma,
Have a look at this shareware tool for conversion into DXF: http://www.cadsofttools.com/en/products/cadviewx.html - it is an ActiveX technology though.
You can look here as well: http://www.cadsofttools.com/en/documents/what_to_choose.html
Good luck!


Report
Re: Convert dwg to dxf Posted by keng02 on 1 Apr 2011 at 4:01 AM
You assign the method you want to fire to the event handler that you want to trigger it. example.
Report
Re: Convert dwg to dxf Posted by keng02 on 1 Apr 2011 at 5:09 AM
Before you start using style-codes, please note that you have to close ALL tags.Please use
the preview function to make sure that your message is shown as you want it to be.
Report
Re: Convert dwg to dxf Posted by jennis on 11 Oct 2011 at 2:13 AM
That's really a good try.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.