POST
|
Hi everyone How can I clear custom project settings? No matter whether I set the value to null settings[""] = null; or set the settings object to null settings = null; it keeps returning. Does it live forever in the .aprx? Like a zombie 😉 Thank you and regards, daniel
... View more
a week ago
|
0
|
2
|
94
|
POST
|
I found out how to resize the CircularAnimationControl. Like this the control works for me. Thanks. <controls:CircularAnimationControl Grid.Row="2" Foreground="{DynamicResource Esri_BorderSelectedBrush }" SpeedRatio="0.5" Width="30" Height="30" Visibility="{Binding Loading, Converter={StaticResource VisibilityConverter}}"/>
... View more
01-11-2021
12:40 AM
|
0
|
0
|
118
|
POST
|
Hi Gintautas, Thanks for your help. For the moment I use the CircularAnimationControl but that's not exactly what I'm looking for. For instance I didn't find out how to resize it. I'd rather prefer to use the control in the attached image which appears while a map is loading. I'd like my custom control to look Pro-ish. Thanks.
... View more
12-16-2020
12:21 AM
|
0
|
1
|
149
|
POST
|
Hi, Is there a way to show the following waiting control on a Dockpane while my custom WPF control is loading data? Also I'd like to change its label (not "Loading Map ..."). Help or any hints are much appreciated. Regards, Daniel
... View more
12-02-2020
05:17 AM
|
0
|
3
|
232
|
POST
|
In the ArcObjects code we stored the ObjectClassID and OBJECTID for the edit workspace. So we know what row our object is representing. We store these objects in the MXD/layer. And as I mentioned before, integers are easier to handle than strings. That's why I would love to have a method GetObjectClassNameByID() to use the table name later to open the table. Typically the 'related table ID' field contains the same value for all our 'row' objects. But in some special cases the field might have a different value. Since with ArcGIS Pro there are many potential edit workspace at once: how do store the identity of a row over many ArcGIS Pro sessions? Our solution right know is to use instance, version, user (from Connector type) or path (if it's a FGDB), table id and oid. My latest question on geonet is somehow related: https://community.esri.com/message/930889-unstable-rowhandle sorry for my long inactivity..
... View more
05-25-2020
02:52 AM
|
0
|
1
|
68
|
POST
|
The Row.Handle property is not stable but it should according to the docs: https://github.com/esri/arcgis-pro-sdk/wiki/ProConcepts-Geodatabase#unique-instancing Other handles are. Table.Handle for instance. Am I doing something wrong? Help is much appreciated, thanks. The code snippet below is a unit test. The Row.Handle is not stable in Pro App context either, e.g. running in QueuedTask. [ Test ] public void Compare_row_handles_SDE_LearningTest ( ) { var osaConnection = new DatabaseConnectionProperties ( EnterpriseDatabaseType . Oracle ) { Instance = "bla" , AuthenticationMode = AuthenticationMode . OSA } ; using ( var geodatabase = new Geodatabase ( osaConnection ) ) { var featureClass = geodatabase . OpenDataset < FeatureClass > ( "foo" ) ; var row0 = GetRow ( featureClass , 2453 ) ; var row1 = GetRow ( featureClass , 2453 ) ; Console . WriteLine ( "rows are equal: {0}" , Equals ( row0 , row1 ) ) ; Console . WriteLine ( "rows are reference equals: {0}" , ReferenceEquals ( row0 , row1 ) ) ; Console . WriteLine ( "row handles are equal: {0}" , Equals ( row0 . Handle , row1 . Handle ) ) ; Assert . AreNotEqual ( row0 . Handle , row1 . Handle ) ; } } public static Row GetRow ( Table table , long oid ) { using ( var cursor = table . Search ( new QueryFilter { WhereClause = $ "{table.GetDefinition().GetObjectIDField()} = {oid}" } , false ) ) { if ( ! cursor . MoveNext ( ) ) { return null ; } var row = cursor . Current ; Assert . False ( cursor . MoveNext ( ) , "more than one row found" ) ; return row ; } }
... View more
05-25-2020
02:46 AM
|
0
|
1
|
100
|
POST
|
Hi Wolfgang, Thanks for your reply. My request is not super critical. But it would be handy I thought it’s low hanging fruit. Different ObjectClassID (OBJECTIDs) in different workspaces: That’s a good point and you’re right. But when we store the ObjectClassID (and some state) in our lightweight objects we always refer to a specific workspace. So, this is not an issue. IDs are just handy. We don’t have to fiddle with strings (qualified names, case sensitivity, table name lengths, etc.). GUID type column: Our solution wouldn’t work if the column is missing. And we don’t want system/application information in our data model.
... View more
02-24-2020
02:06 AM
|
0
|
1
|
68
|
POST
|
We use IObjectClass.ObjectClassID and IObject.OID to identify an object in a geodatabase. We track that information for later use, e.g. open the object class. Since Table.GetID() is already implemented we could store that ID and later use "Geodatabase.GetDatasetNameByID()" to call Geodatabase.OpenDataset<T>(). Or Geodatabase.OpenDataset<T>(int id) would be convenient as well. Thank you.
... View more
02-07-2020
01:52 AM
|
0
|
5
|
153
|
POST
|
Hi Jared Thanks a lot for your answer. This was my first question in GeoNet and I never expected to get a reply on such a specific question. I really appreciate it. I would expect this bug to be fixed in 10.6 since it’s reported a year ago. Kind regards, Daniel ++ Daniel Roth | Software Engineer Esri Schweiz AG Josefstrasse 218 | 8005 Zürich | Telefon +41 58 267 19 66 d.roth@esri.ch<mailto:d.roth@esri.ch> | esri.ch<https://www.esri.ch/> THE SCIENCE OF WHERE
... View more
11-21-2018
12:23 AM
|
0
|
0
|
47
|
Online Status |
Offline
|
Date Last Visited |
a week ago
|