Jeff Mishler wrote:
> Don't use the references.....see the thread that Don Reichle started earlier
> this month with the subjetc "Olde Current Surface-Alignment VBA code
> problems". I posted an acad.dvb for him that does just what you are
> asking.....the same acad.dvb works with LDD3 through LDD2007.
>
> The best way I've found to code for this, so that the Intellisense works
> while you're coding, is to use the reference for whatever version you have
> open. Code, test, fix code, test, etc. until you are stisfied that it works.
> Then remove the reference and change ALL variables Dim'ed as AEC.... objects
> to Object. For intsance, in your original code you have this:
>
> Dim oAeccApp As AeccApplication
> Dim oSurf As AeccSurface
>
> change these to be:
> Dim oAeccApp As Object
> Dim oSurf As Object
>
> Test one more time to make sure you got all of them changed......and that
> should do it.
>
> Jeff
>
> wrote in message news:5212896@discussion.autodesk.com...
> What's the best way to create VBA routines that will run on multiple
> versions of LD?
>
> Is there a way to include multiple references in a dvb to avoid the user
> having to enter the IDE?
>
> Thanks in advance.
And other than a wrinkle produced by most-likely something on my PC,
Jeff's approach was working admirably saluki.
HTH
--
Don Reichle
"The only thing worse
than training your staff,
and having them leave is -
not training your staff,
and having them stay."
Courtesy Graphics Solution Providers
----------------------------------------------------------
!! Please discuss whatever we tell you with your SysMgr !!
!! They appreciate staying in the loop 🙂 !!
LDT/CD-2K4
AMD Athlon 64 X2 Dual 2.01GHz
XPPro 32bit SP2
2GB RAM
Dual WD800JD Hard Drives - 149GB Nvidia Stripe
Nvidia Quadro FX 1300 128MB
Dual ViewSonic 19-inch VA902b monitors