|
POST
|
Hi Bill, Looking at your code above - you are actually assigning a Coordinate3D to the geometry field in your attributes collection. You actually need to be assigning a MapPoint. A Coordinate3D is only a lightweight structure and is not the same as a MapPoint. The point feature class expects a geometry of type MapPoint. You can fix this by not casting the result of the GeometryEngine ProjectEx or Project routines to Coordinate3D but casting the result to a MapPoint. This should fix your problem. Thanks Narelle
... View more
05-23-2022
12:04 AM
|
2
|
1
|
1716
|
|
POST
|
Hi Jonathon, You will need the ConstructPoinFromAngleDistance method on the GeometryEngine. See the following https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/topic30155.html If you're not already aware of how to work with the geometry API here's some additional content to help get you started. https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Geometry Thanks Narelle
... View more
02-23-2022
05:16 PM
|
1
|
0
|
776
|
|
POST
|
Hi Sorry. I misunderstood where you wanted your tool to appear. Unfortunately it is not possible to add custom tools to the toolbar in the Table pane. That toolbar is not controlled by DAML; The DAML that you are referencing (esri_editing_tableSelectionGroup) refers to a group of selection tools that appears on the application ribbon. Narelle
... View more
01-27-2022
09:07 AM
|
0
|
1
|
1548
|
|
POST
|
Hi Angela, I am not seeing any problems with inserting a button into that group of tools on the ribbon under the Table tab. Is "myCustomButton" the name of your button class or is it the daml ID of the button.? Here is a sample button defintion. Here .the damlID is "MyAddIn_MyButton". The class name is "MyButton". You should be referencing the damlID. in the insertButton tag. <button id="MyAddIn_MyButton" caption="My button" className="MyButton" loadOnClick="true" smallImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonBlue16.png" largeImage="pack://application:,,,/ArcGIS.Desktop.Resources;component/Images/GenericButtonBlue32.png">
<tooltip heading="Tooltip Heading">Tooltip text<disabledText /></tooltip>
</button> Thanks Narelle
... View more
01-26-2022
11:59 AM
|
0
|
3
|
1561
|
|
POST
|
Hi Lesley, Unfortunately there is no SetClipGeometry method that allows you to exclude map layers from a clip geometry. However there is a property on the CIMMap object that allows you to specify the layers. The property is called LayersExcludedFromClipping. Here's a small sample of how you would use it. // find the first layer in the map
var layer = MapView.Active.Map.GetLayersAsFlattenedList().FirstOrDefault();
if (layer == null)
return;
// create a list of strings
List<string> layerUris = new List<string>();
// add the layer URI to the list
layerUris.Add(layer.URI);
QueuedTask.Run(() =>
{
// create a polygon from the current extent
var poly = PolygonBuilder.CreatePolygon(MapView.Active.Extent);
// set the clip geometry
MapView.Active.Map.SetClipGeometry(poly, null);
// get the map definition
var mapDef = MapView.Active.Map.GetDefinition();
// assign the layers to be excluded
mapDef.LayersExcludedFromClipping = layerUris.ToArray();
// set the map definition
MapView.Active.Map.SetDefinition(mapDef);
}); Let me know if you have any questions. We'll update the SetClipGeometry method to include the option to exclude layers in a future release. Thanks Narelle
... View more
01-26-2022
11:42 AM
|
1
|
1
|
926
|
|
POST
|
Hi Lesley, There isn't a property for directly setting label wrapping on the legend object. But you can access the property via the CIM. Here's an example of how you do it. await QueuedTask.Run(() =>
{
var layout = LayoutView.Active.Layout;
var legend = layout.FindElement("Legend") as Legend;
if (legend == null)
return;
// get the CIM definition
var def = legend.GetDefinition() as CIMLegend;
// set label wrapping to 1 inch
var labelWidthInches = 1;
// CIM stores in points, so convert
var labelWidthPoints = LinearUnit.Inches.ConvertTo(labelWidthInches, LinearUnit.Points);
// assigning a non-zero value sets the wrapping
def.LabelWidth = labelWidthPoints;
// Zero value turns off description wrapping
def.DescriptionWidth = 0;
// update the CIM definition
legend.SetDefinition(def);
}); Thanks Narelle
... View more
11-23-2021
04:11 PM
|
1
|
1
|
1235
|
|
POST
|
Hi Karen, Just posting to confirm that these two fixes to rubbersheet were added to ArcGIS Pro 2.9. Regards Narelle
... View more
10-18-2021
07:42 AM
|
1
|
1
|
1950
|
|
POST
|
Hi, I wanted to confirm that an UpdateOverlay overload has been added to the MapTool and MapView classes to include a reference scale parameter at ArcGIS Pro 2.9. Regards Narelle
... View more
10-18-2021
07:40 AM
|
1
|
0
|
2068
|
|
POST
|
Hi, I wanted to confirm that additional constructors have been added to the MultipatchBuilderEx object at ArcGIS Pro 2.9 to add basic 3d shapes such as cubes, cones, spheres, diamonds, cylinders etc. Regards Narelle
... View more
10-18-2021
07:34 AM
|
0
|
0
|
1367
|
|
POST
|
Hello, This functionality is not available via the API . There is an extremely limited attribute table API available. Regards Narelle
... View more
10-04-2021
06:06 PM
|
1
|
0
|
1479
|
|
POST
|
Hi Karen, Thanks for the reply. Good to know that there's nothing additional to look at on Transform. The two Rubbersheet fixes will definitely be in 2.9. The current timeline has ArcGIS Pro 2.9 being released in November 2021, so fairly soon. Narelle
... View more
09-30-2021
12:53 PM
|
1
|
3
|
2043
|
|
POST
|
Hi Karen, Looking at the EditOperation.Rubbersheet API method I can see that there is a code bug in that the anchor point and rubbersheet area layers are not being passed onto the internal methods. We will fix this for the 2.9 release. Your second statement about wanting to transform selected features - are you asking for the ability to rubbersheet selected features or are you using the Transform method and not getting the expected results (https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic9563.html). The EditOperation.Rubbersheet overload for selected features does not exist - we will also add this for the 2.9 release. If there's a problem with EditOperation.Transform please let me know so I can examine that method furrther. Unfortunately there is no workaround or other way to accomplish these functions via the API on existing ArcGIS Pro versions. Will you be able to upgrade to 2.9 when it is released? Thanks Narelle
... View more
09-30-2021
11:50 AM
|
0
|
5
|
2047
|
|
POST
|
Hello, Please see this post with the same question from another developer. https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-add-a-button-in-the-quot-selection-quot/m-p/1093969 Narelle
... View more
09-28-2021
03:36 PM
|
0
|
0
|
950
|
|
POST
|
Mike, I have added an issue to our backlog for this to be addressed. It is too late for it to be included in ArcGIS Pro 2.9 but we will consider it for the next release. Thanks Narelle
... View more
09-27-2021
02:00 PM
|
1
|
0
|
2685
|
|
POST
|
Mike, Essentially the flash item you see on the context menu is a button (similar to what you have for Mikes UN Rules Item) that obtains the mapMember and objectID of the feature that you right click on in the Attributes pane. It would then call the FlashFeature API call that you referenced. So in psuedo code it would be like this internal class FlashButton : Button
{
protected override void OnClick()
{
var context = FrameworkApplication.ContextMenuDataContext;
var items = context as IEnumerable<AttributeTreeItem_InternalClass>;
var item = items.FirstOrDefault();
if (item != null)
{
MapView.Active.FlashFeature(item.Layer, item.ObjectID);
}
}
} So yes it is doing exactly the same thing that you want to do. The key difference is that the AttributeTreeItem_InternalClass is internal only to the Editing code. As an add-in developer, you only have access to classes and methods that are in the public API. Right now, the public API is missing the class used in line 6 to translate from the context object in order to obtain the layer and objectID. Hope this is clear. Narelle
... View more
09-27-2021
01:42 PM
|
0
|
2
|
2689
|
| 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
|