|
POST
|
Hi, You can check geodatabase connection string: FeatureClass fc = ... var gdb = fc.GetDatastore() as Geodatabase; string connection = gdb.GetConnectionString(); string workspaceName = connection.Split('=')[1]; string ext = Path.GetExtension(workspaceName); if (string.Compare(ext, ".gdb", true) != 0 ) { } else if(string.Compare(ext, ".sde", true) != 0) { }
... View more
03-03-2021
07:18 AM
|
0
|
1
|
2182
|
|
POST
|
Hi, Look at the ArcGIS Pro samples: https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Framework/Licensing You can build extension and authorize it by password. Add-ins could be enabled/disable by conditions and extension.
... View more
03-02-2021
07:10 AM
|
1
|
7
|
3422
|
|
POST
|
Hi, GPExecuteToolFlags.AddOutputsToMap and GPExecuteToolFlags.Default flags adds outputs to the map. You can manage all available flags as you want or as you need. (https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic9375.html ) More info about "in_memory" workspace problems here: https://community.esri.com/t5/arcgis-pro-sdk-questions/in-memory-workspace/m-p/787033#M1303
... View more
02-24-2021
07:13 AM
|
0
|
0
|
2790
|
|
POST
|
Hi, What do you mean by "Dockpane closing"? By pressing x at the right upper corner you just hide dockpane. So if it's right place for your reset code, so you can override OnShow Dockpane class method: protected override void OnShow(bool isVisible) { if (!isVisible) { SaveDirectory = null; } } UninitializeAsync will be called on ArcGIS Pro closing.
... View more
02-23-2021
07:18 AM
|
1
|
5
|
5155
|
|
POST
|
Hi, If I understand your question right then you can activate Esri, your or third-party tools the same way. As described in link. One thing which you need to know it is tool ID. Here is link for Esri tools ID: https://github.com/Esri/arcgis-pro-sdk/wiki/ArcGIS-Pro-DAML-ID-Reference If you can find Esri sketch tool which is useful for your workflow you can activate it. Otherwise your can create your own sketch tool. Here is the link to related thread: https://community.esri.com/t5/arcgis-pro-sdk-questions/how-do-i-activate-deactivate-a-maptool/td-p/874112
... View more
02-16-2021
12:26 AM
|
1
|
0
|
3991
|
|
POST
|
Hi, In your configuration daml file you can modify existing ArcGIS Pro ribbons, menus and etc. For example delete New project, Open project or etc. tools/commands. You just need to know module id and tool/command IDs
... View more
02-15-2021
01:05 PM
|
0
|
0
|
2732
|
|
POST
|
Hi Adam, Look here: https://github.com/esri/arcgis-pro-sdk/wiki/ProSnippets-Framework#set-the-current-tool
... View more
02-15-2021
12:56 PM
|
0
|
4
|
4057
|
|
POST
|
Hi, I have had the same situation but not with zoom. Esri stuff recommended to divide process inside QueuedTask.Run. I have a mind what it is a cache problem. Now if something does not work I try to divide one QueuedTask.Run to few if it possible.
... View more
02-10-2021
10:18 PM
|
2
|
1
|
2529
|
|
POST
|
WhereClause = "OBJECTID IN (1, 2, ....)" or best way to use .ObjectIDs property of QueryFilter .ObjectIDs = oids // Where oids is List<long>
... View more
02-09-2021
11:10 PM
|
2
|
1
|
3994
|
|
POST
|
Hi, Select must be called on the MCT. Use QueuedTask.Run: await QueuedTask.Run(() => { QueryFilter queryFilter = new QueryFilter { WhereClause = "OBJECTID = 12227" }; featureLayer.Select(queryFilter); });
... View more
02-09-2021
10:24 PM
|
1
|
3
|
3999
|
|
POST
|
Hi, Here is your problem: pQueryFilter.WhereClause = "HEI1 in (select HEI1 from EXTRA.House where number = 2502163)" You need to add to WhereClause only where section of your query: pQueryFilter.WhereClause = "number = 2502163"
... View more
01-22-2021
09:25 AM
|
0
|
0
|
1680
|
|
POST
|
Hi Christian, I would suggest you to use ProjectClosingEvent. On initializing call : ProjectClosingEvent.Subscribe(OnProjectClosing); Body of OnProjectClosing: private Task OnProjectClosing(ProjectClosingEventArgs args) { // if already cancelled, ignore if (args.Cancel) return Task.CompletedTask; // Do your tasks //var vm = FrameworkApplication.DockPaneManager.Find(_dockPaneID); //if (vm != null) vm.Hide(); return Task.CompletedTask; }
... View more
01-11-2021
05:59 AM
|
1
|
1
|
1818
|
|
POST
|
In MVVM you need to override Docpane's OnActivate or InitializeAsync to fill your observable collection like this: protected override void OnActivate(bool isActive) { base.OnActivate(isActive); if (isActive) { // Place here your observable collection initialization if it depends on map situation or etc. } } protected override async Task InitializeAsync() { await base.InitializeAsync(); // Place here your observable collection initialization if it needs one time creation }
... View more
12-03-2020
05:59 AM
|
1
|
0
|
810
|
|
POST
|
Hi Daniel, Look here maybe it helps: https://community.esri.com/t5/arcgis-pro-sdk-questions/how-can-i-show-the-quot-loading-animation-quot-using-arcgis-pro/td-p/838948
... View more
12-02-2020
10:26 PM
|
0
|
2
|
2981
|
|
POST
|
Hi, You can use MVVM only in that cases where Esri UI elements need it ( Dockpanes, PropertyPages and etc.) All other functionality you can code without MVVM. You can use and windows forms but they look different. About ListBox_Initialized. Sorry, I have never used this event and I don't know case where it would be needed.
... View more
12-02-2020
10:13 PM
|
0
|
2
|
7736
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a month ago | |
| 1 | a month ago | |
| 1 | 06-30-2026 10:14 PM | |
| 1 | 06-30-2026 01:43 PM | |
| 2 | 04-24-2026 08:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
Monday
|