|
POST
|
Hi, These are a few ways to check for a layer: //Finds a layer using a URI.
//The Layer URI you pass in helps you search for a specific layer in a map
var lyrFindLayer = MapView.Active.Map.FindLayer("CIMPATH=map/u_s__states__generalized_.xml");
//This returns a collection of layers of the "name" specified. You can use any Linq expression to query the collection.
var lyrExists = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>().Any(f => f.Name == "U.S. States (Generalized)");
//Finds layers by name and returns a read only list of Layers
var lyr = MapView.Active.Map.FindLayers("U.S. States (Generalized)").FirstOrDefault(); Thanks Uma
... View more
08-21-2017
12:44 PM
|
1
|
0
|
2175
|
|
POST
|
Hi Brian You can use the "dependencies" tag in daml to accomplish what you need. You can read about this on this wiki: ProConcepts Advanced Topics: Control Order of loading using DAML Also- To update one of your "Groups" (defined in one add-in) with a button from another add-in you will have to use the "UpdateModule" tag. There is a sample WorkingWithDaml that does this. A little more info about "UpdateModule" from ProConcepts: Framework: Note: DAML elements within one file can alter or remove elements in other files. For example, an add-in may simply inject a single button into a ribbon group defined by another add-in. The following example shows a button being added to an existing tab beside a specific control: <updateModule refID="esri_mapping">
<groups>
<updateGroup refID="esri_mapping_navigateGroup">
<insertButton refID="acme_FullExtent" insert="before" placeWith="esri_mapping_zoomFullButton" separator="true"/>
</updateGroup>
</groups>
</updateModule> Thanks Uma
... View more
08-18-2017
11:59 AM
|
1
|
1
|
1011
|
|
POST
|
Hi, Please select .NET Framework 4.6.1 in the drop down at the top of the New Project dialog (in the screenshot you have provided). This will display the templates. This is the minimum required framework version for ArcGIS Pro Add-ins. Thanks Uma
... View more
06-04-2017
12:55 PM
|
2
|
1
|
1921
|
|
POST
|
Hi This will be possible with the 2.0 release of the Pro SDK. We anticipate 2.0 to be released end of June. There will be a new Visual Studio item template that can be used to create a pane that is linked to an active map. When 2.0 is released, there will be Pro SDK Samples and guides to help with this. In the meantime, you could download the ArcGIS Pro 2.0 Beta to experiment with this functionality to get ready for the final release. Thanks Uma
... View more
05-24-2017
01:45 PM
|
2
|
1
|
2807
|
|
POST
|
Attached is an updated Web maps Gallery sample with the "categories".
... View more
05-12-2017
08:53 AM
|
1
|
0
|
1650
|
|
POST
|
Hi Janaki Pro does the wrapping of the button caption. Add-in developers don't have to do this. Thanks Uma
... View more
05-11-2017
03:44 PM
|
1
|
0
|
1475
|
|
POST
|
Hi Janaki You can accomplish this by setting the Group property of GalleryItem. In the config.daml where you define the gallery element, set the "showGroup" attribute to "true". Like this: <galleries>
<gallery id="GalleryDemo_WebMapsGallery" showGroup="true" caption="Web Maps Gallery" className="WebMapsGallery" itemsInRow="5" dataTemplateFile="pack://application:,,,/GalleryDemo;component//WebMapsGalleryTemplate.xaml" templateID="WebMapsGalleryItemTemplate" resizable="true" largeImage="Images\GenericButtonOrange32.png" keytip="z3">
<tooltip heading="Web Maps">Tooltip text<disabledText /></tooltip>
</gallery>
</galleries> Thanks Uma
... View more
05-11-2017
03:40 PM
|
2
|
1
|
1650
|
|
POST
|
Hi Janaki You cannot force the caption of a Pro Button to wrap. However, your add-in button's caption will wrap using the same rules as a Pro Button. So for example, if your button caption is "Select by Attributes" you will see the same wrapping behavior as the Pro's Select by Attributes button. Also, note - The caption for a button can only take up 2 lines on the ribbon. So if you have a really long button caption, it will take up that amount of space on the ribbon. Thanks Uma
... View more
05-11-2017
11:07 AM
|
2
|
5
|
1475
|
|
POST
|
Hi Janaki, Here is a sample of an Inline Gallery in the arcgi-spro-community-samples repo. You can also find some documentation on gallery items in the wiki page. Thanks Uma
... View more
05-11-2017
06:36 AM
|
2
|
3
|
1650
|
|
POST
|
Hi Ryan, Based on the error you are getting, can you please check the value of the "PackageAction" property in your .csproj file? To build an add-in without installing ArcGIS Pro, this value needs to be "BuildZipPostProcess". Check to see if this step (copied from the wiki page) is correct in your .csproj: Modify the add-in/configuration .csproj or .vbproj file to change the custom "PackageAction": Find the element called <PackageAction>BuildDefault</PackageAction> in the .csproj or .vbproj file. Change its value from BuildDefault to BuildZipPostProcess . Save the project file and reload the project. Before <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PackageAction>BuildDefault</PackageAction> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PackageAction>BuildDefault</PackageAction> </PropertyGroup> After <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <PackageAction>BuildZipPostProcess</PackageAction> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PackageAction>BuildZipPostProcess</PackageAction> </PropertyGroup> Thanks Uma
... View more
05-01-2017
11:30 AM
|
1
|
1
|
817
|
|
POST
|
Hi Jack, When you create your CIMMarker, create it as a CIMCharacterMarker. You can then access the "polygon symbol" used to render the marker and then access the SymbolLayers (components that make up the symbol) to change the fill and outline. Here is a code snippet: var cimMarker = SymbolFactory.ConstructMarker(symbolIndex, "Wingdings 3", "Regular", sizeVal, colour) as CIMCharacterMarker; //create marker from the Font, char index,size,colour
var polygonMarker = cimMarker.Symbol;
//modifying the polygon's outline and fill
polygonMarker.SymbolLayers[0] = SymbolFactory.ConstructStroke(ColorFactory.GreenRGB, 2, SimpleLineStyle.Solid); //This is the outline
polygonMarker.SymbolLayers[1] = SymbolFactory.ConstructSolidFill(colour); //This is the fill
var pointSymbol = SymbolFactory.ConstructPointSymbol(cimMarker); //create a symbol from the marker Thanks Uma Harano
... View more
04-05-2017
06:18 AM
|
0
|
2
|
1087
|
|
POST
|
Hi Thomas it is not possible to tile the panes using the API. But if you save your project with your Panes tiled, when you re-open the project the arrangement of the Panes will be restored. Thanks Uma
... View more
03-27-2017
12:26 PM
|
1
|
1
|
657
|
|
POST
|
Hi Adrian With Pro 1.4 it is not possible to get colors from the ColorRamp to use in the class break renderer - you will have to define the symbol explicitly for each break. We will look into methods to work with the color ramp in future releases. Regarding setting the default symbol and out of range color and label, I got this code below to do that. I had to set the UseDefaultSymbol = true flag to get it to work. Code snippet below: var defaultSymbolReference =
SymbolFactory.ConstructPolygonSymbol(ColorFactory.GreyRGB, SimpleFillStyle.Solid).MakeSymbolReference();
CIMClassBreaksRenderer cimClassBreakRenderer = new CIMClassBreaksRenderer
{
ClassBreakType = ClassBreakType.GraduatedColor,
ClassificationMethod = ClassificationMethod.Manual,
Field = "Y2008_VOTE",
Breaks = listClassBreaks.ToArray(),
UseDefaultSymbol = true,
DefaultSymbol = defaultSymbolReference,
DefaultLabel = "<out of range>"
}; Thanks Uma Harano Pro SDK Team
... View more
03-10-2017
01:56 PM
|
0
|
0
|
1337
|
|
POST
|
Hi Luke, The DependsOnTargets value should be PackageArcGISContents. This snippet below works for me. Thanks Uma <Target Name="AfterBuild" DependsOnTargets="PackageArcGISContents">
<!--Replace the path in the sample command below to your pfx file on disk and use the password that has been assigned to the pfx file.
Confirm that the path to ArcGIS Pro bin folder matches your installation location.-->
<Exec Command=""C:\Program Files\ArcGIS\Pro\bin\ArcGISSignAddIn.exe" $(TargetDir)$(TargetName).esriAddInX /c:D:\esri.pfx /p:*****/s" />
<!-- Note: to register the Add-in you need to run RegisterAddin.exe. Modify the path to your RegisterAddin.exe
location as needed-->
<Exec Command=""C:\Program Files\ArcGIS\Pro\bin\RegisterAddin.exe" $(TargetDir)$(TargetName).esriAddInX /s" />
</Target>
... View more
02-27-2017
05:26 AM
|
0
|
1
|
752
|
|
POST
|
Hi Kirk, The MoveLayer method does move the layer to the bottom if you pass in a valid index. We will look into this! But in the meantime, this code snippet will help with moving the layer to the bottom: var srcLayer = MapView.Active.GetSelectedLayers().FirstOrDefault();
await QueuedTask.Run(() =>
{
MapView.Active.Map.MoveLayer(srcLayer, (MapView.Active.Map.Layers.Count - 1));
}); Thanks! Uma Harano ArcGIS Pro SDK Team.
... View more
02-24-2017
09:40 AM
|
0
|
0
|
942
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-18-2025 03:09 PM | |
| 1 | 11-04-2025 08:25 AM | |
| 1 | 09-23-2025 09:31 AM | |
| 1 | 11-20-2024 10:50 AM | |
| 1 | 04-28-2025 03:06 PM |
| Online Status |
Online
|
| Date Last Visited |
4 hours ago
|