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?
> > >
> >
>