POST
|
I must be missing something. I can't even add an ESRI reference to the Context menu, let alone my own button. This should put the save button in the context menu for the Selection <updateModule refID="esri_mapping"> <menus> <updateMenu refID="esri_mapping_selection2DContextMenu"> <insertButton refID="esri_core_saveProjectButton" placeWith="esri_mapping_locateReverseGeocode" /> </updateMenu> </menus> </updateModule>
... View more
03-26-2018
02:10 PM
|
0
|
4
|
2700
|
POST
|
I have a button I created in my tool bar that opens a custom attribute form that I created. I would like to add this button to the right click menu of the selected feature context menu. So when one or more features is selected, and I right click, my Open Attribute Menu item will be on the list. In ArcObjects I was able to do this by adding it to the Command Bar for the Edit Tool menu. I was hoping that it would be this simple in ArcGIS Pro, or if I was able to do this in the DAML somehow. My initial efforts or simply adding a menu in the DAML and setting ContextMenu="True" and adding my button reference did not work. But i feel like I am missing something that might make this process quite easy as I do see contextMenu in the xsd for ArcGIS.Desktop.Framework.
... View more
03-26-2018
07:09 AM
|
0
|
10
|
4207
|
POST
|
Here is what i do in my code. I am sure there is a better way to get the path to your app.config, but here is what i do. i create a settings class that is used to retrieve all the values from the App.Config. I set it up once and I am able to call it from everywhere. In the below example I initialize the appconfig Configuration mConfig and create public procedures to retrieve the values using it and the App.Config. You can change the AppConfigpath below to match where the relative location in the output directory. Hope this helps. //APP.CONFIG
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1"/>
</startup>
<appSettings>
<!--Set the Environment-->
<add key="Environment" value="TR"/>
</appSettings>
</configuration>
//Settings Class used to retrieve values from App.Config
public static class Settings
{
private static Configuration mConfig;
static Settings()
{
initializeAppConfig();
MessageBox.Show(CurrentApplicationEnvironment);
}
//CurrentApplicationEnvironment
private static string _CurrentApplicationEnvironment;
public static string CurrentApplicationEnvironment
{
get
{
if (string.IsNullOrEmpty(_CurrentApplicationEnvironment))
{
_CurrentApplicationEnvironment = mConfig.AppSettings.Settings["Environment"].Value;
}
return _CurrentApplicationEnvironment;
}
}
const string appConfigPath = "App.Config";
private static void initializeAppConfig()
{
try
{
string executingAssemblyFqPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
executingAssemblyFqPath = (System.IO.Path.Combine(executingAssemblyFqPath, appConfigPath));
if (System.IO.File.Exists(executingAssemblyFqPath))
{
ExeConfigurationFileMap map = new ExeConfigurationFileMap();
map.ExeConfigFilename = executingAssemblyFqPath;
mConfig = ConfigurationManager.OpenMappedExeConfiguration(map, ConfigurationUserLevel.None);
}
}
catch (Exception e)
{
}
}
}
... View more
03-20-2018
07:54 AM
|
2
|
4
|
3568
|
POST
|
On the App.Config do you have the Build Action set as "Content" and the Copy to Output Directory set to "Copy Always"? I use the App.Config to store my web service URLs in the App Settings section, much like you do for the Connection string above.
... View more
03-20-2018
06:15 AM
|
0
|
6
|
3567
|
POST
|
I haven't dug into this in a while. I never could get it to clear the list of projects. I am sure there is a way to edit the xml. I have to remove them manually. I just delete RecentProjects items from the file user.config in the directory %localappdata%l\ESRI\ArcGISPro.exe_StrongName_XXXXXXXX\2.1.0.0 The StrongName Folder name and version will vary of course, but goto %localappdata%l\ESRI\ and find the strongname folder and version. I also like to cleanup my projects too. %userprofile%\documents\ArcGIS\Projects
... View more
03-16-2018
08:10 AM
|
2
|
0
|
588
|
POST
|
I want to set the Caption for the map pane to represent what is in that map pane. I know how to do this programmatically to the caption using the following, but that does not save. ProApp.Panes.ActivePane.Caption = caption; I know you can do this manually in catalog using Right/Click rename. I want to do this in code based on what I created in that map. This way I don't have to reload the Caption on MapLoad everytime if it is already set.
... View more
03-02-2018
11:00 AM
|
0
|
2
|
747
|
POST
|
We are using Server 10.5.1 with this feature service and that has not changed in quite a while
... View more
02-23-2018
12:34 PM
|
0
|
1
|
742
|
POST
|
Can you confirm that the Created/Modified and CreatedBy/ModifiedBy are no longer available on the Row sent to the Row Created event in Moduule. It this is the case we might have a big problem and I will have to roll back my Pro version and my SDK. I know this previously worked before my upgrade to 2.1.1.
... View more
02-21-2018
04:35 AM
|
0
|
3
|
742
|
POST
|
What is a workaround to refresh the feature cache for a particular layer? Is there something I am not finding here?
... View more
02-21-2018
04:32 AM
|
0
|
1
|
3391
|
POST
|
Did this Redraw Class ever get created? I need to redraw my feature class as I have multiple users working in the same geographic area and being able to trigger this would be great.
... View more
02-19-2018
08:57 AM
|
0
|
4
|
3391
|
POST
|
Why was the CTRL+Click on a layer in Table of contents to Open Attribute Table not put in ArcGIS Pro. I loved this feature in ArcMap and am hoping that I am missing a place to customize or readd this feature back into ArcGIS Pro. since CTRL+Click does nothing right now, I really wish they would add it back. If not customization available, where is the best place to leave a suggestion for ESRI to consider for a future Update.
... View more
02-19-2018
08:28 AM
|
1
|
2
|
1313
|
POST
|
Could this have anything to do with why my Initial Inspector in my rowcreated event in my module is no longer returning the Created/Modified dates. Did something get fixed with the Inspector that I create from the Row in the RowCreated event? I am experiencing a number of issues with 2.1.1 release and I think they all have to do with some inspector changes.
... View more
02-17-2018
06:36 AM
|
0
|
5
|
742
|
POST
|
I build a custom form that populates and shows as soon as a feature is created for a featured data service. This form has always populated with the Dates created/modified and with the Modified/Created by info. This is launched from the onrowcreate event in the module. I upgraded to 2.1.1 this week Now when I make a new feature item using the service and try to retrieve these values (dates/modifiedby) the inspector returns null for both of them. The only way I can get them to populate now is to close the form and refresh the cache using the Circle/Recycle button on the bottom right of map view. I never had to do this previously? inInspector["CreatedBy"].ToString(); This value is now null on a new Row until you refresh the cache?
... View more
02-16-2018
09:05 AM
|
0
|
1
|
362
|
POST
|
I am using an ESRI Combo Box in my toolbar. This Combo Box is loaded with the IDs of whatever polygons are in my map. When a user switches to another location, with a whole new set of polygons, I want my Combo Box to update itself. The problem is that I can't seem to figure out how to run my Update/Populate logic from outside of the combobox code. I need to be able to tell the combo box from other functions to revalidate or reinitialize itself? I think I need to make some static reference to this function, but can't seem to be able to accomplish this? The below code works initially, but when the user switches, i need to be able to call updateCombo from anywhere, or just tell the combo to reload. public GoToCurrent()
{
UpdateCombo();
}
public async void UpdateCombo()
{
try
{
Enabled = false;
Clear();
SortedSet<string> FieldIdList = await FeatureServiceManagement.getFeatureLayerUniqueList("Current Field", "", "CurrentFieldId");
if (!FieldIdList.IsNullOrEmpty())
{
foreach (string fieldID in FieldIdList)
{
Add(new ComboBoxItem(fieldID));
}
}
Enabled = true;
}
catch (Exception e)
{
logError("UpdateCombo", e);
}
}
... View more
02-09-2018
09:36 AM
|
0
|
1
|
965
|
POST
|
I upgraded to ArcGIS Pro 2.1.1 and all of a sudden i was getting this error whenever i tried to set an inspectors attribute "This method or property must be called on the thread this object was created on" I had never wrapped my inspector in queuedtask before this upgrade, but now am i required to with the upgrade from 2.0.8933 to 2.1.1? Will this affect my users running the 2.0.8933 version of ArcGIS Pro? QueuedTask.Run(() =>
{
inInspector[fieldName] = newValue;
});
... View more
02-09-2018
09:25 AM
|
0
|
7
|
1006
|
Title | Kudos | Posted |
---|---|---|
1 | 08-23-2018 06:49 AM | |
1 | 08-02-2023 08:28 AM | |
1 | 01-03-2020 10:54 AM | |
1 | 11-30-2017 06:41 AM | |
1 | 08-20-2018 01:10 PM |
Online Status |
Offline
|
Date Last Visited |
a month ago
|