AutoCAD Map 3D Forum
Welcome to Autodesk’s AutoCAD Map 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VBA & Reference Library

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
434 Views, 2 Replies

VBA & Reference Library

I'm doing some (beginning) programming in VBA in AcadMap 2000i, and I
discovered that the reference library for AcadMap had to be manually loaded
(from the VB editor, Tools, References...) in order for the Map components
to be made available.

Is there a way of loading the reference library programmically so that when
I give the completed VBA program out to production I won't have to add the
note that the reference library needs to be loaded before it will work?


Eric Smallwood
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Hi Eric,

I think that once you have loaded the reference library into your VBA
project, the reference is saved in the dvb. When the application is executed
on a production machine, the dvb file looks for the linked libraries on the
local machine. As long as the production machine is running Map, the
reference library should be present and registered and the application will
find them.

So to summarize:
Load the Map component library when you start a new VBA project.
Write your code.
Save the project to a dvb file.
Distribute the dvb file to your production machines.
You are done.

The only time the reference library needs to get loaded is when you start a
new project as it is not loaded by default.Hope this helps clarify things.

Cheers,
Will


"Eric Smallwood" wrote in message
news:691799FA3E6B5877011D6DBA383F7035@in.WebX.maYIadrTaRb...
> I'm doing some (beginning) programming in VBA in AcadMap 2000i, and I
> discovered that the reference library for AcadMap had to be manually
loaded
> (from the VB editor, Tools, References...) in order for the Map components
> to be made available.
>
> Is there a way of loading the reference library programmically so that
when
> I give the completed VBA program out to production I won't have to add the
> note that the reference library needs to be loaded before it will work?
>
>
> Eric Smallwood
>
>
>
>
Message 3 of 3
Anonymous
in reply to: Anonymous

Excellent, that's just what I need to know. Thanks.

E;)
"Will Crichton" wrote in message
news:70DA711B318A6812DEB8BB3A43108B39@in.WebX.maYIadrTaRb...
> Hi Eric,
>
> I think that once you have loaded the reference library into your VBA
> project, the reference is saved in the dvb. When the application is
executed
> on a production machine, the dvb file looks for the linked libraries on
the
> local machine. As long as the production machine is running Map, the
> reference library should be present and registered and the application
will
> find them.
>
> So to summarize:
> Load the Map component library when you start a new VBA project.
> Write your code.
> Save the project to a dvb file.
> Distribute the dvb file to your production machines.
> You are done.
>
> The only time the reference library needs to get loaded is when you start
a
> new project as it is not loaded by default.Hope this helps clarify things.
>
> Cheers,
> Will
>
>
> "Eric Smallwood" wrote in message
> news:691799FA3E6B5877011D6DBA383F7035@in.WebX.maYIadrTaRb...
> > I'm doing some (beginning) programming in VBA in AcadMap 2000i, and I
> > discovered that the reference library for AcadMap had to be manually
> loaded
> > (from the VB editor, Tools, References...) in order for the Map
components
> > to be made available.
> >
> > Is there a way of loading the reference library programmically so that
> when
> > I give the completed VBA program out to production I won't have to add
the
> > note that the reference library needs to be loaded before it will work?
> >
> >
> > Eric Smallwood
> >
> >
> >
> >
>
>

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost