POST
|
In one of my projects I have a point featureclass containing points which should be used for tracing a Trace Network. The trace network has simple edge. When looking at the documentation of the Trace-tool Trace (Trace Network) the parameter starting points needs to be a feature layer. I've also created a pythonscript which does the tracing. Steps in the pythonscript: 1. Selects two point features from the point featurelayer (featureclass) 2. Creates a FeatureLayer based on these to points 3. Runs the trace with the Trace tool When running this script I get this error: ERROR 002512: Shortest path requires two starting points. There are indeed selected two points and each point is snapped to the roads (edges). When adding an additional step to the script, that creates a featureclass containing the two points and creating the featurelayer based on this featureclass, it works. Do I actually need to have a featureclass for the points in the shortest path analysis and not only a featurelayer based on a selection?
... View more
2 weeks ago
|
0
|
0
|
104
|
POST
|
I've added an idea for this functionality: Folder structure in project template - Esri Community
... View more
03-08-2024
04:46 AM
|
0
|
0
|
94
|
IDEA
|
@NaicongLi Are there any updates on this idea from ESRI?
... View more
03-08-2024
04:08 AM
|
0
|
0
|
126
|
POST
|
I've added an an idea for this: Folder structure in project template - Esri Community
... View more
03-08-2024
03:53 AM
|
0
|
0
|
84
|
IDEA
|
When creating a project template in ArcGIS Pro it might be useful to use a specific folder structure. This picture shows an example. Here I've created an ArcGIS Pro project (stored in folder Skifteplan) which I'd like to share as a project template. Inside project folder, there's a folder called Skifte where there's a filegeodatabase containing some featureclasses and tables which should be distributed with the template. When creating a project template, and creating a new project from the template, the folder Skifte is now gone and the filgeodatabase Skifteplan.gdb is placed directly under the projectfolder. Please make it possible to add a specific folder structure in a project template.
... View more
03-08-2024
03:49 AM
|
2
|
0
|
192
|
POST
|
Hi. In one of my users workflows, they need to append a selection of features to a featureclass and I've created a pythonscript for doing this (appending data and corresponding field-mapping). The process of selecting features and appending might be done several times in the workflow, if the user sees the need to add more features. I see that some users might add the same feature several times, causing duplicate features in the featureclass and this genrerates problems further down in the workflow. To restrict adding duplicate feature I've tried creating a contraint attribute rule. This attribute rule actually returns a message saying that features with same geometry is not allowed, but it inserts the feature multiple times. Do you see what might be wrong? var vegteig = FeatureSetByName($datastore, "Vegteiger")
var isUnique = true;
for(var p in vegteig){
if(Equals(Geometry($feature), Geometry(p))){
isUnique = false;
break;
}
}
return isUnique
... View more
02-12-2024
04:09 AM
|
0
|
1
|
183
|
IDEA
|
@AmirBar-Maor are there any updates on this? Do you need more clarification?
... View more
01-23-2024
01:27 AM
|
0
|
0
|
236
|
POST
|
@DuncanHornby @curtvprice Did you guys find any solutions? I can't figure this out. I have a couple of python scripts which after some updates sets a uniquevaluerenderer as described in the first post. In one of the scripts (using the same layer) it works, and in the other script it fails. Unfortunatly this error seems to be happening in ArcGIS Pro 3.2 as well.
... View more
01-15-2024
05:23 AM
|
0
|
1
|
298
|
POST
|
Thank you for testing, @Wolf and @GKmieliauskas . I've now tried adding your code, @Wolf , and I get a confirmation that 2 elements in the layout is selected. However, the CanExecute(null) returns false and the elements are not aligned. You mentioned the condition-description: "Elements are selected in the active layout view and FORMAT selection is set to the whole element not a part." Since there are elements selected in the active layout view, then it must be something to do with the FORMAT selection. How do I set this to the whole element and not a part? Do you have any other suggestions on how to align these, without the use of the align-command?
... View more
01-12-2024
01:48 AM
|
0
|
0
|
213
|
POST
|
@Wolf , @GKmieliauskas Does anyone of you know which conditions that needs to be met for the command "esri_layouts_alignMiddle" to be executed? I've selected to elements from my layout, but CanExecute returns false var tmpTextElement = Layout.FindElement(element.Name);
var tmpPunktElement = Layout.FindElement(PunktElement.Name);
Layout.SelectElements(new List<Element> { tmpTextElement, tmpPunktElement });
var pluginWrapperDistributeAlignMiddle = FrameworkApplication.GetPlugInWrapper("esri_layouts_alignMiddle", true) as ICommand;
if (pluginWrapperDistributeAlignMiddle != null)
{
if (pluginWrapperDistributeAlignMiddle.CanExecute(null))
{
pluginWrapperDistributeAlignMiddle.Execute(null);
}
}
... View more
01-11-2024
06:49 AM
|
0
|
0
|
219
|
POST
|
Hi. I'm working on migrating a ArcMap Toolbox from VB .NET (ArcObjects) to an ArcGIS Pro Add-In (ArcGIS Pro SDK). In the old code checks some polylines if the line is a "simple line" or if it's a circular arc. If it's a circular arc, I need to get the radius of the arc. In ArcObjects we converted the linesegment into ICircularArc and in this class there's a property for radius. I'm not able to find a similar property in ArcGIS Pro SDK, neither in CircularArc, EllipticArc nor EllipticArcSegment. How do I calculate or find the radius for a CircularArc?
... View more
12-14-2023
12:13 AM
|
0
|
1
|
274
|
POST
|
I need to use the alignMiddle-command in my ArcGIS Pro Add-in, for aligning some elements on the layout. I've seen the article about Reusing Pro Command in the ProGuide. When I add the button for "esri_layouts_alignMiddle" in config.daml I'm able to run the command. Is it possible to run this command without having to add the button to the ribbon?
... View more
11-07-2023
04:11 AM
|
0
|
5
|
453
|
IDEA
|
When creating a legend through the ArcGIS Pro SDK, the legend items patches comes from the layers renderer. It would be great if it was possible to change the items patch through properties of the CIMLegendItem. An example would be that the polyline-featurelayer in the TOC shows the line as horizontal, but in the legend it's represented as zig-zag.
... View more
10-31-2023
02:55 AM
|
0
|
0
|
335
|
POST
|
Hi. Since you're going to create a standalone commandline application I would suggest you look into ArcGIS Maps SDK for .NET. There are even some samples regarding Utility Network on the website. Here's a sample on how to display feature layers from a service or geodatabase: Display feature layers | ArcGIS Maps SDK for .NET | ArcGIS Developers Good luck!
... View more
10-19-2023
11:41 PM
|
0
|
0
|
342
|
POST
|
Hi. I'm creating a add-in for standardizing the layout of the maps created by the ArcGIS Pro users, and one of the functions is to create a legend element. I'm able to create the legend and add it to the layout, but there are some criteria I've not been able to figure out. One of the criteria for the layout is that the items of polyline-layers is symbolized with a zigzag-line. Is it possible to symbolize the polyline-layers with a zigzag-symbol while still having the TOC-symbol horizontal (legend patch)? There is also one criteria that the layername shown in the legend is based on a property in the add-in. Is it possible to do this while not having to change the layer name in the TOC? I can't see that it's possible to set the symbol or labelname in the CIMLegendItem class.
... View more
10-18-2023
04:52 AM
|
0
|
3
|
444
|
Title | Kudos | Posted |
---|---|---|
2 | 03-08-2024 03:49 AM | |
2 | 05-09-2023 06:20 AM | |
1 | 05-09-2023 12:19 AM | |
1 | 06-22-2023 03:05 AM | |
3 | 03-17-2023 02:35 AM |
Online Status |
Offline
|
Date Last Visited |
Monday
|