|
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
|
1058
|
|
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
|
5070
|
|
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
|
1136
|
|
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
|
2408
|
|
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
|
1129
|
|
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
|
3497
|
|
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
|
1539
|
|
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
|
1857
|
|
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
|
1857
|
|
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
|
1857
|
|
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
|
2619
|
|
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
|
1028
|
|
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
|
754
|
|
POST
|
Hello, Unfortunately when configuring a Task, all layers and feature classes that you wish to reference need to already exist in your project. As an example, there is no way to configure a task to execute the GP Buffer tool in one step and then in the following step manipulate the output of that Buffer tool. Regards Narelle
... View more
04-02-2020
02:55 PM
|
0
|
2
|
1646
|
|
POST
|
Hi Stephan, You can definitely hide this toolbar or even replace it with your own toolbar. Look at the ContextToolbarID property on the MapTool class. If you want to remove the toolbar, set this property to the empty string. public ConstructionTool1()
{
IsSketchTool = true;
UseSnapping = true;
SketchType = SketchGeometryType.Line;
UsesCurrentTemplate = true;
ContextToolbarID = "";
//ContextMenuID = "";
} You might want to also take a look at the ContextMenuID property which provides the right click context menu for sketching tools. The default context menu has many similar options for sketching curves. If you want some of the tools to appear you can build your own toolbar in daml and then reference your toolbar damlId Here is the default toolbar from the editing daml file that is used by sketching tools. <miniToolbar id="esri_editing_SegmentSketchContextToolbar">
<row>
<button refID="esri_editing_LineConstructor"/>
<buttonPallete refID="esri_editing_LinePalette"/>
<buttonPallete refID="esri_editing_ArcConstructorPalette"/>
<button refID="esri_editing_TraceConstructorPalette"/>
<button refID="esri_editing_StretchVertices" separator="true" />
<button refID="esri_editing_FinishSketch" separator="true"/>
<button refID="esri_editing_ClearSketch" />
</row>
</miniToolbar> You could build your own which references the first and last two buttons and then reference it in your tool constructor. For example <miniToolbar id="mySketchContextToolbar">
<row>
<button refID="esri_editing_LineConstructor"/>
<button refID="esri_editing_FinishSketch" separator="true"/>
<button refID="esri_editing_ClearSketch" />
</row>
</miniToolbar>
public ConstructionTool1()
{
IsSketchTool = true;
UseSnapping = true;
SketchType = SketchGeometryType.Line;
UsesCurrentTemplate = true;
ContextToolbarID = "mySketchContextToolbar";
//ContextMenuID = "";
} Let me know if you have more questions. Regards Narelle
... View more
03-27-2020
09:35 AM
|
2
|
1
|
1858
|
| 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 |
11-02-2025
02:15 PM
|