: : 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.