|
POST
|
Hi Brian I ran your code to find a field in a layer that has a Join. It worked fine for me. I was able to find a field in the base layer and in the "joined" layer's fields. Not sure why this is crashing for you. Is there anything unique about your dataset? I used a file gdb on my local machine. Thanks Uma
... View more
10-16-2018
08:51 AM
|
0
|
4
|
3247
|
|
POST
|
Hi Max Here is a snippet on the SDK Wiki page that can help creating a point symbol with a specific border color/thickness. Currently there is no overload for the ConstructPointSymbol method that can do this. Point Symbol with custom fill and outline Thanks Uma
... View more
10-15-2018
12:58 PM
|
3
|
0
|
1860
|
|
POST
|
Hi Karsten, You could create a public static property in the module class and set that to the check box's IsChecked property. class ProCheckbox : ArcGIS.Desktop.Framework.Contracts.CheckBox
{
public ProCheckbox()
{
IsChecked = true;
}
protected override void OnClick()
{
// TODO - add specific customization here as necessary
//Module1.CheckBoxIsChecked is a public static property in the module class file.
Module1.CheckBoxIsChecked = IsChecked.HasValue ? IsChecked.Value : false;
MessageBox.Show($"Checked: {Module1.CheckBoxIsChecked}");
}
}
... View more
10-09-2018
09:49 AM
|
1
|
1
|
1708
|
|
POST
|
Hi Chris, Just to confirm, does this line of code not return 3 Group layers when you nest them in the structure you mention (Group A > Group B > Group C) MapView.Active.Map.GetLayersAsFlattenedList().OfType<GroupLayer>() A test add-in with this logic worked for me, so wanted to confirm with you. Thanks Uma
... View more
10-08-2018
04:05 PM
|
0
|
1
|
3303
|
|
POST
|
Hi Brad I was able to see the same issue. I have passed this on to the development team to take a look at this issue. Thanks for reporting this one Thanks Uma
... View more
10-04-2018
09:32 AM
|
1
|
3
|
1699
|
|
POST
|
Hi Roman You can get the button's ID directly like this: internal class Button1 : Button
{
protected override void OnClick()
{
var buttonID = this.ID;
}
} Thanks Uma
... View more
10-04-2018
08:27 AM
|
1
|
1
|
1607
|
|
POST
|
Hi Joshua Here is a code snippet you can use to zoom the map frame in layout view to a specific layer: LayoutProjectItem layoutItem = Project.Current.GetItems<LayoutProjectItem>().FirstOrDefault(item => item.Name.Equals("MyLayout"));
QueuedTask.Run( () => {
//Get the layout from the layout project item
Layout layout = layoutItem.GetLayout();
//Get the map frame in the layout
MapFrame mapFrame = layout.FindElement("New Map Frame") as MapFrame;
//Get map
var mapFrameMap = mapFrame.Map;
//Get the specific layer you want from the map
var lyrOfInterest = mapFrameMap.GetLayersAsFlattenedList().OfType<FeatureLayer>().FirstOrDefault();
//Get the Layer's extent
var lyrExtent = lyrOfInterest.QueryExtent();
//Zoom to this extent in the MapFrame
//Note: This method will be deprecated at 2.3.
//But you can use mapFrame.SetCamera(lyrOfInterest) instead. (This will be a new overload available in 2.3)
mapFrame.ZoomTo(lyrExtent);
}); Thanks Uma
... View more
09-21-2018
02:17 PM
|
0
|
6
|
4865
|
|
POST
|
Hi Richard You are correct, there is no enum for the 3D Styles currently. Thanks Uma
... View more
09-18-2018
04:58 PM
|
0
|
0
|
1721
|
|
POST
|
Hi Rich Prior to the 2.0 release there were problems with using AddOverlay method in a Scene. With 2.2 release, you should be able to use the AddOverlay method in a Scene. We will update the documentation with the 2.3 release. To create and work with 3D Markers, you can use the following snippets: 1. If you have a 3D model file, you can create a Marker from it using the ConstructMarkerFromFile method. You can then assign the marker to a point symbol. Here is a snippet for this: How to construct a point symbol from a file on disk 2. If you just want to use one of the 3D Symbols available with Pro, this snippet might be useful: How to apply a point symbol from a style to a feature layer Thanks Uma
... View more
09-18-2018
02:25 PM
|
0
|
2
|
1721
|
|
POST
|
Hi Mark, This issue has been fixed in Pro 2.3 that will be released in the early part of 2019. Thanks! Uma
... View more
09-13-2018
09:22 AM
|
0
|
0
|
1057
|
|
POST
|
Hi Dominic The marker used to create the point symbol is stored inside the point symbol as a symbol layer. You could get it like this: var pointSymbol = SymbolFactory.Instance.ConstructPointSymbol(ColorFactory.Instance.GreenRGB, 10.0, SimpleMarkerStyle.Diamond);
var marker = pointSymbol.SymbolLayers[0] as CIMVectorMarker; Thanks Uma
... View more
08-31-2018
12:54 PM
|
0
|
0
|
1371
|
|
POST
|
Hi Dominic Check out the ConstructMarker method - It has a few overloads that might be what you are looking for. This one gives you a marker directly by passing in SimpleMarkerStyle: public CIMMarker ConstructMarker(
CIMColor color,
double size,
SimpleMarkerStyle markerStyle
) Thanks Uma
... View more
08-30-2018
08:50 AM
|
0
|
2
|
1371
|
|
POST
|
Hi Fayu, Here is a code snippet add a feature class from a file gdb. I got this from a previous answer posted by Wolf. // Add this in your OnClick code-behind for the button
if (MapView.Active?.Map == null) return;
ArcGIS.Desktop.Framework.Threading.Tasks.QueuedTask.Run(() =>
{
// using the community sample dataset
using (Geodatabase geodatabase = new Geodatabase(new FileGeodatabaseConnectionPath(new Uri(@"C:\Data\FeatureTest\FeatureTest.gdb"))))
{
using (FeatureClass addFeatureClass = geodatabase.OpenDataset<FeatureClass>("TestLines"))
{
LayerFactory.Instance.CreateFeatureLayer(addFeatureClass, MapView.Active.Map, 0, "New FC");
}
}
}); Thanks Uma
... View more
08-24-2018
08:56 AM
|
0
|
1
|
4109
|
|
POST
|
Hi Sreehari The only filters you can use are the predefined ItemFilers collection available in the Pro API. You can find the available collection here: http://pro.arcgis.com/en/pro-app/sdk/api-reference/#topic8983.html Currently there is no filter that will allow you to save to shapefiles or feature class. Thanks Uma Harano
... View more
08-23-2018
03:18 PM
|
0
|
3
|
1549
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a month ago | |
| 1 | 01-21-2026 10:48 AM | |
| 1 | 09-18-2025 03:09 PM | |
| 1 | 11-04-2025 08:25 AM | |
| 1 | 09-23-2025 09:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|