VBA crap

Discussion in 'AutoCAD' started by Jan van de Poel, Jan 31, 2005.

  1. Sorry, have to get rid of some anger.
    We just received a number of drawings wich on opening report:

    Initializing VBA-system.

    Drawings are approx 500-600KB, pretty small, no xref's (at least none shown
    on the command line).
    Just because af this VBA-crap loading takes about 15-20 minutes, causing
    windows to shout "insufficient virtual memory" and autocad to cry "fatal
    error: aborting".
    Right.

    Don't know what m...n invented this stuff but why do i need VBA to load a
    drawing?
    Is there a way to shut the VBA down before the entire drawing is loaded?

    Our drawings are max 1MB, they load fine, within seconds, most architectural
    drawings load perfect unless they grow over 20Mb.
    System:
    P-4 1.8, 256Mb memory, at least 900Mb swap space.
    Quite enough for the work we do. (2D only)

    Anyone have some ideas about this (don't come up with 'buy new hardware').

    Jan
     
    Jan van de Poel, Jan 31, 2005
    #1
  2. Jan van de Poel

    Jürg Menzi Guest

    Hi Jan

    AutoCAD doesn't load VBA by default...

    It must be an application which use VBA. Check your Acad*.lsp's, *.mnl files
    and the contents of the application startup suite.

    Cheers
     
    Jürg Menzi, Jan 31, 2005
    #2
  3. Sorry Juerg,
    our drawings nor we do load VBA, nowere in our acad.lsp or menu's the VBA is
    called.
    It's realy coming from those drawings.
    As soon as they are loaded the VBA is started.

    Regards,
    Jan
     
    Jan van de Poel, Jan 31, 2005
    #3
  4. Jan,

    In addition to any replies you might receive or already
    received, you may find more information or responses
    by posting future VBA related questions in the following
    discussion group:

    By NNTP discussion group reader at
    news://discussion.autodesk.com/autodesk.autocad.customization.vba

    By HTTP (web-based) interface at
    http://discussion.autodesk.com/forum.jspa?forumID=33
     
    Jason Piercey, Jan 31, 2005
    #4
  5. Thanks,
    i'll repost it there.

    Jan

     
    Jan van de Poel, Jan 31, 2005
    #5
  6. Jan van de Poel

    MP Guest

    Sounds like the dwgs may have an embedded vba project?
    Don't remember if there's a way to "disable" those on loading.
    Maybe your consultants can send you a "clean" version of the dwgs?
     
    MP, Jan 31, 2005
    #6
  7. Jan van de Poel

    R.K. McSwain Guest


    Open Help, go to Search tab, search for "AutoCAD Macro Virus Protection
    Dialog Box"
     
    R.K. McSwain, Jan 31, 2005
    #7
  8. Posted a drawing in customer files.


     
    Jan van de Poel, Jan 31, 2005
    #8
  9. Jan,

    I can't help you with the VBA stuff. But, I just opened your drawing and it
    only took 25 seconds for this drawing to open in ADT 2000 and 35 seconds for
    it to open in ADT 2005. That's nowhere near the 15-20 minutes that it takes
    to open on your machine.
     
    Gary Lafreniere, Feb 1, 2005
    #9
  10. The problem is with your AutoCAD installation.
    There are some circumstances where the VBA
    system will be loaded, even if there are no
    VBA projects embedded in the drawing. I've
    not found out what exactly it is that does it,
    but I know that one of the sample drawings
    that comes with AutoiCAD will cause it (don't
    remember which it is).

    In any case, the time you say it is taking
    would suggest that you have a damaged
    AutoCAD installation, or something else
    which also includes VBA, on your system.
     
    Tony Tanzillo, Feb 1, 2005
    #10
  11. Posted the same question in customization.vba and in customer-files.
    Result:
    a very dense hatch pattern inside the drawing.
    After removing this hatch pattern the "Initializing VBA-system" also
    disappeared.
    Probably the hatch pattern has a VBA-routine embedded or it is created by
    some embedded VBA routine.
    Anyway, after removing it the drawing responds fine, just like it should.

    Thanks,
    Jan
     
    Jan van de Poel, Feb 1, 2005
    #11
  12. Jan van de Poel

    R.K. McSwain Guest


    There is no VBA code embedded in the drawing you posted.
    Run VBAMAN and check it out.
     
    R.K. McSwain, Feb 1, 2005
    #12
  13. I did run the VBAMAN, didn't find anyting, why does the message
    "Initializing VBA system" appears than?

    To Tony Tanzillo:
    There are some circumstances where the VBA
    system will be loaded, even if there are no
    VBA projects embedded in the drawing. I've
    not found out what exactly it is that does it,
    but I know that one of the sample drawings
    that comes with AutoiCAD will cause it (don't
    remember which it is).

    In any case, the time you say it is taking
    would suggest that you have a damaged
    AutoCAD installation, or something else
    which also includes VBA, on your system.<

    That would suggest that each and every machine here would have a damaged,
    thus malfunctioning, autocad installation.
    90% of the incoming drawings load without the "Initializing VBA system"
    message.
    All of our own drawings load without it.

    Only those drawings mentioned and some others report it and take forever to
    load. Strange.

    As I wrote in my solution:
    after removing this dense hatch pattern, the "Init....VBA..." also
    disappeared.
    There has to be somewhere a connection between this hatch pattern and the
    VBA. Logically.
    Hope that someone finds out what it is/was.

    Ok. Back to business.
    Lets get some paper out.

    Jan
     
    Jan van de Poel, Feb 2, 2005
    #13
  14. Jan van de Poel

    R.K. McSwain Guest


    Read Tony's post.

    I don't receive any message about "Initializing VBA system" when I open
    your drawing.
     
    R.K. McSwain, Feb 2, 2005
    #14
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.