POST
|
Thank you for these links. So the short answer is that I cannot author GP Tools in .NET, and that any such tools have to be completely rewritten in Python.
... View more
01-25-2021
09:30 AM
|
0
|
0
|
103
|
POST
|
Is there any documentation or samples that show how to create a Pro GP tool in .net. Documentation for Arcmap was rather spase and didn't cover .net, but there was a sample for a simple tool. I have not been able to find anything at all for Pro.
... View more
01-22-2021
03:14 PM
|
1
|
4
|
147
|
POST
|
While there are several questions and answers and samples using OpenItemDialog, I haven't found any for SaveItemDialog which is giving me trouble. I need to use this in an Add-In to ask the user for an output location for one or more featureclass(es) that may or may not already exist. If the selected output location is a featureclass then that gets created if necessary and then used, but if it is a workspace, then my code will determine the featureclass name and create it. This works OK if a featureclass name is specified by the user except that the returned FilePath strips off .shp if a shapefile is specified and additional coding is required . But, if a workspace is specified by the user, there are bigger problems: if a filegeodatabase is specified, then the returned Filepath has .GDB stripped off, and if a shapefile workspace (folder) then the "Save" button in the dialog is disabled, as if the dialog doesn't recognize a folder as a workspace, nor does it work using using the esri_browseDialogFilters_folders filter. A second point of confusion is the documentation for the AlwaysUseInitialLocation property. If set to true then the specified InitialLocation is used, but if False then "if not specified, the initial location may be the last location opened using the current filter" May? When or why doesn't it use the last location? Sub testSaveDialog() Dim pCompFilter As New BrowseProjectFilter pCompFilter.AddFilter(BrowseProjectFilter.GetFilter("esri_browseDialogFilters_featureClasses_all")) pCompFilter.AddFilter(BrowseProjectFilter.GetFilter("esri_browseDialogFilters_workspaces_all")) pCompFilter.AddFilter(BrowseProjectFilter.GetFilter("esri_browseDialogFilters_folders")) Dim saveItemDlg As SaveItemDialog = New SaveItemDialog() saveItemDlg.BrowseFilter = pCompFilter saveItemDlg.Title = "Output location" saveItemDlg.InitialLocation = "F:\" saveItemDlg.OverwritePrompt = False saveItemDlg.AlwaysUseInitialLocation = True Dim ok As Boolean = saveItemDlg.ShowDialog() If ok = False Then MsgBox("Aborted") Else MsgBox(saveItemDlg.FilePath) End If End Sub
... View more
09-19-2020
12:42 PM
|
0
|
0
|
53
|
POST
|
Thank you for the link! All my searches led to other places that did not have this help file.
... View more
08-26-2020
10:27 AM
|
0
|
0
|
56
|
POST
|
For version 2.4 I was able to find a .chm containing the whole reference somewhere. It was excruciatingly slow, but still much more useful than the online HTML version that doesn't have an index to quickly get to the classes you're looking for. A table of contents is fine for reading a book, but not as a reference. Not to mention it doesn't work at all without internet. Is there an SDK reference, with an index, that can be downloaded for version 2.6 ?
... View more
08-25-2020
07:26 PM
|
0
|
2
|
122
|
IDEA
|
This all worked like normal windows in ArcView 3.x. Then it went to really bad in ArcGIS 9.x. Unbelievably, it was made even worse in 10.x. And here it is, 2 decades later, and this nonsense persists in all versions of Pro! C'mon, Windows automatically come with a minimize button, programmers have to remove it to create an incredibly annoying UI like this.
... View more
06-09-2020
05:35 PM
|
2
|
0
|
81
|
POST
|
Christopher, Thanks for responding. Yes, I have already studied the "Migrating to ArcGIS Pro" document, In fact I was quite thrilled to find it, and then very disappointed when I looked at the content. "Migration" is not addressed at all, this is truly a "Getting Started" (from scratch) document. For those of us that have spent years learning, developing, and refining our knowledge of customizing ArcGIS UnPro (ArcMap), there is little if anything that helps us apply those hard-won skills to migrating. Clearly, while Pro is a completely different animal and many things are different, there are still many concepts and approaches that are still the exactly the same even if they are just sporting new names and terminology. And yes, what I have been able to do so far has been because of the community samples. Indeed, samples are the lifeblood of a GIS Engineer that needs to have many GIS skills that are not programming related, yet still needs to use programming as just another tool to accomplish a larger task by cobbling together bits and pieces borrowed from samples. I am looking forward to the resumption of real (not online) instructor-led training. I have looked at several of the DevSummit videos, and even paused them to painstakingly copy some code to a file. It would be great if any code from these videos were made available digitally. Please don't mention PDF, the bane of all GIS datahounds.
... View more
06-09-2020
12:58 PM
|
0
|
1
|
134
|
POST
|
Thank you very much, Gintautas! The first suggestion didn't work, but the second one did. It could be further cleaned up as strMsgs += Await QueuedTask.Run(Function() getDefs()) And your suggestion for getting rid of the Async modifier worked a treat. Awesome!
... View more
06-09-2020
09:30 AM
|
0
|
0
|
134
|
Online Status |
Offline
|
Date Last Visited |
01-25-2021
11:01 AM
|