Map Image insert & VBA Object Model....

Map Image insert & VBA Object Model....

Anonymous
Not applicable
878 Views
5 Replies
Message 1 of 6

Map Image insert & VBA Object Model....

Anonymous
Not applicable
Hello all.

I want to create a function to insert and image using the Map Insert Image
command.
After searching, I don't believe this is part of the Object Model...
I do however have a 'CAD Overlay' reference installed on this machine...

I don't think CAD Overlay has ever been installed on this machine, so I'm
wondering if this reference has been istalled by Map, and this is way to
tackle this?

I can call the command via 'Sendcommand' to accomplish this, but was hoping
I could avoid that?

Ideas?

Warren M
0 Likes
879 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Warren,

I also have the CO 2002 libray on my machine - Map 2002 must install it
since it is using the CO engine for rasters.

Take a look at the aecImageInsert Class.

For reference, look at ActiveX.hlp in the Cad Overlay\help folder.

Hope This helps,
Scott

"Warren Medernach" wrote in message
news:5E33D29107BC6FA9FD94DF200F809E8A@in.WebX.maYIadrTaRb...
> Hello all.
>
> I want to create a function to insert and image using the Map Insert Image
> command.
> After searching, I don't believe this is part of the Object Model...
> I do however have a 'CAD Overlay' reference installed on this machine...
>
> I don't think CAD Overlay has ever been installed on this machine, so I'm
> wondering if this reference has been istalled by Map, and this is way to
> tackle this?
>
> I can call the command via 'Sendcommand' to accomplish this, but was
hoping
> I could avoid that?
>
> Ideas?
>
> Warren M
>
>
0 Likes
Message 3 of 6

Anonymous
Not applicable
Hey Scott.
That's kind of the problem...
There is no CO directory on a Map install... at least not on mine?

I checked out a machine that does have CO installed and found the
ActiveX.hlp file with all of the examples, You'll see the examples are
calling an ARX to see if CO is loaded, AeciUi20.arx, but this ARX is not on
a machine that only has Map?

So I'm starting to wonder if this is possible from the Map api?

Warren

"Scott Friedrich" wrote in message
news:5FDDE974B82706D593F0EEF3310EDC23@in.WebX.maYIadrTaRb...
> Warren,
>
> I also have the CO 2002 libray on my machine - Map 2002 must install it
> since it is using the CO engine for rasters.
>
> Take a look at the aecImageInsert Class.
>
> For reference, look at ActiveX.hlp in the Cad Overlay\help folder.
>
> Hope This helps,
> Scott
>
> "Warren Medernach" wrote in message
> news:5E33D29107BC6FA9FD94DF200F809E8A@in.WebX.maYIadrTaRb...
> > Hello all.
> >
> > I want to create a function to insert and image using the Map Insert
Image
> > command.
> > After searching, I don't believe this is part of the Object Model...
> > I do however have a 'CAD Overlay' reference installed on this machine...
> >
> > I don't think CAD Overlay has ever been installed on this machine, so
I'm
> > wondering if this reference has been istalled by Map, and this is way to
> > tackle this?
> >
> > I can call the command via 'Sendcommand' to accomplish this, but was
> hoping
> > I could avoid that?
> >
> > Ideas?
> >
> > Warren M
> >
> >
>
>
0 Likes
Message 4 of 6

Anonymous
Not applicable
Sorry about that - I was at a machine with CO Installed. I do have a WS
with only Map 2002 and I am able to ref CO. The arx is in the 'Program
Files\Common Files\Autodesk Shared' folder.


