Results 1 to 3 of 3

Thread: Programming A Block Checker routine

  1. #1
    Member
    Join Date
    2007-03
    Posts
    2

    Default Programming A Block Checker routine

    Hello this is my first post ever here on the AUGI boards. I am just starting to learn how to program in the VBA environment for AutoCAD.

    Here is the problem I have at hand and am needing help with.

    I work for a company that uses AutoCAD 2002 and they are needing a utility to check through a drawing and find any broken block links to a database. The way they would like it to work is it would list all of the blocks in the drawing when the program is run and it would display the blocks that have errors on them. Then when they see which blocks have errors they have the ability to fix them and get them to work right.

    Now I have worked with VB before just not in the syntax or environment of AutoCAD. I would like to find a starting place and then work my way into getting the code more to where it works the way I described above.

    Right Now I found a little routine that will count how many blocks there are on a drawing, just I would like to learn to create one from scratch on my own so that I can understand how this works. So if anyone could show me a good starting point I would greatly appreciate it

  2. #2
    All AUGI, all the time zoomharis's Avatar
    Join Date
    2005-02
    Location
    Abu Dhabi (Native-India)
    Posts
    506

    Default Re: Programming A Block Checker routine

    Hi and welcome aboard....!!!

    If you are a beginner to AutoCAD VBA have a look at this sticky thread VBA Tutorials and Other Articles on top of this forum. It has got very nice links inside it. This forum has a handful of block routines. Try a search in the forum with related keywords. Here is Block Counter application for your reference. If you have programmed in VB, then have a look at AutoCAD Object Model in the VBA reference inside the developer help. It will make things easier for you.

    And finally don't forget to go through New Forum Users please read and take note.

    HTH
    har!s
    CADing && Coding
    AuotCAD 2010 on Windows XP Professional (SP3)

  3. #3
    Member
    Join Date
    2007-03
    Posts
    2

    Default Re: Programming A Block Checker routine

    Cool thanks for the information. I have downloaded some of the programs that were listed in that thread and it does something like what we are looking for, however we don't need it to see how many blocks are in a drawing... we are needing the program to find any broken links between the blocks and a Bently Dada Manager Database (Which runs on access for the moment). When they open up a project tied to a database and any links are broken the program crashes. So what we are needing it to do is list all the blocks in the drawing... have it check the database for any broken links... and then report back which blocks have broken links.

    I don't know if this is possible... however like I said that program from the Block Counter Thread is almost what we are looking for just need to tweak it a bit.

    Thanks
    Chris

Similar Threads

  1. how to create a own block from vba programming
    By chaitanya.1217767394 in forum VBA/COM Interop
    Replies: 1
    Last Post: 2012-02-15, 05:30 AM
  2. one selection block routine?
    By voigtmark in forum AutoLISP
    Replies: 14
    Last Post: 2007-07-27, 05:59 PM
  3. Programming - Dynamic Block Visibility
    By pangus in forum AutoLISP
    Replies: 3
    Last Post: 2007-03-24, 08:03 AM
  4. Help with simplifying Block routine
    By ReachAndre in forum AutoLISP
    Replies: 5
    Last Post: 2007-02-10, 02:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •