Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with Facebook Sign In with Google Sign In with OpenID

Categories

We have migrated to a new platform! Please note that you will need to reset your password to log in (your credentials are still in-tact though). Please contact lee@programmersheaven.com if you have questions.
Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Convert dwg to dxf

Hi,
Does anyone have any source code that allows batch conversion of AutoCAD dwg files to dxf?

Thank you
Emma Curtis

Comments

  • Jeff P.Jeff P. Posts: 196Member
    : 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!
  • EmmakcurtEmmakcurt Posts: 2Member
    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
  • zibadianzibadian Posts: 6,349Member
    : 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.
  • Jeff P.Jeff P. Posts: 196Member
    : : 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:

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

    - This should be regarded as "psuedo-code" ,see the AutoCAD
    documentation for the exact syntax.
  • TatyanaPTatyanaP Posts: 1Member
    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!
    [size=5][color=Black][/color][/size]

  • keng02keng02 Posts: 2Member
    You assign the method you want to fire to the event [link=http://www.hermesbagsseller.com]handler[/link] that you want to trigger it. example.
  • keng02keng02 Posts: 2Member
    Before you start using style-codes, [link=http://www.hermesbagsseller.com]please[/link] 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.
Sign In or Register to comment.