SolidWorks VB macros, why are they so big in filesize?

Discussion in 'SolidWorks' started by SW Monkey, Nov 12, 2004.

  1. SW Monkey

    SW Monkey Guest

    I have a macro I created that generates SCH 40 and 80 pipe. You choose
    a size, and input a length, and it generates the part.

    The filesize on the macro is almost 5mb. How can I tell what is taking
    up the most space? I dont understand why its so big, since its a
    pretty simple macro (at least I think it is).
     
    SW Monkey, Nov 12, 2004
    #1

  2. Looks like the macros dont actually delete code or forms from the file
    when you delete this in the IDE (almost like the fast saving option in
    Word).

    Try exporting your code and import it to a new macro or just
    unfrag the macro.

    HTH,
    Stefan

    --

    unofficial german SolidWorks helpsite
    http://solidworks.cad.de
    tools and programs for SolidWorks
    http://swtools.cad.de
     
    Stefan Berlitz, Nov 13, 2004
    #2
  3. SW Monkey

    CS Guest

    I know that adding the swConst.BAS as a module in your code could add a MB
    by itself.

    Corey
     
    CS, Nov 15, 2004
    #3
  4. That's why I would typically recommend adding only the references you need.
    Just don't succumb to the temptation of just looking up the numerical values
    and using those instead of the full references!!
     
    Evan T. Basalik, Nov 16, 2004
    #4
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.