|
POST
|
Hi Jeffrey, If you could answer the following questions that would help me in trying to work out the problem First... I see from the config.daml desktopVersion attribute that you're using 2.7 with Pro and the Pro SDK. Can you confirm this please. You said that the IEditingCreateToolControl has a red squiggle underline in visual studio. What does the tooltip say if you hover over the squiggle. Also are you able to compile (choose a rebuild rather than just build)? I wouldn't expect you to be able to compile if there is a red squiggle in the code, so if you're able to run Pro with the add-in installed it might be running a version that is not up to date and in synch with your code. Thanks Narelle Thanks Narelle
... View more
01-07-2021
01:39 PM
|
0
|
5
|
6704
|
|
POST
|
Hi Rob, The three tools - Move, Rotate and Scale have a custom UI that links them together that is part of the internal Editing code. Unfortunately it is not something that is customizable via the daml of an add-in. Regards Narelle
... View more
11-24-2020
03:53 PM
|
0
|
0
|
870
|
|
POST
|
Derek <group id="test" caption="Test">
<insertButtonPalette refID="esri_task_insertMenu" size="middle"/>
</group> and <group id="test" caption="Test">
<buttonPalette refID="esri_task_insertMenu" size="middle"/>
</group> are exactly the same. You can do either. Mostly we use the tag without the insert prefix. Sorry for the confusion. re the ids of "esri_task_xxx" vs "esri_tasks_xxx". This was a typo in our source code with respect to consistency. Good pickup. When you define a button / tool / menu / etc. the key attribute is "id". Internally at Esri we use a particular naming convention of "esri_(modulename)_xxx". We recommend a similar pattern for add-in developers of (moduleName)_xxx, but the id string can be anything. The important thing is it must be unique within your module. Any item in groups, tabs, menus etc that use a "refID" attribute must have a corresponding entry in the <controls> section of the combined ArcGIS Pro daml file that defines that id. In this way, you have the ability to reference any of our Esri daml buttons, tools, menus etc in your add-in not just those defined by you. Regards Narelle
... View more
11-06-2020
04:01 PM
|
0
|
1
|
1252
|
|
POST
|
Derek, The Task button/dropdown that you reference above is achieved using the daml menu structure. Here is the code <menus>
<menu id="esri_task_insertMenu" caption="Task" extendedCaption="Ribbon add task items menu" keytip="TA"
largeImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/TaskItem32.png"
smallImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/TaskItem16.png">
<tooltip heading="Task">Add task items to your project.</tooltip>
<button refID="esri_tasks_NewProjectTaskItem" />
<menu refID="esri_tasks_ImportTaskFileMenu"/>
</menu>
<menu id="esri_tasks_ImportTaskFileMenu" caption="Import and Open Task File"
largeImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericImport32.png"
smallImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericImport16.png">
<button refID="esri_tasks_ImportTaskFileBrowse"/>
<dynamicMenu refID="esri_tasks_ImportMenu" inline="true"/>
</menu>
</menus> The dynamicMenu can be replaced by other button references. The "esri_task_insertMenu" is inserted into a group as a buttonPalettte item <group id="test" caption="Test">
<insertButtonPalette refID="esri_task_insertMenu" size="middle"/>
</group> Hope this helps. Narelle
... View more
11-04-2020
12:45 PM
|
1
|
3
|
6020
|
|
POST
|
Hi Alex, I can confirm that the TableControl currently presents a read-only view of its data. There is no way in the API to turn editing on in this control. . (as of ArcGIS Pro 2.6) Regards Narelle
... View more
08-13-2020
01:37 PM
|
1
|
1
|
1339
|
|
POST
|
Hi Jeff, Updates were made to the Coordinate System Control to more fully support custom spatial references. These updates were made in ArcGIS Pro 2.6 which is now available. Please let us know if you see any other issues with this control. Thanks Narelle
... View more
07-29-2020
01:31 PM
|
0
|
0
|
3009
|
|
POST
|
Hi, I wanted to let you know that the 3 methods you requested have been added to the GeometryEngine in ArcGIS Pro 2.6 Narelle
... View more
07-29-2020
01:28 PM
|
0
|
0
|
1386
|
|
POST
|
Barbara, I am assuming that when you debug your code the values in your 'codedValuePairs' variable for the second domain is empty?. What happens when you debug into your GetCodedValuePairsFromDomainAsync method. Is the second domain found successfully? Can you post the code in this method. Thanks Narelle
... View more
07-22-2020
05:04 PM
|
0
|
1
|
4435
|
|
POST
|
Hi Than, Please look at the tabGroup element. This is documented in this section in the Framework ProConcepts https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Framework#tab-and-group Thanks Narelle
... View more
07-21-2020
11:08 AM
|
1
|
1
|
1987
|
|
POST
|
Barbara, If you have snapping on, along with Point or Vertex snapping, then the first point of your sketch should be snapping to the point in the feature layer. How are your checking to see whether they sketch intersects the feature layer?
... View more
07-17-2020
10:33 AM
|
0
|
1
|
2449
|
|
POST
|
Barbara, I think if you add the following code which overrides the OnSketchModifiedAsync method you should be able to get what you need. This method will be called on the first mouseClick. You were on the right path with the GetCurrentSketchAsync method. WIth the first mouseClick you should have a 1 point polyline. You can use that point to check your intersection. protected override async Task<bool> OnSketchModifiedAsync() { var geom = await this.GetCurrentSketchAsync(); if (geom is Polyline polyline) { var ptCount = polyline.PointCount; var firstPt = polyline.Points[0]; } var result = await base.OnSketchModifiedAsync(); return result; } Narelle
... View more
07-14-2020
10:04 AM
|
1
|
3
|
2449
|
|
POST
|
The openLasso sketch type does produce a Polyline geometry via a streaming mechanism. That is, as the mouse moves points are added to the polyline, you do not need to do it via code. The mouse down/mouse click with the openLasso sketch type will be the sketch Start and the sketch Complete. There are no other mouse click's for this sketch type. The code that the MapTool visual studio template gives you should be sufficient. The polyline in the OnSketchCompleteAsync will have multiple points. internal class MapTool1 : MapTool { public MapTool1() { IsSketchTool = true; SketchType = SketchGeometryType.OpenLasso; SketchOutputMode = SketchOutputMode.Map; } protected override Task OnToolActivateAsync(bool active) { return base.OnToolActivateAsync(active); } protected override Task<bool> OnSketchCompleteAsync(Geometry geometry) { var polyline = geometry as Polyline; return base.OnSketchCompleteAsync(geometry); } }
... View more
07-13-2020
08:36 AM
|
2
|
5
|
2449
|
|
POST
|
Hi Marcus, I've had success using the following code IGPResult result = await Geoprocessing.ExecuteToolAsync("CreateTable_management", new string[] { gdbPath, tableName }, null, ctsToken, null, GPExecuteToolFlags.RefreshProjectItems); Note that this will create an empty table as it is not using a template object. Right now you're not really sure which of the parameters is the problem, so I would suggest trying with just two parameters first to make sure you can create the empty table (gdbPath and tableName). Then you are guaranteed to know that the problem is with the third parameter - the table template. I'm thinking this should be a string too, but am not completely sure. Note also sing "CreateTable_management" or "management.CreateTable" should not make a difference. Narelle
... View more
07-09-2020
04:36 PM
|
0
|
1
|
3301
|
|
POST
|
Bill, A couple of question - what type of attributes do you have on the feature class? Maybe one of them is the problem. What happens if you set the SubFields on your spatial query filter to just be ObjectId, Shape? Do you see the same problem if you pass null to the Table.Search? that is you're iterating through all records rather than those that match your spatial filter? Finally, if you reorganize your code so that the cursor iteration occurs immediately after the search, do you still see the same problem? You should also wrap your OpenDataset and Search methods in a using statement. for example see this snippet as a suggestion of how to iterate. We generally don't recommend caching objects such as RowCursors. https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Geodatabase#searching-a-table-using-queryfilter Let me know if these suggestions don't help to track down your issue. If you're still having problems, maybe we can get your data for further investigation. Narelle
... View more
05-14-2020
03:55 PM
|
1
|
0
|
1231
|
|
POST
|
Bill, A couple of suggestions - check the byte buffer length - maybe it is 0. Also is the textureMap a JPEGTexture or an UncompressedTexture? Narelle
... View more
05-14-2020
03:46 PM
|
1
|
0
|
946
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 07-27-2025 06:04 PM | |
| 1 | 03-24-2025 06:53 PM | |
| 1 | 08-08-2024 09:44 PM | |
| 1 | 07-18-2024 04:46 PM | |
| 1 | 06-04-2024 07:18 PM |
| Online Status |
Offline
|
| Date Last Visited |
3 weeks ago
|