How can I integrate "AutoCAD 2004,VBA procedures with DELPHI 7 " ?(Please advice

Discussion in 'AutoCAD' started by Rameshi, Jan 9, 2004.

  1. Rameshi

    Rameshi Guest

    Hi All,

    I am a novice user to the CAD enviroment.So,Please be kind enough to help me on these questions:

    * How can I extract X,Y,Z coordinates from a drawing in VBA?

    * How can I pass these extracted coordinates in to a Delphi7 program and
    return the changed value coordinates back to the VBA procedure in order to update the drawing?

    * Will I be able to show the updated drawing in my the Delphi program?

    Does anyone have suggestions to solve these problems.

    Thanks in advance....
    Rameshika
     
    Rameshi, Jan 9, 2004
    #1
  2. Your Delphi 7 program must be an ActiveX Server, which will allow
    you to connect to it from VBA and use its properties and methods
    just like any other ActiveX object.

    This of course, requires you to have knowledge of building ActiveX
    servers in Delphi. If you're unsure about that, feel free to ask or
    visit http://www.caddzone.com and click on the link to Free stuff,
    and then the link to the Delphi/AutoCAD pages.
     
    Tony Tanzillo, Jan 9, 2004
    #2
  3. Rameshi

    Rameshi Guest

    Thanks for ur early reply.This information is very important in my developments.

    But sir, my real requirement is:

    I am developing a software program in delphi 7 which will gather user requirments such as roof angle, roof shape etc.
    This information should be passed to the autocad enviroment and autocad should be able to draw the required roof architecture.This drawing should be sent back to my delphi program so that user will be able to see his requirements in 2D format.

    Will I be able to perform this task?

    Please advice me because I am really stuck in my developments.

    Thanks alot..
     
    Rameshi, Jan 10, 2004
    #3
  4. Rameshi

    Rameshi Guest

    Thanks for ur early reply.This information is very important in my developments.

    But sir, my real requirement is:

    I am developing a software program in delphi 7 which will gather user requirments such as roof angle, roof shape etc.
    This information should be passed to the autocad enviroment and autocad should be able to draw the required roof architecture.This drawing should be sent back to my delphi program so that user will be able to see his requirements in 2D format.

    Will I be able to perform this task?

    Please advice me because I am really stuck in my developments.

    Thanks alot..
     
    Rameshi, Jan 10, 2004
    #4
  5. Rameshi

    Chuzhakin Guest

    Chuzhakin, Jan 12, 2004
    #5
  6. But sir, my real requirement is:
    requirments such as roof angle, roof shape etc.
    should be able to draw the required roof architecture.This drawing should be
    sent back to my delphi program so that user will be able to see his
    requirements in 2D format.
    So go to Tony's website www.caddzone.com and look at the Delphi resources
    there. Tony has a lot of good stuff on using Delphi and COM/ActiveX
    automation with Autocad. What you describe above can be done with an
    ActiveX automation server DLL that runs in Autocad.
     
    Rick Francken, Jan 13, 2004
    #6
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.