Importing a VBA file to edit it.

Discussion in 'AutoCAD' started by A-Design, Nov 9, 2004.

  1. A-Design

    A-Design Guest

    Hi,

    When I am writing some codes on VBA ,later on when I open the file, it gets
    like the following example:
    What did I miss ? should I make a TEXT copy of the codes before I close
    AutoCAD? should I convert the below machine code to VBA code by some tricks?

    Thanks in advance,
    Afshin

    ============================
    Iࡱá
    _
    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ`
    Document = ThisDrawing / &H0
    Package={AC9F2F90-E877-11CE-9F68-00AA00574A4F}
    Name = "FileIO"
    HelpContextID = "0"
    CMG = "B1B378787C787C787C787C"
    DPB = "2F2DE6881A789979997999"

    [Host Extender Info]
    &H00000001={3832D640-CF90-11CF-8E43-00A0C911005A};VBE;&H00000000

    [Workspace]
    ThisDrawing=0, 0, 0, 0, C
    Global=-1, 0, 738, 458,
    58,
    34 rU?
    0046}#2
    ============================
     
    A-Design, Nov 9, 2004
    #1
  2. How are you opening the file? It would seem you are trying to open the DVB file in something other than the VBA editor in AutoCAD.
    Regards - Nathan
     
    Nathan Taylor, Nov 9, 2004
    #2
  3. A-Design

    bcoward Guest

    That's what you see when you open a DVB file with a hex editor.

    Regards,

    Bob Coward
     
    bcoward, Nov 9, 2004
    #3
  4. A-Design

    A-Design Guest

    No, the same Visual Basic Editor that AutoCAD is providing it!.
    Thanks, Afshin
     
    A-Design, Nov 10, 2004
    #4
  5. Can you post the file? You will need to zip it up.
    Regards - Nathan
     
    Nathan Taylor, Nov 10, 2004
    #5
  6. Hi,

    Although I have never tried it, I think the import process may be your
    problem.

    There are better ways to load the file:

    1 Appload followed by browsing to find the file
    2 VBAMAN followed by Browsing to find the file
    3 Drag the file into the drafting area of AutoCAD with Windows Explorer

    --


    Laurie Comerford
    CADApps
    www.cadapps.com.au
     
    Laurie Comerford, Nov 10, 2004
    #6
  7. Yeah, Laurie is right. Import is for the ASCII format files such as .CLS,
    ..FRM, .BAS, etc. The .DVB files are more of a binary format. (BJ & MT: I
    know, not really.) When you try to load a .DVB as an ASCII format you
    should see just about what you did see. Start VBAMAN, then select the
    "Load" button, select the .DVB you want to edit, it will appead in the
    listbox, then select the "VBA Editor" button. Bear in mind that .DVB files
    do occasionally get corrupted. It is definitely worth Exporting all of your
    forms, modules, and classes in the project to .CLS, .FRM, .BAS files every
    so often.
     
    John Goodfellow, Nov 10, 2004
    #7
  8. A-Design

    A-Design Guest

    Thanks for all the anwsers,
    I am getting the folowing message when i try to load the file:

    The Visual Basic project file was not found.
    please verify the correct filename was given

    I don't know what I am doing worngly.
    Thanks,
     
    A-Design, Nov 10, 2004
    #8
  9. A-Design

    Ron Mills Guest

    run vbaman, click load, then browse to the dvb file you are trying to load.
    then open your vbaide.. it will be there.
     
    Ron Mills, Nov 10, 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.