POST
|
Hello, An issue has been created and assigned to the development team. It s currently in the near-term queue, but I do not have any other timeline information on this.
... View more
2 weeks ago
|
0
|
0
|
48
|
POST
|
Hello, Thank you for reporting this. Internally we also recently identified this same issue with the RowHandle object and how it is used within the EditOperation object. The Create and Delete operations with regards to relationships is one of these scenarios where some gaps in functionality exist. As you mention if the RowHandle is defined using a MapMember and objectID pair then the EditOperation Delete relationship method will work correctly. Unfortunately it will not work if the rowHandle is defined using a Row (or with a Table/FeatureClass and objectID pair). These bugs have been fixed and will be available in the 3.4 release of the software. Sorry for any inconvenience. Narelle
... View more
08-08-2024
09:44 PM
|
1
|
0
|
94
|
POST
|
Hello, Thanks for bring this bug to our attention. This will be fixed for the Pro 3.4 release.
... View more
07-18-2024
04:46 PM
|
1
|
0
|
112
|
POST
|
Hi Grzegorz, This bug was found and logged too late to be resolved in the 3.3 release. It is currently targeted to be fixed for ArcGIS Pro 3.4. Narelle
... View more
07-02-2024
10:24 PM
|
0
|
0
|
165
|
POST
|
Sometimes there is other data that is in the geopackage file (for example raster data) that is not returned by the Database.GetTableNames method. In this instance you could use the the ItemFactory and Item classes to obtain the content. Here's an example snippet. var otherUris = new List<Uri>();
var tableUris = new List<Uri>();
var item = ItemFactory.Instance.Create(gpkgPath, ItemFactory.ItemType.PathItem);
var children = item.GetItems();
foreach (var child in children)
{
var childPath = child.Path;
if (child.TypeID == "sqlite_table")
tableUris.Add(new Uri(childPath));
else
otherUris.Add(new Uri(childPath));
}
// now use LayerFactory and StandloneTableFactory to
// create layers / tables
... View more
06-26-2024
06:11 PM
|
0
|
0
|
240
|
POST
|
Re the Delete GP Tool no longer removing map layers with deleted data source. There was a change at 3.3 with the behavior of data sources being deleted and renamed. The default behavior is now NOT to remove layers when this occurs I believe this change was made for performance reasons. However, you can alter this default behavior to revert back to the previous behavior. There is a new setting in the backstage options under the Map And Scene tab. See the Layer Data Sources expander where you can set the value for both deleting and renaming of data sources independently. Narelle
... View more
06-04-2024
07:18 PM
|
1
|
1
|
596
|
POST
|
Hello, Thanks for finding and highlighting this problem with the missing data on the Geometry tab with plug in datasources. I am able to duplicate the same behavior. Unfortunately there is no work-around to be able to display the coordinate data. I have logged an issue for this to be fixed in the next software release. regards Narelle
... View more
05-27-2024
09:22 PM
|
4
|
2
|
372
|
POST
|
You cannot add controls to the mapControl itself. but you can add other controls to the window that is hosting the mapControl. In your example (the MapControl sample); this means you can add a button to the OverviewWindow xaml file. If you are not familiar with WPF you may need to do some research about the various WPF controls that can help you control the layout. Here's an article that gives some introduction to the Grid control - https://wpf-tutorial.com/panels/grid/. and how you can use column, rows and alignments to position child elements . Narelle
... View more
05-07-2024
06:26 PM
|
0
|
0
|
304
|
POST
|
Hello, You need to wait until the MapControl on the overview window has finished drawing before you can add anything to it's overlay. Move your code into an event handler for the DrawComplete. Your OnClick method should look like the following protected override void OnClick()
{
if (_isOpen)
return;
_overview = new OverviewWindow();
var cam = MapView.Active.Camera;
//cam.Heading = 90;
_overview.ViewContent = MapControlContentFactory.Create(MapView.Active.Map, cam, MapView.Active.ViewingMode);
_overview.Closed += (s, e) =>
{
_isOpen = false;
lock (_lock)
{
_overview = null;
}
};
_overview.MyMapControl.DrawComplete += (s, e) =>
{
if (MapView.Active == null)
return;
var extent = MapView.Active.Extent;
var height = extent.Height;
var width = extent.Width;
var centerPt = extent.Center;
QueuedTask.Run(() =>
{
_overview.MyMapControl.AddOverlay(centerPt,
SymbolFactory.Instance.ConstructPointSymbol(
ColorFactory.Instance.RedRGB, 30.0, SimpleMarkerStyle.Star).MakeSymbolReference());
});
};
_overview.Show();
_isOpen = true;
} Narelle
... View more
04-28-2024
08:49 PM
|
0
|
0
|
373
|
POST
|
Hi Ed, I can duplicate your problem with the AutoZoomOnEmpty property when you specify a lyrx file uri to the LayerCreationParams. The assumption with this AutoZoomOnEmpty property is that there is only a single data source (and consequently only a single layer) being added to the map. Because you are specifying a lyrx file it is possible that there is more than one data source and layer being added . The code and AutoZoomOnEmpty property works as expected if the LayerCreationParams uri points to a single data source (such as a feature class or table in a geodatabase). Having said that, if you know that your lyrx file contains a single layer then the following is a possible workaround if you still wish to use a lyrx file. var layerdoc = new LayerDocument(path_to_lyrx_file);
var cimLayerDoc = layerdoc.GetCIMLayerDocument();
var layerDefs = cimLayerDoc.LayerDefinitions;
var layerDef = layerDefs[0];
var dataConnection = (layerDef as CIMFeatureLayer).FeatureTable.DataConnection;
LayerCreationParams lyrParams = new(dataConnection);
lyrParams.AutoZoomOnEmptyMap = false;
LayerFactory.Instance.CreateLayer<Layer>(lyrParams, map); I'll add an issue into our backlog to examine updating the code to take a lyrx file uri into account. Narelle
... View more
03-27-2024
09:08 PM
|
0
|
1
|
604
|
POST
|
Hi, Unfortunately we do not currently have any functionality to show custom help topics for MapTools. I will add an issue to our backlog to include this functionality. Regards Narelle
... View more
03-20-2024
04:31 PM
|
4
|
2
|
331
|
POST
|
Hi Dave, One way of having a sketch tool allow multiple clicks without using the Line sketch is to use the Multipoint geometry type. You can then override the OnSketchModifiedAsync callback to force the sketch to finish after your required number of clicks (in this case 2). Here's a small snippet that sounds like what you're looking for. internal class LeaderLineTool : MapTool
{
public LeaderLineTool()
{
IsSketchTool = true;
SketchType = SketchGeometryType.Multipoint;
SketchOutputMode = SketchOutputMode.Map;
}
protected override Task OnToolActivateAsync(bool active)
{
return base.OnToolActivateAsync(active);
}
protected override async Task<bool> OnSketchModifiedAsync()
{
var sketchGeom = await GetCurrentSketchAsync();
if (sketchGeom is Multipoint multiPoint)
{
var ptCount = multiPoint.Points.Count;
// force the sketch to finish if there are more than 2 points
if (ptCount >= 2)
FinishSketchAsync();
}
return true;
}
protected override Task<bool> OnSketchCompleteAsync(Geometry geometry)
{
if (geometry is Multipoint multiPoint)
{
// check the point count
// user could have finished the sketch with less than the
// required 2 points
var ptCount = multiPoint.Points.Count;
if (ptCount < 2)
{
return Task.FromResult(true);
}
var firstPoint = multiPoint.Points[0];
var secondPoint = multiPoint.Points[1];
// first point for leader line location
// second point for callout location
}
return base.OnSketchCompleteAsync(geometry);
}
} Narelle
... View more
02-21-2024
04:10 PM
|
0
|
0
|
344
|
POST
|
Hi Tony, The error message is a little misleading. But essentially before you open a table pane you must have a mapView active. Unfortunately once a table pane has been opened it becomes the active view. So the first table pane opens successfully, but then your mapView is no longer active which is why the second (and subsequent) attempts to open a table pane fail. You should be able to open multiple table panes by code similar to the following var mv = MapView.Active;
if (mv == null)
return;
// get the active pane (the pane of the active mapView)
var pane = FrameworkApplication.Panes.ActivePane;
foreach (var layer in attributeTableLayers)
{
try
{
// open a table pane
FrameworkApplication.Panes.OpenTablePane(layer, TableViewMode.eAllRecords);
// reactivate the pane for the mapview
pane.Activate();
}
catch (Exception ex)
{
}
} Narelle
... View more
01-02-2024
09:00 PM
|
2
|
0
|
731
|
POST
|
Hello, The recent project list is a user setting. When you upgrade to a new version of ArcGIS Pro, you get a new collection of user settings. As far as I know they do not automatically transfer between versions That is your 3.1 user settings do not automatically become your 3.2 user settings when you upgrade to 3.2. The GetRecentProjects API should return all the projects in your 3.2 recent project list user setting. This is not restricted to projects that have been "created" in the 3.2 version, but projects that have been "opened" in 3.2. You can find your user settings for 3.2 at c:\users\(userID)\AppData\Roaming\Esri\ArcGISPro_StrongName_xxxx\3.2.0.0 where the xxxx in ArcGISPro_StrongName_xxxx is some collection of characters. Narelle
... View more
11-30-2023
06:23 PM
|
0
|
0
|
240
|
POST
|
Hi Hao, The 3.2 release of the Pro SDK (coming very very soon) has support for TIN. Some of the new objects that have been added to the API are TinLayer and TinDataset. You can access the nodes (TinNode), edges (TinEdge) or triangles (TinTriangle) of a TinDataset by searching or accessing the element by it's index. The TinDataset object also has many of the other methods that can be found on the ITinAdvanced2 interface. Please take a look at these APIs when 3.2 is released and let us know if there is additional functionality you require. Thanks Narelle
... View more
10-31-2023
08:54 PM
|
1
|
2
|
476
|
Title | Kudos | Posted |
---|---|---|
1 | 08-08-2024 09:44 PM | |
1 | 07-18-2024 04:46 PM | |
1 | 06-04-2024 07:18 PM | |
4 | 05-27-2024 09:22 PM | |
1 | 02-12-2019 08:59 AM |
Online Status |
Offline
|
Date Last Visited |
Friday
|