POST
|
I forgot to mention that this also occurs through shell execute. ie. double click the mxd to launch ArcMap.
... View more
02-05-2014
11:10 AM
|
0
|
1
|
131
|
POST
|
That doesn't help because it's for Add-in buttons and tools.
... View more
02-04-2014
10:59 AM
|
0
|
0
|
535
|
POST
|
Did your add-in previously save information in this map document? In other words was OnSave called and you added data and then saved the mxd? I have not used this before for add-ins but have some experience with classic IExtension objects. Yes, the data is saved into the mxd with OnSave. I am able to read it back(OnLoad executes) if I load the mxd from an already open session of ArcMap. This issue only occurs if the mxd is loaded through the command line.
... View more
02-03-2014
01:47 PM
|
0
|
0
|
535
|
POST
|
OK obvious first question to ask: does the addin extension onLoad run when you open ArcMap and then your MXD? Yes, OnLoad does run if you open the mxd that way.
... View more
02-03-2014
01:42 PM
|
0
|
0
|
535
|
POST
|
OnLoad is supposed to be called when opening a document with a persisted stream. But, when I try loading the MXD from the command line (ie. arcmap.exe somemapdoc.mxd), OnLoad never executes in my Add-in. Is there a work around for this issue?
... View more
02-02-2014
03:16 PM
|
0
|
11
|
2969
|
POST
|
I found a work around that's not ideal, but it works. I just simply create a dummy coverage until the real one is created in the new workspace.
... View more
02-02-2014
10:10 AM
|
0
|
0
|
114
|
POST
|
I am trying to modify the data source for some coverage layers by using replaceDataSource to change the workspace to a new location. The new workspace does not have the coverages created yet, so I should be able to set the replaceDataSource validate option to False to create a broken layer data source placeholder. When I try this, the data source remains unchanged, so either it's a bug or I am doing something wrong. I am using 10.1 SP1.
... View more
02-01-2014
08:12 PM
|
0
|
1
|
2877
|
POST
|
I have developed a VB.NET GP tool by implementing the IGPFunction2 interface. It worked great in ArcGIS 9 and not so well in ArcGIS 10. The problem is that when geoprocessing background processing is enabled, I cannot get my tool to add a derived feature class layer to the current map. I am using GPUtilitiesClass.GetMap() to get the map and adding the layer to it. This works with background processing disabled, so I conclude that objects created in one process cannot be used by another. How can I get around this problem?
... View more
02-07-2011
11:10 AM
|
0
|
0
|
1505
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|