POST
|
This will work great if he's creating a python add-in.
... View more
08-21-2015
09:04 AM
|
0
|
0
|
1179
|
POST
|
This link might help as a workaround. Basically create an empty group layer file manually to use in your script (as long as you don't save it back out and overwrite it you can keep using it): http://gis.stackexchange.com/a/4684/2436
... View more
08-20-2015
09:21 AM
|
1
|
3
|
1179
|
POST
|
Thank you for looking into this and verifying it for me, Sami. I'm happy to hear that it will not be a problem at 10.3! -Mat
... View more
06-03-2015
09:22 AM
|
1
|
0
|
2005
|
POST
|
1- Created Add-in X in Visual Studio 2012. 2- Copied Add-in X to Network Folder which has been added as an Add-In folder in the options tab of the Add-in Manager (or alternately as a well-known folder via registry key) 3- Open ArcMap and Add-in X works correctly 4- Modified Add-in X source code in Visual Studio 2012 5- Rebuild Add-in X in Visual Studio 2012 and update version numbers, etc 6- Replaced Add-in in the Network Folder 7- Close ArcMap 8- Open ArcMap and the Toolbar from Add-in X shows fine, but the button doesn't work 9- Check Add-In Manager and version number matches step 4 10- Check AssemblyCache and the dll from from Add-in X has not been updated (old time stamp and dll version number). 11. Manually deleting the dll and closing/reopening ArcMap solves the problem (it loads the dll correctly from the Add-In in the known folder).
... View more
05-29-2015
10:12 AM
|
0
|
5
|
2005
|
POST
|
Sami, Does the end user need to have any particular permissions to the AssemblyCache folder in order for this process to work? I'm having issues with old versions of the add-ins not being updated when I push new ones to network folders.
... View more
05-18-2015
11:02 AM
|
0
|
7
|
2005
|
POST
|
Well this is odd. I just understood what you were saying about GENERATE_BY_GRID being a typo. That's actually a value in my domain for the Dynamic Value table in the Value_Method field so it seems that perhaps my implementation (this was given to me by another contractor) has been messed with and that's why I can't get it to work. I'll keep you posted in case I find something different. Thank you for all your help. I'll mark your above answer as the correct one shortly.
... View more
02-18-2015
04:46 PM
|
1
|
0
|
927
|
POST
|
Unfortunately that didn't do it. The width parameter is actually optional, anyhow, according to the documentation: ArcGIS for Local Government 10.2
... View more
02-17-2015
10:57 AM
|
0
|
4
|
926
|
POST
|
Hello, I'm trying to use Attribute Assistant in my organization, and I'm trying to get AssetIDs to populate based on this rule, but it won't work. Any ideas? Table Name: sdManhole Field Name: ASSETID Value Method: GENERATE_ID_BY_GRID Value Info: MapIndex|PageName|Seq_Num|[id][seq] SYSID generation is working perfectly. I turned on debugging in the config file and receive this error (despite getting a message box from AA that all operations succeeded): ------------------------------------------------ Row Info Row Number 1 TableName: sdManhole FieldName: ASSETID ValueInfo: MapIndex|PageName|Seq_Num|[id][seq] ValueMethod: GENERATE_ID_BY_GRID On Create: 1 On Change: 1 Checking for Subtype Restriction Field Name: ASSETID was found at index: 4 ERROR: GENERATE_ID_BY_GRID for layer sdManhole is not a valid method, check the dynamic value table Any help would be much appreciated in this matter.
... View more
02-12-2015
03:18 PM
|
0
|
8
|
5452
|
POST
|
I wouldn't use the result like that, rather you should use the layername variable in your call to add layer: #Add new layer to the dataframe arcpy.MakeRasterLayer_management(heatMapTest2, layername) arcpy.mapping.AddLayer(dataFrame, layername, "AUTO_ARRANGE")
... View more
07-24-2014
11:30 AM
|
1
|
2
|
335
|
POST
|
So I found that I had to remove and re-add the last item in the legend to get it to update properly, without getting messed up in size and font.
for (int i = 0; i < activeView.FocusMap.MapSurroundCount; i++)
{
IMapSurround mapSurround = activeView.FocusMap.MapSurround;
if (mapSurround is ILegend)
{
ILegend legend = mapSurround as ILegend;
ILegendItem legendItem = legend.get_Item(legend.ItemCount - 1);
legend.RemoveItem(legend.ItemCount - 1);
legend.AddItem(legendItem);
}
}
I know that this shouldn't be the right way to do this, but it is the only way that works as far as I can tell. It sure seems like there's an event that's not hooked up properly.
... View more
06-13-2011
06:33 PM
|
0
|
0
|
857
|
POST
|
Hi, This is related to an ArcMap add-in I coded up this past week. I'm trying to rename a layer in ArcMap and have the legend refresh properly. The renaming part is working fine, however I cannot get the legend in the layout to update properly. I call CurrentContents.Refresh() to refresh the name in the table of contents, which works. If I search through the map surrounds and call .Refresh() on the legend, then do an ActiveView.PartialRefresh() on it, the legend gets all out of whack. This is why I am trying to simply trigger the same event as when the user manually changes the name of a layer. The API documentation seems to say that MxDocument.UpdateContents() will trigger the events needed to refresh the legend. However, this does not seem to be the case. In addition to the above methods I have tried ActiveView.ContentsChanged() to no avail. Any suggestions are welcome. Thanks, Mat
... View more
06-11-2011
12:32 PM
|
0
|
1
|
2263
|
Title | Kudos | Posted |
---|---|---|
1 | 08-20-2015 09:21 AM | |
1 | 07-24-2014 11:30 AM | |
1 | 02-18-2015 04:46 PM | |
1 | 06-03-2015 09:22 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|