POST
|
Is there a reason the CP Tier is parent to the System Tier? Seems to me that it should be the other way around. Circuits are typically smaller than systems, and plastic parts of a system will not have a circuit.
... View more
08-04-2020
02:54 PM
|
0
|
4
|
1098
|
POST
|
After upgrading Pro from 2.5.2 to 2.6, Create Utility Network fails with the following error: ERROR 003049: The account logged into portal is not licensed with the Utility Network Service user type extension. Failed to execute (CreateUtilityNetwork). After reverting back to 2.5.2, it works again. ArcGIS Enterprise is at 10.7.1. After looking at the documentation, it appears that Pro 2.6 requires Enterprise 10.8 in order to manage utility networks. Is that the case? Or is there a way to get it to work with 10.7.1?
... View more
07-30-2020
02:06 PM
|
0
|
4
|
1736
|
POST
|
I see the same problem in the default environment. And the plot thickens! Here's a test script I created to duplicate the problem: import arcpy
class DomainTest(object):
_sTargetGDB = "C:/apps/Data/UPDM_Migration/AssetPackage_AZGas.gdb"
_sBackupGDB = "C:/apps/Data/UPDM_Migration/AssetPackage_UPDM.gdb"
_sDomainName = "UNSG_WorkCrew"
_sDesc = "UNS Gas work crew"
_Values = ["NPL", "UES"]
def CreateDomain(self):
if arcpy.Exists(self._sBackupGDB):
if arcpy.Exists(self._sTargetGDB):
arcpy.Delete_management(self._sTargetGDB)
arcpy.Copy_management(self._sBackupGDB, self._sTargetGDB)
arcpy.CreateDomain_management(self._sTargetGDB, self._sDomainName, self._sDesc, "TEXT", "CODED")
return
def AddValues(self):
for sVal in self._Values:
arcpy.AddCodedValueToDomain_management(self._sTargetGDB, self._sDomainName, sVal, sVal)
return
Sometimes CreateDomain works and sometime it doesn't. If it works, then DomainTest.AddValues() fails. The CreateDomain_management error is: ERROR 000192: Invalid value for Domain Name Failed to execute (CreateDomain). The AddCodedValueToDomain error is: arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid. ERROR 000800: The value is not a member of AnnotationStatus | AP_All_Classes | AP_Association_Classes | AP_Association_Roles | AP_Association_Semantics | AP_Association_Types | AP_Attribute_Types..........
... View more
07-30-2020
08:02 AM
|
0
|
1
|
1335
|
POST
|
I'm used to running my scripts directly via Python.exe in the enviornment folder, but after upgrading from 2.5.2 to 2.6, certain arcpy tools are failing* whereas others work fine. It also fails at Pro's Python Command Prompt. But when I run the same script in a Pro session via the Python Window, it works fine. Has anyone else seen this? Is there something new I have to do now? And yes, I re-cloned and rebuilt my environment. *CreateDomain_management and AddCodedValueToDomain_management. I haven't gotten past those two.
... View more
07-29-2020
04:16 PM
|
0
|
4
|
1462
|
POST
|
Yes, I verified that I can have a pipe and test lead wire connected to the same terminal of a controlling device.
... View more
07-29-2020
03:14 PM
|
0
|
0
|
1427
|
POST
|
Well here I go thinking myself around a catnip mouse again. Even if I can attach a test lead wire to a controllable valve in a pipe network, what happens if the valve is closed to gas? It should still be able to trace for conductivity. That's where the "cptraceability" field comes in, I guess. I need to do some more playing around with this.
... View more
07-23-2020
12:24 PM
|
0
|
0
|
1427
|
POST
|
It just occurred to me that it may be possible for more than one line feature to be assigned to a valve terminal. If that's the case, then there may not be a problem after all. I'll look into that possibility after my latest round of experiments, which take considerable time.
... View more
07-23-2020
10:02 AM
|
0
|
1
|
1427
|
POST
|
If I create a rule for test lead wire to valve, there must be a reference to terminals. Those terminals are occupied elsewhere.
... View more
07-23-2020
09:56 AM
|
0
|
2
|
1427
|
POST
|
This is a Gas UPDM issue. We have a great number of CP test points connected to valves, and this has stumped me. I can create a new terminal configuration, but there are times when a device acts as a device, and times when it merely acts as a junction, depending on the subnet tier. I invite Esri and the Gas Utility Community to analyze this situation.
... View more
07-23-2020
05:16 AM
|
0
|
6
|
1556
|
POST
|
I finally got it working. It was an expired certificate, and I couldn't remember how to re-bind a new one. Finally I found the directions.
... View more
07-01-2020
09:16 AM
|
4
|
0
|
4801
|
POST
|
I have multiple Portal instances defined, including AGOL, never an issue in the past. I removed all except the local one I want to use, and I still get the "Unable to connect ArcGIS Online" message. Now here's an interesting development: I can connect to AGOL and other Portal instances just fine using arcpy; it's just the one that's acting up. I'll keep looking into it.
... View more
06-22-2020
07:55 AM
|
0
|
1
|
4801
|
POST
|
I'm seeing the same thing after upgrading ArcGIS Pro from 2.4.3 to 2.5.1 and Portal from 10.7 to 10.7.1: >>> arcpy.SignInToPortal(sPortalUrl, sPortalUser, sPortalPass)
Traceback (most recent call last):
File "<pyshell#8>", line 1, in <module>
arcpy.SignInToPortal(sPortalUrl, sPortalUser, sPortalPass)
File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\__init__.py", line 2468, in SignInToPortal
return _SignInToPortal(*args, **kwargs)
ValueError: Unable to connect ArcGIS Online.
>>>
... View more
06-19-2020
03:34 PM
|
0
|
3
|
4799
|
POST
|
Here's a workaround, using ArcObjects, that can be applied to the temporary file GDB as part of an automated workflow. As far as I can tell, it is currently impossible to do the same thing in ArcGIS Pro*, so this change must be applied before the annotation feature class is upgraded. using System.Collections.Generic;
using ESRI.ArcGIS.Carto;
using ESRI.ArcGIS.DataSourcesGDB;
using ESRI.ArcGIS.Display;
using ESRI.ArcGIS.esriSystem;
using ESRI.ArcGIS.Geodatabase;
namespace UpdateAnnoSym
{
public static class AnnoHelper
{
public static void UpdateAnno(string sWorkspacePath, string sAnnoClass)
{
// Open workspace and annotation class
// [Assumes a file GDB]
IWorkspaceFactory pWSF = new FileGDBWorkspaceFactoryClass();
IWorkspace pWS = pWSF.OpenFromFile(sWorkspacePath, 0);
IFeatureWorkspace pFWS = pWS as IFeatureWorkspace;
IFeatureClass pFC = pFWS.OpenFeatureClass(sAnnoClass);
// Get the class extension
object ext = pFC.Extension;
IAnnotationClassExtension pAnnoExt = ext as IAnnotationClassExtension;
// Get symbol collection and loop through symbols
bool bUpdated = false;
ISymbolCollection pSC = pAnnoExt.SymbolCollection;
Dictionary<int, ISymbol> SymbolTab = new Dictionary<int, ISymbol>();
pSC.Reset();
while (true)
{
// Check text symbol for HSL color definition
ISymbolIdentifier pSI = pSC.Next();
if (pSI == null)
break;
ISymbol pSym = pSI.Symbol;
ITextSymbol pTextSym = pSym as ITextSymbol;
IColor pCol = pTextSym.Color;
if (!(pCol is IHlsColor pHSL))
continue;
// Replace with RGB color
int iID = pSI.ID;
IClone pClone = pSym as IClone;
pTextSym = pClone.Clone() as ITextSymbol;
int iRGB = pHSL.RGB;
IRgbColor pRGB = new RgbColorClass() { RGB = iRGB };
pTextSym.Color = pRGB;
SymbolTab[iID] = pTextSym as ISymbol;
bUpdated = true;
}
if (!bUpdated)
return;
// Update annotation classes
IAnnotateLayerPropertiesCollection pAPC = pAnnoExt.AnnoProperties;
int iCount = pAPC.Count;
for (int i = 0; i < iCount; i++)
{
pAPC.QueryItem(i, out IAnnotateLayerProperties pAnnoProp, out IElementCollection pPlaced, out IElementCollection pUnplaced);
ILabelEngineLayerProperties pLabelProp = pAnnoProp as ILabelEngineLayerProperties;
int iID = pLabelProp.SymbolID;
if (!SymbolTab.ContainsKey(iID))
continue;
pLabelProp.Symbol = SymbolTab[iID] as ITextSymbol;
}
// Update symbol collection
// [Not really necessary?]
ISymbolCollection2 pSC2 = pSC as ISymbolCollection2;
foreach (int iID in SymbolTab.Keys)
pSC2.Replace(iID, SymbolTab[iID]);
// Save changes
IAnnoClassAdmin3 pAdmin = pAnnoExt as IAnnoClassAdmin3;
pAdmin.UpdateProperties();
}
}
}
*Feel free to vote up this idea if you agree with it: Geoprocessing Toolset for Creating and Manipulating Annotation Feature Classes
... View more
06-05-2020
02:50 PM
|
0
|
0
|
324
|
IDEA
|
Yes I have, but it can't be used to create a new annotation feature class from scratch, or add/remove/alter annotation classes in an existing annotation feature class. As far as I can tell, that can only be automated via ArcObjects, which is the approach I'm currently pursuing for my own issue.
... View more
06-04-2020
11:56 AM
|
0
|
1
|
2256
|
IDEA
|
The current trend for automation in ArcGIS Pro is to use the .NET SDK for manipulating records, and Geoprocessing tools to create and modify schema. However, unless I'm just not seeing it, at this point there is no toolset for creating and manipulating annotation feature classes (e.g. adding/dropping/altering annotation classes). Working with symbols is a challenge, I know. In the workflow I have in mind, I'm exporting datasets from an enterprise GDB to a file GDB and massaging them to make them compatible with MMPK creation. I recently ran into an ArcGIS Runtime 100.8 bug that can't handle the HSL symbol colors in an annotation class, and I'd like to find a workaround that doesn't involve modifying the original source schema.
... View more
06-04-2020
10:32 AM
|
4
|
7
|
2315
|
Title | Kudos | Posted |
---|---|---|
1 | 01-04-2012 06:42 AM | |
1 | 09-23-2021 10:42 AM | |
2 | 09-28-2021 07:07 AM | |
1 | 04-07-2021 10:31 PM | |
3 | 03-21-2021 01:14 PM |
Online Status |
Offline
|
Date Last Visited |
01-07-2022
08:31 AM
|