"Warren Medernach" wrote in message
news:3F390664510D0FF4914240E3869683D6@in.WebX.maYIadrTaRb...
> Hey Scott.
> That's kind of the problem...
> There is no CO directory on a Map install... at least not on mine?
>
> I checked out a machine that does have CO installed and found the
> ActiveX.hlp file with all of the examples, You'll see the examples are
> calling an ARX to see if CO is loaded, AeciUi20.arx, but this ARX is not
on
> a machine that only has Map?
>
> So I'm starting to wonder if this is possible from the Map api?
>
> Warren
>
> "Scott Friedrich" wrote in message
> news:5FDDE974B82706D593F0EEF3310EDC23@in.WebX.maYIadrTaRb...
> > Warren,
> >
> > I also have the CO 2002 libray on my machine - Map 2002 must install it
> > since it is using the CO engine for rasters.
> >
> > Take a look at the aecImageInsert Class.
> >
> > For reference, look at ActiveX.hlp in the Cad Overlay\help folder.
> >
> > Hope This helps,
> > Scott
> >
> > "Warren Medernach" wrote in message
> > news:5E33D29107BC6FA9FD94DF200F809E8A@in.WebX.maYIadrTaRb...
> > > Hello all.
> > >
> > > I want to create a function to insert and image using the Map Insert
> Image
> > > command.
> > > After searching, I don't believe this is part of the Object Model...
> > > I do however have a 'CAD Overlay' reference installed on this
machine...
> > >
> > > I don't think CAD Overlay has ever been installed on this machine, so
> I'm
> > > wondering if this reference has been istalled by Map, and this is way
to
> > > tackle this?
> > >
> > > I can call the command via 'Sendcommand' to accomplish this, but was
> > hoping
> > > I could avoid that?
> > >
> > > Ideas?
> > >
> > > Warren M
> > >
> > >
> >
> >
>
>
0 Likes
Message 5 of 6

Anonymous
Not applicable
I can't see the AeciUi20.arx file anywhere, even on the machine with CO
installed?
From what I can see, the arx's that Map loads when the Image command is
executed are:
AeciIb22.arx
AeciIbApi22.arx
AeciUiBase22.arx

And the 'Autodesk CAD Overlay 2.2 Object Library' reference in VBA points to
'AeciIbCom22.dll'?

Scott, do you have any of this working in Map, ie attaching images via VBA?

Warren M

"Scott Friedrich" wrote in message
news:9AFBB6E1B83E9F83A1B152729DB9A657@in.WebX.maYIadrTaRb...
> Sorry about that - I was at a machine with CO Installed. I do have a WS
> with only Map 2002 and I am able to ref CO. The arx is in the 'Program
> Files\Common Files\Autodesk Shared' folder.
>
>
> "Warren Medernach" wrote in message
> news:3F390664510D0FF4914240E3869683D6@in.WebX.maYIadrTaRb...
> > Hey Scott.
> > That's kind of the problem...
> > There is no CO directory on a Map install... at least not on mine?
> >
> > I checked out a machine that does have CO installed and found the
> > ActiveX.hlp file with all of the examples, You'll see the examples are
> > calling an ARX to see if CO is loaded, AeciUi20.arx, but this ARX is not
> on
> > a machine that only has Map?
> >
> > So I'm starting to wonder if this is possible from the Map api?
> >
> > Warren
> >
> > "Scott Friedrich" wrote in message
> > news:5FDDE974B82706D593F0EEF3310EDC23@in.WebX.maYIadrTaRb...
> > > Warren,
> > >
> > > I also have the CO 2002 libray on my machine - Map 2002 must install
it
> > > since it is using the CO engine for rasters.
> > >
> > > Take a look at the aecImageInsert Class.
> > >
> > > For reference, look at ActiveX.hlp in the Cad Overlay\help folder.
> > >
> > > Hope This helps,
> > > Scott
> > >
> > > "Warren Medernach" wrote in message
> > > news:5E33D29107BC6FA9FD94DF200F809E8A@in.WebX.maYIadrTaRb...
> > > > Hello all.
> > > >
> > > > I want to create a function to insert and image using the Map Insert
> > Image
> > > > command.
> > > > After searching, I don't believe this is part of the Object Model...
> > > > I do however have a 'CAD Overlay' reference installed on this
> machine...
> > > >
> > > > I don't think CAD Overlay has ever been installed on this machine,
so
> > I'm
> > > > wondering if this reference has been istalled by Map, and this is
way
> to
> > > > tackle this?
> > > >
> > > > I can call the command via 'Sendcommand' to accomplish this, but was
> > > hoping
> > > > I could avoid that?
> > > >
> > > > Ideas?
> > > >
> > > > Warren M
> > > >
> > > >
> > >
> > >
> >
> >
>
>
0 Likes
Message 6 of 6

