Incrementing Revision Macro

Hello everyone,

I wrote the attached macro about 6 months ago and it has been working fine.  Recently, we switched from SolidWorks 2007 x32 Bit to SolidWorks 2010 x64 Bit.  I've gotten all my macros updated and working perfectly except this one.

What it's suppose to do:

  • Verify the active document is a drawing with a revision table.
  • If the drawing is a size A, the userform displayed should not have a zone.  Otherwise it should.
  • Once the Userform is filled out, the Revision Table should have a new revision and the revision property should be whatever was typed into the revision field.

What it does:

It keeps getting hung up on "Load RevBlockControl1"  and gives me Error '91'

I can't find that variable that I haven't defined.  Does anyone know how to fix this?

SolidworksApi macros