|
POST
|
Thanks for the reply @RichRuh. Wrapping the code with QueuedWorker didn't help, same result. For now we can have users close AutoCAD between commands that need ArcGIS data, which is not ideal but at least it will get what we need into AutoCAD. It's unfortunate since it has been working really well using a direct sde connection. If I get more time in the future I will try to redesign or maybe ArcGIS for AutoCAD will get to where it can read branch versions.
... View more
09-21-2021
03:01 PM
|
0
|
0
|
2261
|
|
POST
|
Behavior described below was tested in ArcGIS Pro 2.6.3 and 2.8.2 and works the same in both. Using .net framework 4.8. I have this code snippet using the ArcGIS Pro SDK CoreHost that is run through AutoCAD 2021 using the netload command. This first example connects to an Enterprise Geodatabase using an sde connection to get a list of versions and works every time the command is executed. This is part of a bigger application that reads data from an SDE Version (selected by the user) and creates entities in the AutoCAD drawing. [STAThread]
//AutoCAD .net runtime command
[CommandMethod("AGTEST")]
public void Execute()
{
Host.Initialize();
var sdeconn = new DatabaseConnectionFile(new Uri("pathto.sde file"));
var gdb = new Geodatabase(sdeconn);
if (gdb.IsVersioningSupported())
{
var versionm = gdb.GetVersionManager();
var versions = versionm.GetVersionNames().OrderBy(p => p).ToList();
}
} I'm currently attempting to move to a Utility Network and updating the code to use ServiceConnectionProperties to instantiate the GeoDatabase. [STAThread]
//AutoCAD .net runtime command
[CommandMethod("AGTEST")]
public void Execute()
{
Host.Initialize();
var scp = new ServiceConnectionProperties(new Uri("https://myportal.mydomain.com/arcgis/rest/services/UN/Water_Distribution_Utility_Network/FeatureServer"));
var gdb = new Geodatabase(scp);
if (gdb.IsVersioningSupported())
{
var versionm = gdb.GetVersionManager();
var versions = versionm.GetVersionNames().OrderBy(p => p).ToList();
}
} The first time this code is ran it works as expected. Sometimes even subsequent executions work but eventually an exception will be thrown on line 12. The error reported is ArcGIS.Core.Data.GeodatabaseGeneralException HResult=0x80131500 Message=The application is not licensed to edit this type of data. Since it's service request I'm able to see what is happening with Fiddler and at some point the token stops being supplied in the requests and this is what triggers the error. I would appreciate any advice on how to make this work. Thanks, Jimmy
... View more
09-15-2021
04:59 PM
|
0
|
8
|
2334
|
|
POST
|
I have ArcGIS for AutoCAD 400 and I have Utility Network feature service I would like to connect to a specific version but I don't see that I can do that. Is there support for connecting to a version?
... View more
06-10-2021
08:43 AM
|
0
|
3
|
1623
|
|
POST
|
Thanks for the clarification, I needed that help to get past a few mental road blocks. For editing seems like we will be okay unless there is some new feature we are trying. I think I have some attribute rules using some newer features, I will test these to make sure they behave as expected. As @VishApte indicated I was able to create a utility network using ArcGIS Pro 2.7.3 against Enterprise 10.8.1/Utility Network v4. The problem that I conflated with create the utility network was applying an asset package. I have an asset package that can be applied to my Enterprise 10.8.1/Utility Network v4 when I use ArcGIS Pro 2.6.3 but I'm unable to "apply" that asset package when using ArcGIS Pro 2.7.3 (error message "The Utility Network must be version 5"). Not a big issue now that I understand what's happening. I'm going to try and get my organization to upgrade to Enterprise 10.9 soon and stick with Pro 2.7 until I can get the Utility Network in place.
... View more
05-19-2021
05:17 PM
|
0
|
0
|
3618
|
|
POST
|
As I today these are the paths to create a Utility Network: ArcGIS Pro 2.6x with Enterprise 10.8.1 and Utility Network version 4 ArcGIS Pro 2.7x with Enterprise 10.9 and Utility Network version 5 ArcGIS Pro 2.8 No? I have been running ArcGIS Pro 2.7 for a few months but 10.9 has only recently become available. In order to create a Utility Network I would either need to install 2.6 or upgrade Enterprise to 10.9, correct? My organization is working on migrating the Utility Network and plan to fully implement in the fall. We suspect that we will be able to upgrade to 10.9 by that time. However some users have already upgraded to ArcGIS Pro 2.8, will they be able to edit and work with the Utility Network created by earlier versions? Thank you for any input about how to work with Utility Network and the various versions of software needed for it to work as expected.
... View more
05-17-2021
02:13 PM
|
0
|
4
|
3658
|
|
POST
|
You could use featuresetbyrelationshipname so you don't have to worry about what field to join on. var relationship = FeatureSetByRelationshipName($feature, 'Device_Hydrant_To_Inspection', ['hast_assetid'], false);
return First(relationship).hast_assetid When I'm working on attribute rules it helps to run the code in a configured popup expression. This will allow you to see what data is being returned.
... View more
04-15-2021
11:23 AM
|
0
|
5
|
6854
|
|
POST
|
It provided no errors, the status bar just indicated "Running". I killed that process. Reopened the project, zoomed to the area of interest, and ran Validate Network Topology it found something to validate. I saved it. Then ran Validate Subnetwork, it completed in < 3minutes. I guess the lesson here is to make sure there are no dirty areas and to not believe the the geoprocessing tool when it just says "Running".
... View more
03-10-2021
05:05 PM
|
1
|
0
|
3942
|
|
POST
|
Thanks for the ideas. I'm running on Pro 2.7.1. The subnetwork is marked IsDirty = True. Topology is enabled. There are no unsaved edits.
... View more
03-10-2021
04:45 PM
|
0
|
0
|
3946
|
|
POST
|
I have a waterline utility network setup in a fileGDB. I have managed to get one subnetwork to have no dirty areas or network errors. I set up my subnetwork controller and ran "Update Subnetwork" on the single subnetwork of the water system. It has been running for over 5 hours. This subnetwork is relatively tiny (8,000 line segments out of over 800,000 segments). This subnetwork is completely disconnected from the rest of the system. I'm not sure if this is expected behavior has anybody tried to Update a subnetwork successfully? I don't currently have access to an enterprise gdb (waiting for IT dept. to get that setup) would I expect better results there?
... View more
03-10-2021
03:53 PM
|
0
|
8
|
3998
|
|
POST
|
I'm having the the same experience in the fileGDB >8 hours (~2,000,000 features). Haven't tried an enterprise yet. There should be an AP_workspace folder created when you apply the asset package. This has lots of details about what is happening especially in the gp_calls.log. This reports what is happening better than the python console. What that shows in my case is that the Waterline append is taking 7 hours and 45 minutes. The attribute rules might be an issue but as far as I can tell from that log is that they created but disabled until the very end of the process.
... View more
03-10-2021
03:27 PM
|
0
|
0
|
2076
|
|
IDEA
|
This would be helpful as many services move to the cloud and replicating data into the GIS is not always possible. Beyond the example on editing I could see this being used for enriching popup data.
... View more
02-04-2021
05:09 PM
|
0
|
0
|
9366
|
|
IDEA
|
Thanks for the tip @MelissaJarman. I still think improvements to the UI are needed but the python will be useful.
... View more
01-06-2021
01:22 PM
|
0
|
0
|
1792
|
|
IDEA
|
When right clicking the "Network" of a Utility Network dataset it would be helpful to have a new menu that allows the user to access different Network Properties. Similar to the "Design" menu on feature classes. This new menu would allow the user to open various network properties (rules, attributes, terminal configurations, etc). Each of these should be non-modal, dockable, and have a context ribbon.
... View more
12-23-2020
10:01 AM
|
11
|
0
|
1005
|
|
IDEA
|
The Network Proprieties pane is very helpful to see the details of how the network is configured. This seems to be the only place where these properties are accessed from. I am often reviewing network properties while also looking at feature class subtypes and fields. Having to open and close the network properties each time makes this a difficult task. I would prefer to have these properties behave like the "Design" properties (ie subtype, fields, and domains). These have context, are dockable, and non modal.
... View more
12-23-2020
09:53 AM
|
5
|
3
|
1837
|
|
POST
|
I created a support ticket and it was logged as a defect (BUG-000133265).
... View more
08-24-2020
07:26 AM
|
0
|
0
|
726
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-07-2023 04:56 PM | |
| 1 | 03-19-2025 03:48 PM | |
| 11 | 03-19-2025 04:45 PM | |
| 2 | 09-17-2024 10:47 AM | |
| 5 | 02-08-2024 09:04 AM |
| Online Status |
Offline
|
| Date Last Visited |
2 weeks ago
|