|
POST
|
Hi, You can do checking if you have your own tools for deleting. But you are not sure that customer will not press Delete button on Attribute table window or somewhere else.
... View more
07-01-2022
06:21 AM
|
0
|
1
|
2281
|
|
POST
|
Hi, Long time ago when IClassExtensions have started to die we have found solution on Russia Esri distributors forum. There is no such page now. I have checked our old code and found that we call function like this: /// <summary>
/// Abort editing operation.
/// </summary>
public void AbortOperationWithoutStopEditing()
{
try
{
m_ipEditor.AbortOperation();
}
catch (Exception ex)
{
throw;
}
} where m_ipEditor is IEditor type class variable. Solution author wrote about strange messages, but solution works pretty good for us.
... View more
07-01-2022
05:56 AM
|
0
|
0
|
2284
|
|
POST
|
Hi, Override MapTool method: protected override Task HandleDoubleClickAsync(MapViewMouseButtonEventArgs e)
{
return base.HandleDoubleClickAsync(e);
}
... View more
06-29-2022
01:28 AM
|
0
|
1
|
1955
|
|
POST
|
Hi, I have copied code from my addin. It works as in your attached picture. P.s. You can check ArcGIS Community Sample : https://github.com/Esri/arcgis-pro-sdk-community-samples/blob/master/Map-Exploration/CustomPaneWithContents/Config.daml Change daml'e as I wrote above with your own picture
... View more
06-23-2022
10:08 AM
|
1
|
1
|
4047
|
|
POST
|
Hi, Pane in daml has property smallimage: <panes>
<pane id="My_Pane" caption="My Pane" className="MyPaneViewModel" smallImage="Images\pane16.png" defaultTab="xxx" defaultTool="esri_mapping_navigateTool">
<content className="MyPaneView" />
</pane>
</panes> Image\pane16.png must be set to AddInContent. Is it possible to set image on fly I don't know.
... View more
06-23-2022
04:55 AM
|
0
|
3
|
4058
|
|
POST
|
Hi, I suggest you to use sample code. You don't need to use esri_mapping_selectByPolygonTool tool. You can make it yourself. In sample you can find class SeqNumTool. It could be your tool analog. One thing you need is to make selection on your layer in OnSketchCompleteAsync method. Something like this: SpatialQueryFilter filter = new SpatialQueryFilter();
filter.FilterGeometry = geometry;
filter.SpatialRelationship = SpatialRelationship.Intersects;
yourLayer.Select(filter, SelectionCombinationMethod.New); And remember about MCT
... View more
06-21-2022
10:30 PM
|
0
|
1
|
2306
|
|
POST
|
Hi , You need to save all event subscription tokens to list first, then unsubscribe one by one from list. There is ArcGIS Pro SDK community sample EditEvents . You can find usable code here.
... View more
06-17-2022
07:04 AM
|
1
|
0
|
1374
|
|
POST
|
Hi, There is a problem with signing to portal. You need to move signing code from OnUpdateDatabase to OnApplicationReady. More info here: https://community.esri.com/t5/arcgis-pro-sdk-questions/portal-login-programmatically/m-p/1000543 protected override void OnApplicationReady()
{
// get the login username from Portal
var portal = ArcGISPortalManager.Current.GetActivePortal();
if (portal != null && portal.SignIn().success)
{
ConfigWithMapModule.UserName = portal.GetSignOnUsername();
}
}
... View more
06-16-2022
07:11 AM
|
0
|
0
|
670
|
|
POST
|
Hi, Yes, you can do it by ArcGIS Pro SDK for .NET. Sample is here: https://community.esri.com/t5/arcgis-pro-sdk-questions/call-python-script-from-c-button-in-pro-add-in/m-p/839169
... View more
06-15-2022
10:17 PM
|
1
|
0
|
1490
|
|
POST
|
Hi, Have you tried this: var layers = MapView.Active.GetSelectedLayers();
... View more
06-14-2022
10:31 PM
|
2
|
0
|
1042
|
|
POST
|
Hi, You are trying to change workspace type. findAndReplaceWorkspacePaths can't do that. You need to use replaceWorkspaces from MapDocument, or replaceDatasource from Layer. More info here: https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/updatingandfixingdatasources.htm
... View more
06-13-2022
10:16 PM
|
0
|
1
|
1027
|
|
POST
|
Hi, I would recommend you to use MapTool with Embeddable control template of ArcGIS Pro. One of Esri community samples to demonstrate functioning is SequentialNumberTool sample. Embeddable control works as Dockpane only one difference that it will be shown if your MapTool is active. MapTool has connection to dialog.
... View more
06-02-2022
05:12 AM
|
1
|
1
|
2345
|
|
POST
|
Hi, You could use code below to get all MapPanes: IEnumerable<IMapPane> mapPanes = FrameworkApplication.Panes.OfType<IMapPane>();
foreach (var mapPane in mapPanes)
{
}
... View more
05-24-2022
08:33 AM
|
0
|
0
|
3749
|
|
POST
|
Hi, It is simple. Use SetEditable method from layer. fl.SetEditable(fl.Name == "Blabla");
... View more
05-23-2022
06:57 AM
|
0
|
0
|
655
|
|
POST
|
Hi, "The Inspector.ApplyAsync() method applies and saves the changes in one shot (there is no undo). Whereas EditOperation.Modify(inspector) will apply the changes and add an undo operation to the Pro undo/redo stack on EditOperation.Execute." https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Editing
... View more
05-19-2022
10:17 PM
|
0
|
0
|
2000
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 2 weeks ago | |
| 2 | 04-24-2026 08:33 AM | |
| 1 | 03-23-2026 11:44 AM | |
| 1 | 05-22-2024 11:48 PM |
| Online Status |
Online
|
| Date Last Visited |
2 weeks ago
|