Truss Program

Discussion in 'AutoCAD' started by Nick Haury, Jan 21, 2004.

  1. Nick Haury

    Nick Haury Guest

    I was wondering if it is feasible to write a VBA routine to draw a truss
    profile? Also if it is, I'm new to writing VBA(Very New), how would I go
    about it?
    In Lisp I have to define the different points of span, define the rise and
    run of the slope, access the command to draw the plines between the defined
    points, etc.
     
    Nick Haury, Jan 21, 2004
    #1
  2. Yes, there is no problem doing it. How to do it, though, is dependent
    upon your situation, end goal, etc.

    If you did it in lisp then you can use the same approach. VBA allows you
    to add more GUIs and makes the coding process easier if you create
    programming objects [not talking about anything drawn in CAD] instead of
    using straight variables.
    ___________________________
    Mike Tuersley
    CADalyst's AutoCAD Clinic
    Rand IMAGINiT Technologies
     
    Mike Tuersley, Jan 21, 2004
    #2
  3. Nick Haury

    Nick Haury Guest

    OK, now that I know it can be done, the question is how. I did do it in
    lisp, but want to add more to it, like dialog boxes and the like. The only
    problem is how! I know not where to start, for I no nothing. I've looked
    at other code and I don't understand the syntax of VBA. I've tried looking
    online for a good free tutorial on how to understand the syntax, unless you
    can give some pointers.

    Nick
     
    Nick Haury, Jan 21, 2004
    #3
  4. Well, you'll get lot of opinions here on how to go about learning it. If
    you search the ng, there are a lot of threads on that topic. I,
    personally, recommend going to your local library and getting either The
    Complete Idiots Guide to VBA or VBA for Dummies. Both are good primers
    that teach you vba from within MS Office. Once you learn the language,
    picking up AutoCAD specifics shouldn't be a problem and you can always
    get Joe Sutphin's book - its a great reference but not the best primer.
    ___________________________
    Mike Tuersley
    CADalyst's AutoCAD Clinic
    Rand IMAGINiT Technologies
     
    Mike Tuersley, Jan 22, 2004
    #4
  5. Nick Haury

    Dave Guest

    Mike knows his stuff. His advice would be good stuff.

    The only thing I could add is that you may want to consider not using custom objects, but draw 3D solids if you are planning on working in 3D.

    This way you have collaboration with other trades easily.

    Good luck!

    --
    David Wishengrad
    President & CTO
    MillLister, Inc.
    Software for measuring and stretching multiple 3D solids.
    Http://Construction3D.com
     
    Dave, Jan 22, 2004
    #5
  6. Nick Haury

    Anthony Guest

    you can play around and learn vba also a few bad habits, i would recommend
    uising the following book
    its cheep and very good.
    AutoCAD 2000 VBA Programmer's Reference
    by joe sutphin
    Even though it is for acad 2000 most of it is still relevent to 2002, 2004
    you can also download it as an e-book from www.amazon.com
     
    Anthony, Jan 26, 2004
    #6
  7. Hi Anthony.

    I talk to you a while ago (about VBA books...). Why dont you send me the
    input you expect to do and the output you expect from your macro? I will se
    if I can start you up ...

    Cheers,

    Pierre Desmarais
    Civil engineering technician, computer programmer, steel detailer, draftman,
    chessplayer but above all PEPSI LOVER!!
     
    Pierre Desmarais, Jan 27, 2004
    #7
  8. Nick Haury

    rforjzis Guest

  9. Nick Haury

    Alex Guest

    Hi,
    If you new to VBA, you should begin with simple applications, like
    routines with layers, text, blocks.When you became more familiar with
    the code you may try to write someting more complicated.
    Alex
    Cadaxx Design, Toronto
    Cadaxx.com
     
    Alex, Dec 8, 2004
    #9
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.