|
POST
|
Hi Brian, In the case where you are calling EditOperation.Modify with an inspector object that has not actually changed any attributes, then internal optimizations will see this as an empty operation and won't actually add it to the list of work to be done when EditOperation.Execute occurs. This is why the tracking fields are not updated on your feature. Tracking fields are only updated when a change (attribute or spatial) is made to the record. In addition if there is no work to be done (ie EditOperation.IsEmpty returns true), then yes, an EditOperation.Execute will return false. In your situation, you can check the EditOperation.IsEmpty property and only call EditOperation.Execute if there is work to be done. Narelle
... View more
06-01-2022
07:09 PM
|
1
|
0
|
2349
|
|
POST
|
Hi , We don't have anything to use the prj file directly, but I believe you should be able to use the following code as the prj file contains text in the wkt format. I have wrapped the CreateSpatialReference call in a try/catch in case of error which would need to be handled. try
{
string path = @"c:\60571.prj";
var sText = System.IO.File.ReadAllText(path);
SpatialReference sr = SpatialReferenceBuilder.CreateSpatialReference(sText);
}
catch (Exception e)
{
} Regards Narelle
... View more
05-29-2022
08:06 PM
|
0
|
1
|
1355
|
|
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
|
2213
|
|
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
|
965
|
|
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
|
2073
|
|
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
|
2086
|
|
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
|
1240
|
|
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
|
1500
|
|
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
|
2475
|
|
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
|
2935
|
|
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
|
1826
|
|
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
|
1778
|
|
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
|
2568
|
|
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
|
2572
|
|
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
|
1208
|
| 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 |
2 weeks ago
|