|
POST
|
Hi, Your code works fine. Check layer name in TOC. Another one thing is your layer selectable?
... View more
06-12-2025
02:23 PM
|
0
|
1
|
1259
|
|
POST
|
Hi, Try to change newSubpane parameter value to true: Geoprocessing.OpenToolDialog(scriptPath, null, null, newSubPane: true);
... View more
06-11-2025
10:14 PM
|
0
|
0
|
966
|
|
POST
|
Custom renderers could help you. The custom renderer approach allows you to use native controls and their features. By writing custom renderers, you can capture native touch events.
... View more
06-11-2025
07:36 AM
|
0
|
0
|
2316
|
|
POST
|
There is possibility to use GeometryEditor which works with magnifier, but it has some requirements. More info in that thread.
... View more
06-11-2025
06:44 AM
|
0
|
0
|
2341
|
|
POST
|
Hi, You can switch off magnifier and implement your workflow on GeoViewHolding. Code below: // In MainPage constructor
mapView.InteractionOptions = new MapViewInteractionOptions()
{
IsMagnifierEnabled = false, // Disable magnifier.
};
... View more
06-10-2025
10:31 PM
|
0
|
2
|
2360
|
|
POST
|
I understood that you need the code in VB. The same classes and methods you can call from c#. 8-17 lines in VB code makes projection with transformation. wkid 102633 is code for ArcObjects esriSRProjCS_NAD1983SPCS_AK3FT. var areaOfInterest = MapView.Active.Extent;
MapPoint pPoint = MapPointBuilderEx.CreateMapPoint((areaOfInterest.XMax - areaOfInterest.XMin) / (double)2 + areaOfInterest.XMin, (areaOfInterest.YMax - areaOfInterest.YMin) / (double)2 + areaOfInterest.YMin, MapView.Active.Map.SpatialReference);
SpatialReference pGeoCoordSystem = SpatialReferenceBuilder.CreateSpatialReference(SpatialReferences.WGS84);
SpatialReference pProjCoordSystem = SpatialReferenceBuilder.CreateSpatialReference(102633);
ProjectionTransformation pGeoTrans = ProjectionTransformation.Create(pProjCoordSystem, pGeoCoordSystem);
MapPoint pProjectedPoint = GeometryEngine.Instance.ProjectEx(pPoint, pGeoTrans) as MapPoint;
Console.WriteLine(pProjectedPoint.Y);
Console.WriteLine(pProjectedPoint.X); Documentation link is here
... View more
05-24-2025
12:14 PM
|
0
|
0
|
2120
|
|
POST
|
Hi, There is one sample project for VB in Esri Community ArcGIS Pro Samples. Solution is here. Try code below for your functionality: Try 'TRY TO GET THE CENTER SCREEN LOCATION FROM THE ACTIVE VIEW, JUST SHOW THE FORM ON ERROR
Dim areaOfInterest = MapView.Active.Extent
Dim pPoint As MapPoint
pPoint = MapPointBuilderEx.CreateMapPoint((areaOfInterest.XMax - areaOfInterest.XMin) / 2 + areaOfInterest.XMin,
(areaOfInterest.YMax - areaOfInterest.YMin) / 2 + areaOfInterest.YMin, MapView.Active.Map.SpatialReference)
Dim pGeoCoordSystem As SpatialReference
Dim pProjCoordSystem As SpatialReference
Dim pGeoTrans As ProjectionTransformation
pGeoCoordSystem = SpatialReferenceBuilder.CreateSpatialReference(SpatialReferences.WGS84)
pProjCoordSystem = SpatialReferenceBuilder.CreateSpatialReference(102633)
pGeoTrans = ProjectionTransformation.Create(pProjCoordSystem, pGeoCoordSystem)
Dim pProjectedPoint As MapPoint
pProjectedPoint = CType(GeometryEngine.Instance.ProjectEx(pPoint, pGeoTrans), MapPoint)
Console.WriteLine(CStr(pProjectedPoint.Y))
Console.WriteLine(CStr(pProjectedPoint.X))
Catch ex As Exception
'DO NOTHING
End Try As I understand your map spatial reference is esriSRProjCS_NAD1983SPCS_AK3FT. So, instead of creating pProjCoordSystem you can use Map spatial reference
... View more
05-23-2025
01:30 AM
|
0
|
2
|
2191
|
|
POST
|
Hi, @Jeff-Reinhart Look at the DatastoresDefinitionsAndDatasets sample. DataPath property has two-way binding. DockPane implements INotifyPropertyChanged. OnPropertyChanged is implemented inside SetProperty(ref _dataPath, value, () => DataPath); You can change it to expanded form: _dataPath = value;
OnPropertyChanged();
... View more
05-21-2025
12:52 PM
|
1
|
1
|
1504
|
|
POST
|
I would recommend for issues with geoprocessing parameters use ExecuteToolAsync method with GPToolExecuteEventHandler parameter. Sample you can find in documentation here, or in Community samples.
... View more
05-21-2025
12:00 PM
|
0
|
0
|
1721
|
|
POST
|
Next issue is your fieldArgs parameter. It must be like below (this is for numeric fields): string fieldArgsStr = "'field1' 1; 'field2' 2"; //fieldname1 space fieldvalue1 separator fieldname2 space fieldvalue2
var argsCalculate = Geoprocessing.MakeValueArray(featureLayer, "PYTHON3", fieldArgsStr); I don't know how fields list parameter must look with text fields.
... View more
05-21-2025
07:34 AM
|
0
|
2
|
1751
|
|
POST
|
Hi, Try to change last two lines from your function to lines below: var argsCalculate = Geoprocessing.MakeValueArray(featureLayer, "PYTHON3", fieldArgs);
IGPResult result = await Geoprocessing.ExecuteToolAsync("management.CalculateFields", argsCalculate, null, null, null, GPExecuteToolFlags.None); Yours referencing to feature layer is invalid. Your function will calculate only TEXT fields (depending on your input parameters). Change them from string to object if you want to work with all types of fields.
... View more
05-20-2025
10:26 PM
|
0
|
4
|
1779
|
|
POST
|
Hi, I see you use bevelRatio parameter not equal 0 (0.5). That parameter is used only when offsetType is miter. Your offsetType is round. Try reset bevelRatio. Maybe it is a side effect?
... View more
05-15-2025
10:25 PM
|
0
|
0
|
1244
|
|
POST
|
There would be no need to have such Custom Control if it could be done without it. Another one thing that all controls defined in DAML must implement IPlugInWrapper interface. I am not sure that your custom control implements IPlugInWrapper interface.
... View more
05-07-2025
10:21 PM
|
1
|
0
|
1283
|
|
POST
|
Hi, Do you want to use your custom control in ribbon or ProWindow/ Dockpanel? If you want to use it in ribbon, then create new ArcGIS Pro Custom Control and place your control inside. For both cases you need to add reference to your library at the start of your xaml: <UserControl x:Class="ProAppModule4.CustomControl1View"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ui="clr-namespace:ProAppModule4"
xmlns:extensions="clr-namespace:ArcGIS.Desktop.Extensions;assembly=ArcGIS.Desktop.Extensions"
xmlns:myuc="clr-namespace:ControlLibrary.XColorPicker;assembly=ControlLibrary"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300"
d:DataContext="{Binding Path=ui.CustomControl1ViewModel}">
<UserControl.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<extensions:DesignOnlyResourceDictionary Source="pack://application:,,,/ArcGIS.Desktop.Framework;component\Themes\Default.xaml"/>
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</UserControl.Resources>
<Grid >
<myuc:XColorPicker />
</Grid>
</UserControl> And add your library reference to project.
... View more
05-07-2025
01:20 PM
|
0
|
1
|
1307
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 1 | 3 weeks ago | |
| 1 | 06-30-2026 10:14 PM | |
| 1 | 06-30-2026 01:43 PM | |
| 2 | 04-24-2026 08:33 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|