Select to view content in your preferred language

Rotation of symbols in Utility Network diagrams possible?

766
4
Jump to solution
07-27-2023 08:05 AM
LydiaStekkinger
Occasional Contributor

Hi everyone,

We know that point symbols can be rotated in our maps, so that a symbol for a circuit breaker, for example, shows the correct 'open' or 'closed' status. See Example symbol rotation in map. But our team is wondering if similar automatic rotation of point symbols can be done in diagrams, and if it's aligned with the horizontal and vertical lines in the diagram, or if it will keep the rotation that is used in the map. We would like to use this for our single line diagrams.

If you have experience with this, we'd love to hear it! 🙂

0 Kudos
1 Solution

Accepted Solutions
AnneYvonneBlin
Esri Contributor

Hi @LydiaStekkinger,
Yes such a symbol rotation can be set up on your diagram junctions like in the diagrams below:
AnneYvonneBlin_0-1690479123144.png
Moreover, there is an easy way to get symbol settings present in your map on your diagrams. Indeed, to import any layer settings set up in your network map to your diagrams, you can run the Create Diagram Layer Definition tool on your diagram template (see https://pro.arcgis.com/en/pro-app/latest/help/data/network-diagrams/initialize-a-custom-diagram-laye... for more details about the workflow steps). 
Note: Please watch the Defining Nice Layer for Better Network Diagrams video for more details about network diagram layer management and configuration.

About the next point, will it "align with the horizontal and vertical lines in the diagram, or will it keep the rotation that is used in the map" => it will keep the rotation that is used in the map by default...
However, we provide a Pro add-in sample code with custom commands that you can use to easily rotate diagram junction symbols like you expect! This add-in command edits the Element Rotation field of the diagram junction, then the newly edited Element Rotation value can reflect on the diagram junction symbol like in the graphic below 🙂

AnneYvonneBlin_1-1690482502831.png

NOTE: if you store your diagram, these Element Rotation field value will be kept with your diagram. Each time you open your diagram, it opens with the custom symbol rotation you edited 

You can download this Pro add-in code sample here

 

View solution in original post

4 Replies
AnneYvonneBlin
Esri Contributor

Hi @LydiaStekkinger,
Yes such a symbol rotation can be set up on your diagram junctions like in the diagrams below:
AnneYvonneBlin_0-1690479123144.png
Moreover, there is an easy way to get symbol settings present in your map on your diagrams. Indeed, to import any layer settings set up in your network map to your diagrams, you can run the Create Diagram Layer Definition tool on your diagram template (see https://pro.arcgis.com/en/pro-app/latest/help/data/network-diagrams/initialize-a-custom-diagram-laye... for more details about the workflow steps). 
Note: Please watch the Defining Nice Layer for Better Network Diagrams video for more details about network diagram layer management and configuration.

About the next point, will it "align with the horizontal and vertical lines in the diagram, or will it keep the rotation that is used in the map" => it will keep the rotation that is used in the map by default...
However, we provide a Pro add-in sample code with custom commands that you can use to easily rotate diagram junction symbols like you expect! This add-in command edits the Element Rotation field of the diagram junction, then the newly edited Element Rotation value can reflect on the diagram junction symbol like in the graphic below 🙂

AnneYvonneBlin_1-1690482502831.png

NOTE: if you store your diagram, these Element Rotation field value will be kept with your diagram. Each time you open your diagram, it opens with the custom symbol rotation you edited 

You can download this Pro add-in code sample here

 

PierreloupDucroix
Frequent Contributor

Hello,

very interesting tool.

The correct, public URL is : https://github.com/Esri/arcgis-pro-sdk-community-samples/tree/master/NetworkDiagram

AnneYvonneBlin
Esri Contributor

Thanks @PierreloupDucroix !

0 Kudos
LydiaStekkinger
Occasional Contributor

Hi @AnneYvonneBlin, thank you for the explanation and code, that sounds great! I will take it back to our team.

0 Kudos