|
POST
|
It is probably related to this: https://pro.arcgis.com/en/pro-app/latest/help/projects/sign-in-to-your-organization.htm note option 3: Check Sign in automatically to have ArcGIS Pro store your credentials and sign in to the portal automatically; this option is checked by default. Uncheck Sign in automatically if you prefer to provide your credentials each time you start ArcGIS Pro.
... View more
06-23-2023
10:05 AM
|
0
|
0
|
4087
|
|
POST
|
Uma did a nice session on use of custom data templates at Dev Summit fyi. https://github.com/Esri/arcgis-pro-sdk/wiki/tech-sessions https://esri.github.io/arcgis-pro-sdk/techsessions/2023/PalmSprings/Demo/Customize-Galleries-and-Comboboxes-with-Templates.zip
... View more
06-22-2023
11:42 AM
|
1
|
1
|
2514
|
|
POST
|
Rather buried in the documentation, I'm afraid, is the explanation for why this isnt working: https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic15000.html the User and PWD properties are for use with legacy ArcGIS Server hosted services that are _not_ federated. Instead, I think this is the pattern u r looking for: ArcGIS.Core.System.Core.ArcGISSignOn: https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic25971.html Ideally u register a sign-on handler and resolve the credentials in your sign-on handler based on which service is calling u back (on your handler). However, if u know, upfront, that u r always calling just one service then u can bypass the callback handler pattern and just go against ArcGIS.Core.System.Core.ArcGISSignOn.SignInWIthCredentials directly. Here's what it would look like tho' there is a complete example here: https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic25964.html No callback: //just call SignInwithCredentials directly....no call back:
var scp = new ServiceConnectionProperties(feature_service_uri);
//authenticate
string referer = "";
string token = "";
var ok = ArcGIS.Core.SystemCore.ArcGISSignOn.Instance.SignInWithCredentials(
portal_uri, user, superSecretPwd, out referer, out token);
//connect
using (var federatedFeatureService = new Geodatabase(scp)) {
... With callback: internal class ChallengeHandler : ISignOnHandler {
private void GetStoredUserNameAndPassword(
string url, out string user, out string pwd) {
user = "";
pwd = "";
if (url == "https://your_portal/portal/")
{
//TODO retrieve the relevant credentials
}
else if (url == "https://your_portal2/portal/")
{
//etc.
}
}
//Call back when the service requires authentication
public void GenerateCredentials(ref SIGNONHANDLERINFO info){
string user = "";
string superSecretPwd = "";
GetStoredUserNameAndPassword(
info.agoURL, out user, out superSecretPwd);
//Authenticate
var uri = new Uri(info.agoURL, UriKind.Absolute);
string referer = "";
string token = "";
var ok =
ArcGIS.Core.SystemCore.ArcGISSignOn.Instance.SignInWithCredentials(
uri, user, superSecretPwd, out referer, out token);
if (ok) {
//TODO: for example, if you want to retain the token and referer
//for your own purposes that code would go here...
}
}
}
//elsewhere - in your console Main(...)
//Set your challenge handler...
ArcGIS.Core.SystemCore.ArcGISSignOn.Instance.SetSignonHandler(new ChallengeHandler());
var scp = new ServiceConnectionProperties(feature_service_uri);
//connect - if authentication is required, your callback will be invoked...
using (var federatedFeatureService = new Geodatabase(scp)) {
...
... View more
06-22-2023
11:36 AM
|
0
|
2
|
4100
|
|
POST
|
Looks like u select your/the custom Profile on the Pro options: https://github.com/Esri/arcgis-pro-metadata-toolkit/wiki/Build-your-first-ArcGIS-Pro-metadata-editor-add-in see step 10 and step 15. Metadata Related: Item metadata is described here: https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Content-and-Items#item-metadata There are some metadata related snippets here: https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Content#item-get-its-imetadata-interface
... View more
05-31-2023
01:33 PM
|
0
|
1
|
1951
|
|
POST
|
CreateFeatureclass_management adds content to the map via the "Add output datasets to an open map" setting I believe. I did not see an option anywhere to specify a layer as a target. Perhaps confirm with the GP team? https://community.esri.com/t5/geoprocessing-questions/bd-p/geoprocessing-questions
... View more
05-30-2023
10:47 AM
|
0
|
1
|
2053
|
|
POST
|
there are already built-in context menus for the mapview/scene view, depending on which COTS tool is active. Customize the relevant existing context menus to host your custom functionality - whether buttons, tools, menus, etc. Here is an example of customizing the default map view context menu - shown when the "Explore" tool is active and the 2D selection menu shown when the "Select" tool is active. "<updateModule" goes in your Config.daml <button id="TestAddin_Button1" caption="Test Addin 1" ... />
...
<updateModule refID="esri_mapping">
<menus>
<updateMenu refID="esri_mapping_popupToolContextMenu">
<deleteButton refID="esri_mapping_prevExtentButton"/>
<deleteButton refID="esri_mapping_nextExtentButton"/>
<deleteButton refID="esri_mapping_locateReverseGeocode"/>
<insertButton refID="TestAddin_Button1" insert="before"
placeWith="esri_mapping_cameraPropertiesControl"/>
</updateMenu>
<updateMenu refID="esri_mapping_selection2DContextMenu">
<deleteButton refID="esri_core_editCopyButton"/>
<deleteButton refID="esri_core_editPasteButton"/>
<deleteButton refID="esri_core_editDeleteButton"/>
<insertButton refID="TestAddin_Button1" insert="before"
placeWith="esri_editing_EditVerticesMove" separator="true"/>
</updateMenu>
</menus>
</updateModule>
. Result:
... View more
05-26-2023
11:52 AM
|
2
|
2
|
3405
|
|
POST
|
Hi Dave, can u try this: FrameworkApplication.Current.Dispatcher.BeginInvoke(() => {
OperationManager opManager = MapView.Active.Map.OperationManager;
List<Operation> ops = opManager.FindUndoOperations(
o => o.Name.Contains(opName));
ops.ForEach(op => opManager.RemoveUndoOperation(op));
}); I think u need to match the FindUndoOperations with a RemoveUndoOperation and vice versa for FindRedo.... and RemoveRedo....
... View more
05-15-2023
10:47 AM
|
0
|
0
|
1832
|
|
POST
|
Hi Dave, can u try: _proWindow.SaveWindowPosition = false;//override last position of the window we will make sure this gets added to the Pro SDK documentation.
... View more
05-15-2023
10:43 AM
|
4
|
1
|
2668
|
|
POST
|
I suggest reading up on stream services: https://enterprise.arcgis.com/en/server/latest/publish-services/windows/stream-services.htm That may be what u r after. Your stream service cld publish the extent of your map (in Pro) for example.
... View more
04-11-2023
10:57 AM
|
0
|
0
|
1744
|
|
POST
|
Go to: https://github.com/Esri/arcgis-pro-sdk/releases/tag/3.0.0.36056 Scroll down to "Assets". Download the vsix's (see image). Double-click to install. Note: because u have previously installed a later version (3.1), u will need to uninstall those vsix's first. U cannot install an older version on top of a newer version.
... View more
04-10-2023
07:06 PM
|
1
|
2
|
2154
|
|
POST
|
Set the dialog filter to ItemFilters.Folders. A FolderConnectionProjectItem will be returned. var home = Project.Current.HomeFolderPath;
var opn_dlg = new OpenItemDialog();
opn_dlg.Title = "Select a Folder";
opn_dlg.InitialLocation = home;
opn_dlg.MultiSelect = false;//or true, whichever
opn_dlg.Filter = ArcGIS.Desktop.Catalog.ItemFilters.Folders;//select folders only
bool? ok = opn_dlg.ShowDialog();
if (ok == true) {
var folder = opn_dlg.Items[0] as FolderConnectionProjectItem;
var path = folder.Path;
//TODO - use folder selection
}
... View more
04-10-2023
03:09 PM
|
1
|
0
|
1460
|
|
POST
|
that's why yours doesnt work then. Check your ArcGIS 2D style and why it doesnt contain a "ArcGIS North 13"
... View more
03-31-2023
01:31 PM
|
0
|
0
|
1670
|
|
POST
|
I cannot repro. U can also try this as a workaround: QueuedTask.Run(()=> {
...
var naStyleItem = arcgis2dStyles.SearchNorthArrows("ArcGIS North 13").FirstOrDefault();
//get the item definition
var cim_na = naStyleItem.GetObject() as CIMMarkerNorthArrow;
...
var naInfo = new NorthArrowInfo() {
MapFrameName = newFrame.Name,
//NorthArrowStyleItem = naStyleItem
};
var newNorthArrow = ElementFactory.Instance.CreateMapSurroundElement(
layout_local, nArrow.ToMapPoint(), naInfo);
//Apply the style
var def = newNorthArrow.GetDefinition() as CIMMarkerNorthArrow;
def.GraphicFrame = cim_na.GraphicFrame;
def.PointSymbol = cim_na.PointSymbol;
newNorthArrow.SetDefinition(def);
});
... View more
03-31-2023
11:43 AM
|
0
|
2
|
1677
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-19-2026 10:29 AM | |
| 1 | 04-29-2026 02:06 PM | |
| 1 | 01-08-2026 02:03 PM | |
| 1 | 01-08-2026 02:15 PM | |
| 3 | 12-17-2025 11:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|