POST
|
"This method or property must be called on the thread this object was created on. I get this exception when creating a Map object either from an existing map or creating a new map. Map map = null; //ArcGIS.Desktop.Framework.Dialogs.MessageBox.Show("Open"); var mapProjectItems = Project.Current.GetItems<MapProjectItem>(); if (mapProjectItems.Count() > 0) { var mapProjectItem = mapProjectItems.First(); //FirstOrDefault(mpi => mpi.Name.Equals("World Map")); map = mapProjectItem.GetMap(); ProApp.Panes.CreateMapPaneAsync(map); } else { map = MapFactory.Instance.CreateMap("World Map", ArcGIS.Core.CIM.MapType.Map, ArcGIS.Core.CIM.MapViewingMode.Map, Basemap.Terrain); } Mitch
... View more
02-02-2018
10:39 AM
|
1
|
4
|
4054
|
POST
|
Okay, tried a couple of variations but still no luck. Hopefully this will eventually be documented.
... View more
10-24-2013
12:59 PM
|
0
|
0
|
271
|
POST
|
Thanks, my plan was to use the /f option but I still need to know what I need to put into the xml file. The only ECFG files I have were generated by EsriRegAsm which doesn't help. Here's what I extracted: <?xml version="1.0"?> <ESRI.Configuration ver="1"> <Categories> <Category CATID="{B56A7C42-83D4-11D2-A2E9-080009B6F22B}"> <Class CLSID="{AEDF990E-5F53-408D-961B-1789073DE1CA}"/> </Category> <Category CATID="{B56A7C4A-83D4-11D2-A2E9-080009B6F22B}"> <Class CLSID="{E9E81DA7-A70D-43C1-94EA-89C345ED29CE}"/> </Category> </Categories> </ESRI.Configuration> Just by guess I added an id property to the Category node but that didn't work. It did raise a question about the location of the ECFG files. I have installed my add on's to Desktop 10.2 but the only ECFG files are listed under Desktop10.1 even though I have folders for 10.0 and 10.2. Copying the files to Desktop10.2 didn't make any difference.
... View more
10-24-2013
12:09 PM
|
0
|
0
|
271
|
POST
|
I'm using EasriRegAsm to register my add on dll (written in Delphi) which works fine but in the ARC Categories program the objects are listed with empty names. I've unzipped the ECFG file that's created but can't find any documentation on the Config.xml file that would allow me to add my category names. Can someone point me in the right direction? Thanks
... View more
10-24-2013
08:00 AM
|
0
|
4
|
775
|
POST
|
Hooray! I tried once more and it worked without using the IP of the server and using your code as a template and it worked. Thank you for your time and help, Mitch Wolberg, RockWare, Inc.
... View more
07-25-2013
11:01 AM
|
0
|
0
|
217
|
POST
|
I was able to use your sample with server name where you supplied IP address. Maybe you need to supply the fully qualified name for your SERVERINSTANCE ? server.domain_name maybe? Just gave that a shot and got: Failure to access the DBMS server Mitch
... View more
07-25-2013
08:23 AM
|
0
|
0
|
1010
|
POST
|
Thanks Leo, there seems to be a lot of inconsistency in the help: AUTHORIZATION_MODE vs AUTHENTICATION_MODE, DBCLIENT vs DATABASE_CLIENT, etc. Maybe either one would work but it's just one more thing that makes it difficult to work things out. Of course it would also be nice if the components returned a more helpful error message that didn't leave you guessing as to the missing or incorrect parameters. One last gripe, why require both a Server and a Server IP address, one or the other should be sufficient. There's a lot of power in ArcObjects but after I've spent a day dealing with an uncooperative black box I get frustrated. Mitch Wolberg, RockWare, Inc.
... View more
07-24-2013
02:09 PM
|
0
|
0
|
1010
|
POST
|
Got it too work with ISqlWorkspaceFactory by supplying the IP of the server! pProps.SetProperty ( 'SERVER' , 'servername' ) ; pProps.SetProperty ( 'INSTANCE' , 'sde:sqlserver:servername' ) ; pProps.SetProperty ( 'DATABASE' , 'SamplesSQL' ) ; pProps.SetProperty ( 'DBCLIENT' , 'SQLServer' ) ; pProps.SetProperty ( 'SERVERINSTANCE' , 'IP Address of server' ) ; //***Key*** pProps.SetProperty ( 'AUTHENTICATION_MODE' , 'OSA' ) ; Even better, I was able to create the IFeatureWorkspace, load the table and plot a point map. Thanks for your help. Mitch Wolberg RockWare, Inc.
... View more
07-24-2013
12:55 PM
|
0
|
0
|
1010
|
POST
|
Thanks but it didn't work and since it isn't an SDE DB (though it does have geospatial data) I'm not sure it would have helped anyway.
... View more
07-24-2013
11:47 AM
|
0
|
0
|
1010
|
POST
|
I'm having some problems creating a connection to an MS SQL Server DB. pWrkspcFact := CoSqlWorkspaceFactory.Create as IWorkspaceFactory ; pProps := CoPropertySet.Create as IPropertySet ; pProps.SetProperty ( 'DATABASE' , 'SamplesSQL' ) ; pProps.SetProperty ( 'DBCLIENT' , 'SQLServer' ) ; pProps.SetProperty ( 'SERVERINSTANCE' , 'Quandry' ) ; pProps.SetProperty ( 'AUTHENTICATION_MODE' , 'OSA' ) ; pWrkspcFact.Open( pProps , 0 ) ; On calling Open I get along wait and the following error: "Failure to access the DBMS server" This is coded in Delphi but it should work the same as .NET or C++. I've played with connection strings and different property names since the documentation is a bit inconsistent but without any success. Any idea what I'm missing or doing wrong? Mitch Wolberg, RockWare, Inc.
... View more
07-24-2013
09:56 AM
|
0
|
11
|
4881
|
POST
|
After additional testing I find that it only occurs on my development computer. I presume I've messed up the registry somehow.
... View more
09-10-2010
11:09 AM
|
0
|
0
|
195
|
POST
|
I get this error form ArcMap 10 when my COM Toolbar is activated either on startup (Loading Document) or when I activate the toolbar. Anybody know what the problem might be?
... View more
09-10-2010
08:44 AM
|
0
|
1
|
409
|
Title | Kudos | Posted |
---|---|---|
1 | 02-02-2018 10:39 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|