|
POST
|
Hi Than, What type is your rasterInfo.CellSize variable? Try to set constant value first (5,10 or 50). And you don't need to convert MakeValueArray arguments to string. They are all object type. MakeValueArray checks argument types itself and converts how it needs. After MakeValueArray you can check parameters variable with debugger watch and see what value for cell size was defined.
... View more
12-10-2019
11:09 PM
|
0
|
5
|
2880
|
|
POST
|
Hi Than, I think you need to save your raster to get updated properties. Look at this link: https://community.esri.com/thread/213505-raster-setwidth-not-working
... View more
12-09-2019
03:52 AM
|
0
|
7
|
2880
|
|
POST
|
In ArcGIS Pro database structure editing, raster creation and analysis and much more functionality are realized using geoprocessing. For small task it is enough, but for big applications it takes a lot time to start geoprocessing. To troubleshoot geoprocessing check geoprocessing messages after executing tool: // gp_result is the returned result object from a call to ExecuteToolAsync // displays error messages if the tool fails, otherwise shows the default messages Geoprocessing.ShowMessageBox(gp_result.Messages, "GP Messages", gp_result.IsFailed ? GPMessageBoxStyle.Error : GPMessageBoxStyle.Default); More info: https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geoprocessing Other questions could be answered by Esri stuff only
... View more
12-02-2019
10:53 PM
|
2
|
1
|
2756
|
|
POST
|
Hi Than, Sample code: IReadOnlyList<string> parameters = Geoprocessing.MakeValueArray("D:\Temp\Test", // Output path "Result", // Raster name 50, // Cellsize "8_BIT_UNSIGNED", // pixel type spatRef, // Spatial reference, 1); // Bands count IReadOnlyList<KeyValuePair<string, string>> environments = Geoprocessing.MakeEnvironmentArray(extent: pEnvelope); var gpResult = Geoprocessing.ExecuteToolAsync("CreateRasterDataset_management", parameters, environments, CancelableProgressor.None, GPExecuteToolFlags.GPThread); gpResult.Wait(); More info about parameters and environment here: https://pro.arcgis.com/en/pro-app/tool-reference/data-management/create-raster-dataset.htm And forget about ArcObjects when you are working with ArcGIS Pro.
... View more
11-28-2019
10:47 PM
|
2
|
3
|
2756
|
|
POST
|
Hi Than, You can do it in ArcGIS Pro SDK .Net using geoprocessing: var gpResult = Geoprocessing.ExecuteToolAsync("CreateRasterDataset_management", ..., ..., ..., ..., ...); If you want to get help with ArcGIS Runtime sdk you are in the wrong forum. You can get more feedback in ArcGIS Runtime sdk forums.
... View more
11-27-2019
11:29 PM
|
1
|
5
|
2756
|
|
POST
|
Hi Elizabeth, At first check what you have in your pWorkspace. Add code using: public IEnumDataset get_Datasets ( esriDatasetType DatasetType ); parameter esriDTTable. Using Next() from IEnumDataset check all datasets in your workspace. If you find your CSVFile dataset, you can cast it to ITable. Otherwise your csv does not exist or it is wrong.
... View more
11-26-2019
12:22 AM
|
0
|
1
|
1570
|
|
POST
|
Hi Simon, To apply symbology from lyr/lyrx file you need to use geoprocessing: var parameters = Geoprocessing.MakeValueArray(featLayer, lyrFilePath); var gpResult = Geoprocessing.ExecuteToolAsync("ApplySymbologyFromLayer_management", parameters, null, null, null, GPExecuteToolFlags.GPThread);
... View more
11-25-2019
11:28 PM
|
0
|
0
|
1579
|
|
POST
|
Hi Thomas, I have created new project and classes with your names. StepperBackstagePane works fine for me from Add-in button. protected async override Task InitializeAsync() { UrlHeight = "xxx"; await base.InitializeAsync(); } Check config.daml file for pane className and content className attributes. They must match your classes. I have had similar problem when I tried to rename esri sample source code. <pane id="Stepper_MVVM_StepperBackstagePane" caption="StepperBackstagePane" className="StepperBackstagePaneViewModel" smallImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonGreen16.png" defaultTab="esri_mapping_homeTab" defaultTool="esri_mapping_navigateTool"> <content className="StepperBackstagePaneView" /> </pane> I don't know your application architecture so I have not checked other content (FaksBackstageTabViewModel and etc.) I have tried to go deep. From backstage Stepper button StepperBackstagePane does not work as you wrote. In way you create StepperBackstagePane it does not get InitializeAsync() event. You need to create your own constructor or modify existing to read settings. Pane you created is not usable for your solution. It is designed as ArcGIS Pro Map pane or Attribute table table pane. It has own way of pane creating.
... View more
11-07-2019
06:23 AM
|
0
|
0
|
3226
|
|
POST
|
Hi Thomas, Could you please make a copy from xaml of texbox control. If debugger never goes inside InitializeAsync then problem is with DataContext of your page. It does not found your view model. Check xaml header: d:DataContext="{Binding Path=YourPageViewModel}"
... View more
11-07-2019
01:05 AM
|
0
|
2
|
3226
|
|
POST
|
Hi Thomas, It is not enough for your property declaring. You need to do like that: private string _urlDHM; public string UrlDHM { get { return _urlDHM; } set { SetProperty(ref _urlDHM, value, () => UrlDHM); } } You need to notify view that something was changed in the model.
... View more
11-07-2019
12:41 AM
|
0
|
4
|
3226
|
|
POST
|
Hi Thomas, What do you mean "settings file"? ArcGIS Pro project settings or your own custom settings file? If it is ArcGIS Pro project settings then you need to follow example on GitHub from ArcGIS Pro. Else you need to and read settings file and set your setting parameters to corresponding page properties binded to xaml controls. All properties must be public. All code stuff you need to put in to: protected override Task InitializeAsync() { }
... View more
11-06-2019
10:24 PM
|
0
|
6
|
3226
|
|
POST
|
Hi Oscar, You do not need any code snippet. Just use Select method from FeatureLayer. Like that: featLayer.Select(qf); // your query filter
... View more
11-05-2019
01:15 AM
|
4
|
1
|
4439
|
|
POST
|
Hi Jaewon, In the ribbon toolbar where your tools located you can add combobox control with 2 records: Excavation and Tunnelling. On selection changed of combobox you can change state of tools (enable/disable). Enabling/disabling you can manage with button or tool condition parameter defined in config.daml and FrameworkApplication.State.Activate method. To get sample check ArcGIS Pro SDk samples for FrameworkApplication.State.Activate method.
... View more
10-23-2019
11:40 PM
|
0
|
1
|
1874
|
|
POST
|
Hi David, That question is more about wpf developing then ArcGIS Pro API. If you use some framework (Prism or etc.) for developing wpf application so can check your framework for solution you need. If you use plane wpf as I do then you can use messaging: https://stackoverflow.com/questions/23798425/wpf-mvvm-communication-between-view-model I use it in my projects to communicate between pages, pages and parent of pages and etc.
... View more
10-23-2019
11:27 PM
|
0
|
0
|
4841
|
|
POST
|
Hi Sean, Sorry. It was my fault. I have separated EditOperation Callback from our application and find that it works fine. After that I have found the problem source. Next step saves it changes (and all made before) without prompting to save edits. Thanks
... View more
10-18-2019
12:59 AM
|
0
|
0
|
1002
|
| 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 |
20 hours ago
|