POST
|
Hi, I would like to choose from disk projection file with prj extension and then use the content of file to create SpatialReference using SpatialReferenceBuilder. OpenItemDialog has only text files filter ItemFilters.textFiles. It allows to select files with extensions txt, csv and tab. Is it possible to add own filter like "*.prj"?
... View more
03-05-2019
07:32 AM
|
0
|
0
|
360
|
POST
|
Hi Dominic, I think you can use different geoprocessing tool "Join Field" (Join Field—Data Management toolbox | ArcGIS Desktop ). It works without layers so it does not need to refresh the content of map. But at first you need to make a copy of your data and run join field geoprocessing tool on it because this tool adds joined fields permanently. After your calculations are completed you need to delete copy of your data. I do not know which way will be faster with geoprocessing but it will not refresh your screen
... View more
12-28-2018
12:17 AM
|
0
|
1
|
1008
|
POST
|
Hi Dominic, Your code does not work from my add-in from ArcGIS Pro 2.3 Beta. I have change it in my style at it works fine without refreshing. public static bool JoinTable(string sLayerName, string sInField, string sJoinTable, string sJoinField, bool bKeepAll) { try { var gpresult1 = Task.Run(() => { string sJoinType = "KEEP_COMMON"; if (bKeepAll) sJoinType = "KEEP_ALL"; var parameters = Geoprocessing.MakeValueArray(sLayerName, sInField, sJoinTable, sJoinField, sJoinType); return Geoprocessing.ExecuteToolAsync("AddJoin_management", parameters, null, CancelableProgressor.None, GPExecuteToolFlags.AddToHistory); }); return !gpresult1.Result.IsFailed; } catch (Exception ex) { //MessageBox.Show(ex.ToString()); return false; } } I have never used geoprocessing tool naming like you do: "management.AddJoin" . I use naming like this "AddJoin_management".
... View more
12-18-2018
11:06 PM
|
0
|
3
|
1008
|
POST
|
Hi Dominic, I use a lot of geoprocessing in my code and GPExecureToolFlags works for me. Could you please send me a piece of code where you call geoprocessing tool?
... View more
12-17-2018
10:39 PM
|
0
|
5
|
1008
|
POST
|
I use tools inside group and size attribute works. Another way is to put tools to buttonPalette and buttonPallete has attribute size. It works in my project too.
... View more
12-13-2018
12:37 AM
|
0
|
0
|
820
|
POST
|
Hi Thomas, You can do the same select on featureLayer object: featureLayer.Select(anotherQueryFilter, SelectionCombinationMethod.New); It works in my code.
... View more
12-12-2018
11:11 PM
|
0
|
0
|
489
|
POST
|
Hi Mario. Your buttons have size attribute which is "large". I add the same attribute to your tools: <toolPalette id="ImportSources_ToolPalette" showItemCaption="true" itemsInRow="1"> <tool refID="ImportSources_ByRectangle_tool" size="large"/> <tool refID="ImportSources_ByCircle_tool" size="large"/> <tool refID="ImportSources_ByPolygon_tool" size="large"/> <tool refID="ImportSelectedSources_btn" size="large"/> </toolPalette>
... View more
12-12-2018
03:43 AM
|
0
|
2
|
820
|
POST
|
Hi Dominic, You can use geoprocessing from sdk for joining, but you need to change geoprocessing flags. Do not use GPExecuteToolFlags.AddOutputsToMap, GPExecuteToolFlags.Default or GPExecuteToolFlags.RefreshProjectItems flags. More info here: https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geoprocessing
... View more
12-12-2018
03:37 AM
|
0
|
1
|
1008
|
POST
|
Hi, In previuous code st_in variable is used for file content, in last code - for file path. You need to save file content to file and use it for geoprocessing
... View more
12-10-2018
01:13 AM
|
1
|
0
|
1345
|
POST
|
Hi, Have you tried to use your created csv file from ArcGIS Pro toolkit? If it works from ArcGIS Pro toolkit, when problems in your parameters list formatting. Else - problems in your csv file.
... View more
12-10-2018
12:29 AM
|
0
|
2
|
1345
|
POST
|
Hi Uma, Thanks for reply. Custom Catalog sample works like in your picture. I see that there is no vertical separator. I have used my own usercontrol before 2.2 version. I have changed only my style to Esri_ListBoxPanelIndicator style in version 2.2 and it works fine. In 2.2 tabcontrol worked with simple IEnumerable which contained my own objects with tab information. As I understand it works now with List of TabControl items only.
... View more
12-09-2018
11:41 PM
|
0
|
0
|
326
|
POST
|
Hi Uma, I am testing ArcGIS Pro 2.3 Beta and new style does not work on it. It worked fine In previous version (2.2) Are changes in using new Esri_ListBoxPanelIndicator style?
... View more
12-07-2018
04:07 AM
|
0
|
2
|
2619
|
POST
|
Override modifier is required to extend or modify the abstract or virtual implementation of an inherited method, property, indexer, or event. ArcGIS Pro knows when you press Add-in button it needs to call OnClick method which you override for each Add-in button. You need to insert call of your BuildEnvelopeGeometry method for example at the end of OnClick method, like BuildEnvelopeGeometry();
... View more
12-06-2018
10:53 PM
|
0
|
0
|
594
|
POST
|
Hi Joshua, There is no calling of BuildEnvelopeGeometry in your code.
... View more
12-05-2018
10:57 PM
|
0
|
2
|
1518
|
POST
|
Hi Jaewon, Serialize your datatable to csv file and use it as parameter for geoprocessing
... View more
12-05-2018
06:53 AM
|
1
|
4
|
1345
|
Title | Kudos | Posted |
---|---|---|
1 | 11-17-2023 02:12 AM | |
1 | 2 weeks ago | |
1 | 3 weeks ago | |
1 | a month ago | |
1 | a month ago |
Online Status |
Offline
|
Date Last Visited |
Tuesday
|