Just to clarify: You must replace RunMacro() with RunUIMacro(), and also
specify the UI database.
If you are specifying "gis_ui", and it still gives you the message, then
it's likely a path issue, meaning that you'll have to specify the full
path to the ui, e.g. "C:\Program Files\Maptitude 2012\gis_ui"
Maptitude Mapping Software <http://www.caliper.com>   Group Moderator



--- In [email protected], "ivanmf_iimf"
<ivan.marcelo.ferreira@...> wrote:
>
> If I change the RunMacro() by RunUIMacro() the error changes too.
> Now I got the following error message:
>
> "Couldn't find the UI database"
>
> What about now?
>
> --- In [email protected], [email protected]
wrote:
> >
> > Hi:
> > You should use  RunUIMacro(), not RunMacro().  This lets you specify
> > exactly the UI in which the macro you want to run is located, in
this
> > case "gis_ui".
> > Example:
> > objMaptitude.RunUIMacro("G30 new layer settings", "gis_ui")
> > Maptitude Mapping Software <http://www.caliper.com>   Group
Moderator
> >
> > --- In [email protected], "ivanmf_iimf"
> > <ivan.marcelo.ferreira@> wrote:
> > >
> > > I'm using Maptitude 6.0 Version 2012 Build 1120 32-bit
> > >
> > > --- In [email protected], [email protected]
> > wrote:
> > > >
> > > > Hi:
> > > > What version of Maptitude are you running?
> > > > Maptitude Mapping Software <http://www.caliper.com>   Group
> > Moderator
> > > >
> > > > --- In [email protected], Ivan Marcelo Ferreira
> > > > <ivan.marcelo.ferreira@> wrote:
> > > > >
> > > > > Hi!
> > > > >
> > > > > We are trying to run a macro called 'G30 new layer default
> > settings'
> > > > via
> > > > > Delphi with DCOM.
> > > > > So when I run the following code, the program returns an error
> > > > "Function
> > > > > undefined".
> > > > >
> > > > > RemoteMapObject.RunMacro('G30 new layer default settings',
> > layerName);
> > > > >
> > > > > How can I solve the problem?
> > > > >
> > > >
> > >
> >
>

Reply via email to