• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    AutoCAD Electrical

    Reply
    Member
    Posts: 4
    Registered: ‎05-31-2012

    autocad info with vba

    98 Views, 5 Replies
    05-31-2012 12:25 PM

    Hi all,

         I have a program that creates a new project in autocad electrical.  Once the command executes the autocad form comes up asking to name the project.  Is there a way to fill in that name and click the okay button through the vba program?  i.e. is there a way to focus on those parts of the form and have access to them without pausing for user input?

    Please use plain text.
    Valued Contributor
    Posts: 88
    Registered: ‎03-17-2008

    Re: autocad info with vba

    06-04-2012 07:05 AM in reply to:

    No.  You can't easily manipulate the ACADE dialogue boxes via ACAD VBA.  If you come from an Excel or Access VBA background you'll be disapointed with ACADE (Electrical specific) functions.  You'll find yourself using VBA to run LISP ACADE API calls; which works...ok, with enough patience.

     

    I suggest you study the WDP file and the WD_M block and use VBA to manipulate.  It's a long and painful road, but if you have decent vba or .net skills and take the time to understand how ACADE works, you'll get a good return on your investment.

     

    Please use plain text.
    Member
    Posts: 4
    Registered: ‎05-31-2012

    Re: autocad info with vba

    06-04-2012 10:27 AM in reply to:

    Thanks for the input.  That was what I was afraid of.  How do I find out more about the functionallity of the blocks you suggested studying.  It seems resources are very hard to come by for electrical.  :smileysad:

    Please use plain text.
    *Expert Elite*
    Posts: 979
    Registered: ‎03-09-2004

    Re: autocad info with vba

    06-04-2012 11:58 AM in reply to:

    Your best bet would be to take a class in ACE to understand the basics. There is a lot to learn and it can be a long row to hoe if you just do it on your own.

    Bob Hanrahan
    Ace User since 1998
    Please use plain text.
    Member
    Posts: 4
    Registered: ‎05-31-2012

    Re: autocad info with vba

    06-18-2012 12:27 PM in reply to: testsubject

    HI,

    I have taken training classes and been using the software for about 10 years now.  I am only now getting to write some custom apps other than simple scripts.  It seems that .NET is the way to go, but it is insanely difficult to find any training on the subject for Electrical specific use.  If you have some resources I would love the opportunity to try them.  Thanks for your input so far, hope to hear from you again.

    Please use plain text.
    Member
    Posts: 4
    Registered: ‎05-31-2012

    Re: autocad info with vba

    06-18-2012 12:29 PM in reply to: pjfontes

    I looked a bit more into the topics you suggested and there is still some information that looks inaccessable.  Are there any other ideas you can think of?  Thanks for the help to this point, I greatly appreciate it.  It seems there is always something new to learn in this program.  :smileyhappy:

    Please use plain text.