|
POST
|
You can use AddOverlay/UpdateOverlay from MapTool. OnToolMouseMove track mouse position, search for selected features and use AddOverlay/UpdateOverlay depending on search results. There are many samples using AddOverlay from ArcGIS Pro Community samples. One of them is : https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/Map-Exploration/OverlayExamples . Sample contains AddOverlayTrackMouseTool tool, which could be base for your tool
... View more
06-14-2023
09:50 AM
|
0
|
3
|
2018
|
|
POST
|
Documentation of ImageObject here: ImageObject QML Type | ArcGIS AppStudio | ArcGIS Developers
... View more
06-12-2023
12:53 PM
|
0
|
1
|
6688
|
|
POST
|
Hi, QuickReport sample contains that piece of code: var outputFileInfo = outputFolder.fileInfo(outputFileName);
//workaround for HEIC file format to be converted to jpg
if (outputFileName.match(/\.hei(c|f)$/i)) {
imageObject.load(picturePath);
outputFileName = outputFileName.replace(/\.[a-z]*$/i, ".jpg");
outputFileInfo = outputFolder.fileInfo(outputFileName);
outputFolder.removeFile(outputFileName);
if (!imageObject.save(outputFileInfo.filePath)) {
console.error("Unable to save image:", outputFileInfo.filePath);
return;
}
picturePath = outputFolder.filePath(outputFileName);
} else {
//imageObject.load(pictureUrl)
outputFolder.removeFile(outputFileName);
var issaved = imageObject.save(outputFileInfo.filePath)
//outputFolder.copyFile(picturePath, outputFileInfo.filePath);
}
picturePath = outputFolder.filePath(outputFileName);
... View more
06-10-2023
11:16 PM
|
0
|
3
|
6714
|
|
POST
|
Hi, For CoreHost applications, calls to editing methods should be enclosed within a call to Geodatabase.ApplyEdits. Sample here: https://community.esri.com/t5/arcgis-pro-sdk-questions/issue-creating-updating-features-via-corehost/td-p/864941
... View more
06-09-2023
07:09 AM
|
1
|
0
|
1142
|
|
POST
|
Hi, I have got symbol url from layer legend. It looks like: "image://arcgisruntimeimageprovider/67f53ba9-10bd-4bc9-a602-3356b685c9f6/image" It works if I use that URL for Image control source property in dialog. I have tried to create PictureMarkerSymbol like in code below: var pictureMarker = ArcGISRuntimeEnvironment.createObject("PictureMarkerSymbol", {
width: 32,
height: 32,
offsetY: 16
});
pictureMarker.url = symbolUrl
var graphic = ArcGISRuntimeEnvironment.createObject("Graphic", {
geometry: currentLocation})
reportGraphicsOverlay.graphics.append(graphic) If I use local url as "../images/pin.png" it works fine.
... View more
06-07-2023
05:48 AM
|
1
|
2
|
1281
|
|
POST
|
Hi, The first parameter of "conversion.AddRasterToGeoPackage" is RasterLayer. See documentation: Add Raster to GeoPackage (Conversion)—ArcGIS Pro | Documentation So you need to add raster to map and then pass result RasterLayer to geoprocessing.
... View more
06-02-2023
11:46 AM
|
0
|
0
|
1304
|
|
POST
|
Hi, Link shows status of the bug: https://support.esri.com/en-us/bug/using-inspectorloadfeaturelayer-oid-to-update-one-featu-bug-000153876
... View more
06-02-2023
11:41 AM
|
1
|
0
|
3173
|
|
POST
|
I have tried with ArcGIS Pro sdk community sample RibbonControls In sample original loadOnClick value is false. If I change it to true it works as @LSCGIS wrote, because object constructor is not activated until first checkbox click
... View more
05-31-2023
12:15 PM
|
0
|
2
|
1842
|
|
POST
|
Hi, Try to check add-in daml file. Your checkbox loadOnClick value must be set to false: <checkBox id="RibbonControls_CheckBox1" keytip="XC" caption="CheckBox 1" className="CheckBox1" loadOnClick="false">
<tooltip heading="CheckBox1 Tooltip Heading">
CheckBox1 Tooltip Heading.
<disabledText />
</tooltip>
</checkBox> And rebuild solution after changes
... View more
05-31-2023
04:10 AM
|
0
|
0
|
1852
|
|
POST
|
MapTool has OnActivePaneChanged. protected override bool? OnActivePaneChanged(Pane pane)
{
return true;
}
... View more
05-30-2023
07:11 AM
|
0
|
0
|
1514
|
|
POST
|
Hi, If I understood what you want, you can override OnToolActivateAsync method if MapTool is yours. To get which tool is active in ArcGIS Pro, you can use FrameworkApplication.ActiveTool
... View more
05-30-2023
06:48 AM
|
0
|
3
|
1521
|
|
POST
|
Hi, For count you can use method GetCount(QueryFilter) Method—ArcGIS Pro from table or featureclass. For records grouping I would suggest you look at the GroupBy Property (TableStatisticsDescription)—ArcGIS Pro.
... View more
05-26-2023
06:47 AM
|
0
|
2
|
2122
|
|
POST
|
Hi, Geoprocessing.MakeValueArray doesn't know how to manage your sorting fields. Try to change List<Tuple<string, string>> parameter to simple string: var sort_fields = $"{AggregateField} ASCENDING; MUKEY DESCENDING";
var para = Geoprocessing.MakeValueArray(intersectFC,intersectSortFC, sort_fields);
utility.GPRun("management.Sort", para);
... View more
05-24-2023
10:37 PM
|
1
|
0
|
1341
|
|
POST
|
Hi, First question is answered here: https://community.esri.com/t5/arcgis-pro-sdk-questions/view-or-modify-attributes-in-window-or-dock-pane/m-p/1065765
... View more
05-19-2023
12:07 PM
|
0
|
0
|
3065
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Tuesday | |
| 1 | 3 weeks ago | |
| 1 | 3 weeks ago | |
| 2 | 04-24-2026 08:33 AM | |
| 1 | 03-23-2026 11:44 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|