Anonymous
Not applicable
Warren,

Apparently we are not able to use the CO api with vanilla Map - I can not
find AeciUi20.arx
on the machines that do not have CO installed either. All of my testing
has been with CO installed with Map or LDT. One workaround is to use the
acadRasterImage in vanilla AutoCAD - this will not read the resource file
but you could do that programmatically - or use the sendcommand.


"Warren Medernach" wrote in message
news:E3B642F74F1CF8F0AD18771060D3B8FF@in.WebX.maYIadrTaRb...
> I can't see the AeciUi20.arx file anywhere, even on the machine with CO
> installed?
> From what I can see, the arx's that Map loads when the Image command is
> executed are:
> AeciIb22.arx
> AeciIbApi22.arx
> AeciUiBase22.arx
>
> And the 'Autodesk CAD Overlay 2.2 Object Library' reference in VBA points
to
> 'AeciIbCom22.dll'?
>
> Scott, do you have any of this working in Map, ie attaching images via
VBA?
>
> Warren M
>
> "Scott Friedrich" wrote in message
> news:9AFBB6E1B83E9F83A1B152729DB9A657@in.WebX.maYIadrTaRb...
> > Sorry about that - I was at a machine with CO Installed. I do have a WS
> > with only Map 2002 and I am able to ref CO. The arx is in the 'Program
> > Files\Common Files\Autodesk Shared' folder.
> >
> >
> > "Warren Medernach" wrote in message
> > news:3F390664510D0FF4914240E3869683D6@in.WebX.maYIadrTaRb...
> > > Hey Scott.
> > > That's kind of the problem...
> > > There is no CO directory on a Map install... at least not on mine?
> > >
> > > I checked out a machine that does have CO installed and found the
> > > ActiveX.hlp file with all of the examples, You'll see the examples are
> > > calling an ARX to see if CO is loaded, AeciUi20.arx, but this ARX is
not
> > on
> > > a machine that only has Map?
> > >
> > > So I'm starting to wonder if this is possible from the Map api?
> > >
> > > Warren
> > >
> > > "Scott Friedrich" wrote in message
> > > news:5FDDE974B82706D593F0EEF3310EDC23@in.WebX.maYIadrTaRb...
> > > > Warren,
> > > >
> > > > I also have the CO 2002 libray on my machine - Map 2002 must install
> it
> > > > since it is using the CO engine for rasters.
> > > >
> > > > Take a look at the aecImageInsert Class.
> > > >
> > > > For reference, look at ActiveX.hlp in the Cad Overlay\help folder.
> > > >
> > > > Hope This helps,
> > > > Scott
> > > >
> > > > "Warren Medernach" wrote in message
> > > > news:5E33D29107BC6FA9FD94DF200F809E8A@in.WebX.maYIadrTaRb...
> > > > > Hello all.
> > > > >
> > > > > I want to create a function to insert and image using the Map
Insert
> > > Image
> > > > > command.
> > > > > After searching, I don't believe this is part of the Object
Model...
> > > > > I do however have a 'CAD Overlay' reference installed on this
> > machine...
> > > > >
> > > > > I don't think CAD Overlay has ever been installed on this machine,
> so
> > > I'm
> > > > > wondering if this reference has been istalled by Map, and this is
> way
> > to
> > > > > tackle this?
> > > > >
> > > > > I can call the command via 'Sendcommand' to accomplish this, but
was
> > > > hoping
> > > > > I could avoid that?
> > > > >
> > > > > Ideas?
> > > > >
> > > > > Warren M
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
0 Likes