State Tree Diagram for ArcGIS Pro

07-26-2019 05:28 AM
Status: Open
Labels (1)
Occasional Contributor

The State Tree Diagram was available in the 9.x days.  A work around with the registry key kept it working in 10.x.  Since development has all but ended in traditional desktop, it's time to bring this request forward to ArcGIS Pro.


SDE administrators rely heavily on this tool.  Period.  The health of SDE versioning in general is dependent on congruity of the States and the Lineage.  This need will not disappear with ArcGIS Pro or with branch versioning.


Esri, plan now.  Work now.  Get this accomplished.


To work without the State Tree Diagram is like you having to write code without a computer.  Not very productive, intuitive, or feasible.  For SDE administrators, the State Tree Diagram is a requirement, not a nice-to-have.


SDE management.  It's a thing in GIS.


I agree with Ray's comments and add that "a picture is worth a thousand words". I don't have the ability to look at the state table and visualize this diagram. I'm not Neo in the Matrix! (bonus points for you if you get the reference)

I'm beginning to wonder if this is a case where the "guy" who originally wrote the code left and now the rest of the team is not knowledgeable enough to understand how to maintain/port it. Esri developers are way more talented for that scenario to be true, so prove me wrong and add it!


That was terrific tool.  Never understood why it was abandoned. 



If cost is the issue, we could start a FundMe campaign.  A programmer might come out of the cubicle...

Maybe there are just less people that know about it. I have shown it to many and everyone instantly sees the benefit. 

Did see an attempt in GitHub - haven't tied it.  Not sure if it will give version names, not just State ID.

Glimmer of hope...


I don't want to sound negative, but I've noticed over the years that if someone in the community creates some functionality then Esri will explicitly avoid creating the same or similar functions in the base software. I think it's a legal covering of butts so that there are no possibilities of lawsuits requesting royalties for ideas/code/whatever.

I, for one, will avoid the GitHub project and hope that an Esri-created solution is added to the base software. It's our only hope of having something that just works between version upgrades. And honestly I just want something embedded in the software that doesn't require a separate configuration. We should just be able to right-click on the database connection and have a "Show state tree" item to select.

It occurred to me (too late for this year) that we maybe should create a coordinated effort for anyone going to the User Conference to stop by the ArcGIS Enterprise island (and ArcGIS Pro island for good measure), ask about the state tree diagram functionality, and explicitly request it be added. The employees take notes and if there is this recurring theme of "I want a state tree diagram" then maybe our desire will get elevated/considered. Beats waiting six years for nothing! We might also consider bringing it up in the Pre-Conference Q&A survey comments.


I've been using the custom State Tree Diagram with ArcGIS Desktop for years. I've used the registry hack to get it installed on later versions (currently working with ArcGIS Desktop 10.6.1). Not sure how I'd do my work without it. The tools make it so much easier to get a quick view of the state tree and assess any performance issues. Esri, please add these tools to ArcGIS Pro!


As has already been mentioned, I created a gp tool to address this that works equally well in Pro and ArcMap.   Please check it out!


As the State Tree Diagram tool for ArcMap hasn't been supported for many years but the visual information is useful, you may find that the tool I created is helpful.  Really, it is just a relatively simple model/script tool in a toolbox and it is very simple to use.  As there are always design limitations with regards to drawing the diagram/labels/symbology etc., I provided the option to import the diagram into the map as features so the user can change the labeling, symbology, and easily explore as desired (or just view the diagram in a window or pdf).  And yes both the states ID's and versions are in the diagram.


As it's all open source, you can change the default symbology or colors as desired (there are layer files that control the symbology for imported features).  Let me know what you think or ideas to improve the functionality!

example diagram


The above tool looks great.  But much like the unsupported GDBT State Tree Diagram tool, it will become dated.  I do not mean to darken this light of sunshine.  When changes come (say Branch Versioning), will this code be updated?  For certain?  If it were part of the product, the answer would be yes.

Esri said it would incorporate the GDBT into the core product.  They did so for 80-90% of the product.  Just not the tool most desired.

It should be in ArcGIS and supported by Esri in future upgrades.

Again, I don't mean to belittle your effort.  The labeling alone is awesome and allows for much more flexibility.  A tall tree is going to apparently snag me.  Large enterprise environment.


@AndrewKniowski1 Many thanks for sharing ! Awesome tool. Well documented and working 🙂

I just add a small issue when running it. At first it complained that it could not load a library from an R CRAN repo which in the meantime has closed ( so I hardcoded the CRAN repo manually in state_tree_graph.R:


I know nothing about R and did not know where the default repo config is located.

Thanks again !