Link to home
Start Free TrialLog in
Avatar of coenewnes
coenewnes

asked on

Custom AutoCAD BOM macro for 2006 with 2007???

I have a VBA macro that was originally written for, I believe, AutoCAD Mechanical 2002.  The macro has been updated and such to work with AutoCAD Mechanical 2005 and AutoCAD Electrical 2005 and 2006.  We are looking to upgrade to Electrical 2007 and when testing the macro found that it no longer works.

The function of the macro is to pull information off of the blocks inserted into the drawing and create a Bill Of Materials in the corner of the layout.  I am pretty new to VBA for AutoCAD but know VB pretty well.

There is no error and the command line in AutoCAD says that the macro ran.  The thing is that it does not update the Bill Of Materials.  I can probably post the code for the .dvb file if that will help..

Any idea's or known problems with the way AutoCAD differs in the way 2006 and 2007 handle the macros or something?

Thanks for any responses in advance,
cn
ASKER CERTIFIED SOLUTION
Avatar of norrin_radd
norrin_radd
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Start the program and go to the help tab.  Autocad has very good online help.  They have a section called something like "What's new" where they discuss changes to that particular program.  Sometimes they make changes to command functions and programing variables.  I would compare what has been changed with what is common in your routine.
Avatar of coenewnes
coenewnes

ASKER

The ref to iacadpviewports was wrong...
Thanks for the tip norrin...