[Maptitude] Re: Problem when running a macro

2012-06-14 Thread ivanmf_iimf
Hi, This is exactly what I was looking for, very thanks, it will be so useful. Thanks a lot! Ivan --- In Maptitude@yahoogroups.com, maptitude-ow...@yahoogroups.com wrote: > > Hi: > There is however a way to make a call from another language (e.g. > Delphi) to initialize all the global variable

[Maptitude] Re: Problem when running a macro

2012-06-14 Thread Maptitude-owner
Hi: There is however a way to make a call from another language (e.g. Delphi) to initialize all the global variables required by the "standard UI macros". There is a macro in the gis_ui called "init_client", and it takes two (optional, but recommended) arguments log_file and search_path. It runs al

[Maptitude] Re: Problem when running a macro

2012-06-14 Thread ivanmf_iimf
Very Thanks, I'll set the properties before open the map. Ivan --- In Maptitude@yahoogroups.com, maptitude-ow...@yahoogroups.com wrote: > > Hi: > Some of the "standard UI macros", such as "G30 default layer settings" > depend on the Maptitude standard interface having been launched, with > all it

[Maptitude] Re: Problem when running a macro

2012-06-14 Thread Maptitude-owner
Hi: Some of the "standard UI macros", such as "G30 default layer settings" depend on the Maptitude standard interface having been launched, with all its attendant initialization routines. This is why it works when you already have Maptitude open, but not when your Delphi application accesses Mapti

[Maptitude] Re: Problem when running a macro

2012-06-14 Thread ivanmf_iimf
Hi, Thanks for while! Now, if I run the macro on Delphi XE2 using the following code: RemoteMapObject.RunUIMacro('G30 new layer default settings', 'gis_ui', layerName); I don't get the error anymore. But the error just don't appear if Maptitude.exe is open in another window. If I try to run

[Maptitude] Re: Problem when running a macro

2012-06-12 Thread Maptitude-owner
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

[Maptitude] Re: Problem when running a macro

2012-06-11 Thread ivanmf_iimf
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 Maptitude@yahoogroups.com, maptitude-ow...@yahoogroups.com wrote: > > Hi: > You should use RunUIMacro(), not RunMacro(). This lets you

[Maptitude] Re: Problem when running a macro

2012-06-11 Thread Maptitude-owner
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 Group Moderator -

[Maptitude] Re: Problem when running a macro

2012-06-11 Thread ivanmf_iimf
I'm using Maptitude 6.0 Version 2012 Build 1120 32-bit --- In Maptitude@yahoogroups.com, maptitude-ow...@yahoogroups.com wrote: > > Hi: > What version of Maptitude are you running? > Maptitude Mapping Software Group Moderator > > --- In Maptitude@yahoogroups.com, Ivan M

[Maptitude] Re: Problem when running a macro

2012-06-11 Thread Maptitude-owner
Hi: What version of Maptitude are you running? Maptitude Mapping Software Group Moderator --- In Maptitude@yahoogroups.com, 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