|
POST
|
Hi Rich, Thank you for information about the plans. My code works as I need for now.
... View more
07-10-2019
10:48 PM
|
0
|
1
|
2469
|
|
POST
|
Hi Rich, I think I found solution, but I don't know if it is the best. The way of enumerating I described in previous reply. This is code of my solution: // Add a folder to the Project var folderToAdd = ItemFactory.Instance.Create(sResultsPath); await QueuedTask.Run(() => Project.Current.AddItem(folderToAdd as IProjectItem)); // find the folder project item FolderConnectionProjectItem folder = Project.Current.GetItems<FolderConnectionProjectItem>().FirstOrDefault(f => f.Path.Equals(sResultsPath, StringComparison.CurrentCultureIgnoreCase)); if (folder == null) return; // do the search IEnumerable<Item> folderFiles = null; await QueuedTask.Run(() => folderFiles = folder.GetItems().Where(f => f.Type == "Raster Dataset")); foreach (Item item in folderFiles) { System.Diagnostics.Debug.WriteLine(item.ToString()); }
... View more
07-09-2019
11:19 PM
|
1
|
3
|
2469
|
|
POST
|
Hi Uma, I have tried your snippet on grid rasters. I can send you grid and lyrx if you need.
... View more
07-09-2019
10:54 PM
|
0
|
6
|
3678
|
|
POST
|
Hi Rich, I am starting from folder path on disk. ArcMap application creates rasters and I use ArcGIS Pro to visualize them. I have tried to create a new FileSystemDatastore using the FileSystemConnectionPath, but compiler can’t cast FileSystemDatastore to Geodatabase. I think that I must add my folder to Project first ant then get back from Project my folder as FolderConnectionProjectItem. Then use GetItems from FolderConnectionProjectItem to get my rasters and etc. I will try to do that.
... View more
07-09-2019
08:29 AM
|
0
|
0
|
2469
|
|
POST
|
Hi, I would like to enumerate raster datasets in folder where other process created them. Something like in ArcObjects: pDatasets = pWorkspace.get_Datasets(esriDatasetType.esriDTRasterDataset); I have found information about GetItems here: https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Content-and-Items#items-and-factories But I do not know how to get starting item from my folder path, what factory and what item to use.
... View more
07-09-2019
08:06 AM
|
0
|
6
|
2550
|
|
POST
|
Hi Uma, Thanks for reply. Your snippet doesn’t work with old lyr files (crashes with HResult=0x80004005 Message=Could not determine encoding). It does not work with “Classify“ colorizer in lyrx file too. The only way what works is loading lyr(x) file and updating data source. But there are other problems with locking as I mentioned earlier.
... View more
07-09-2019
01:11 AM
|
0
|
0
|
3133
|
|
POST
|
Hi Uma, What about the same functionality for raster layers? I have installed 2.4 and found that RasterLayer does not have SetRenderer method. My workarounds some how lock my data and I can't run calculations on the same database on ArcMap. The place that locks my database is creating raster layer with symbology.
... View more
07-04-2019
06:49 AM
|
0
|
2
|
3133
|
|
POST
|
Hi, Have you seen that kind arrangement on ArcGIS Pro?
... View more
07-01-2019
02:36 AM
|
0
|
1
|
2040
|
|
POST
|
Hi Dylan, You need to change attribute checkForUpdatesAtStartup value to true in config.daml file: <Configuration blockCustomizeDialog="false" blockPerfMeter="true" checkForUpdatesAtStartup="true"> <ConfigurationManager className="ConfigurationManager1"/> </Configuration> By default it is false. More info here: https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Configurations I have checked in my configuration project and it works. Maybe you need to set other two attributes from my code. I have just copied all attributes to my config.daml
... View more
07-01-2019
01:17 AM
|
1
|
0
|
2322
|
|
POST
|
Hi Max, You can use UpdateModule definition in config.daml file like this: <updateModule refID="Updated_Module"> <tabs> <updateTab refID="updated_tab"> <insertGroup refID="xxx_Group" insert="after" placeWith="yyy_Group" /> </updateTab> </tabs> </updateModule>
... View more
07-01-2019
12:08 AM
|
0
|
3
|
2040
|
|
POST
|
Hi Brian, I have had refreshing problems with symbolizing when using more complicated symbolization (symbol rotation, few different fields and etc.) Have you tried refresh unsuccessful symbolized layers from layer property in TOC? 1. In opened layer properties select Cache page. 2. In Cache page press "Clear Cache". 3. After that choose "Don't cache any data locally". Press OK. If it helps then you need to change your way and do not use ApplySymbologyFromLayer_management. 1. Remove existing layer 2. Create layer from lyr file 3. Update data source to removed layer path. 4.Clear cache It sounds strange but I use that workaround from the beginning. More info here: https://community.esri.com/thread/198403-pro-20-bug-apply-symbology-from-layer-geoprocessing-tool
... View more
06-20-2019
07:05 AM
|
0
|
4
|
3913
|
|
POST
|
Hi Brian, Have you tried to set GPExecuteToolFlags flags = GPExecuteToolFlags.GPThread; More info here: https://community.esri.com/thread/198403-pro-20-bug-apply-symbology-from-layer-geoprocessing-tool
... View more
06-19-2019
10:46 PM
|
2
|
6
|
3913
|
|
POST
|
Hi John, I think the better way is to create new object with two members (string and bool) and make binding in xaml. It is not good way to add code to both classes view and viewmodel. Look at this link: https://stackoverflow.com/questions/13611113/how-to-bind-listboxitem-isselected-to-boolean-data-property
... View more
06-09-2019
11:47 PM
|
0
|
0
|
1746
|
|
POST
|
We have IGraphicsContainer on ArcObjects SDK and we use it for some temporary information storing. As I understand for the same purpose I could use map notes templates (for example Line note template). How can I add Line template layer to map I have some plans (using template id activate tool), but how to check which layer was added? By layer name or other properties? What will be if customer will change layer properties? I would like to add and delete features depending on my workflow.
... View more
06-04-2019
07:41 AM
|
0
|
2
|
1232
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 04-24-2026 08:33 AM | |
| 1 | 03-23-2026 11:44 AM | |
| 1 | 05-22-2024 11:48 PM | |
| 1 | 02-27-2026 10:33 AM | |
| 1 | 01-07-2026 10:44 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|