Hi,
I recently imported a bunch of associations using the ImportAssociations toolbox in python.
I now want to use UDMS's "create association line" toolbox in ArcGIS Pro to visualize containment associations with lines.
The toolbox returns no lines, until I add new associations manually, or modify any existing association (removing then recreating)...
Do you know what I can do to make it work for all imported associations ?
Thanks
Solved! Go to Solution.
The issue is probably with import associations then.
Is your network topology disabled? I've reproduced a similar issue internally with import associations, but only when topology is disabled on mobile geodatabase.
Can you turn on debug mode and share the messages?
Open the toolbox and a tool
Open python window and type
import udms
udms.logging.setLevel('DEBUG')
I have this error :
udms.logging.setLevel('DEBUG')
Traceback (most recent call last):
File "<string>", line 1, in <module>
AttributeError: module 'udms' has no attribute 'logging'
Sorry, .logger
Not at my computer and typed it by memory
Here is the result :
udms 3.1.1
udms.logic.association_lines(
network='...UNPATH',
line_class='...PATH\EECUtilityNetwork_SAAsso',
connectivity=False,
containment=False,
attachment=True,
completely_within=None,
)
Describing network
In Path: ...UN Path...
URL: ...UN Path...
workspace: ...WKSP...
Path: ...UN Path...
Reading source features
StructureJunction
StructureBoundary
StructureLine
ElectricDevice
ElectricAssembly
ElectricJunction
ElectricLine
Reading associations
1
2
3
4
5
Joining attributes
Creating output feature class
Writing association records
1
2
3
4
udms.logic.association_lines 10.421187999999347
Hmm, not much help. Will have to try to repo. Is this services or Fgdb/mgdb
This is a mobile geodatabase
Btw, those options should only give you attachments lines. Connectivity it set to false
Yes but same things happens for each type of associations
Create Association Lines relies on Feature.AssociationStatus field for synthesizing geometries. If this field gets out of sync with the association table, some associations will not be included.
After importing the associations, can you run Summarize Utility Network Errors (another GP tool in UDMS) with "Identify Association Inconsistencies"? If the output table has records, that will confirm this bug.