tomas1

Adding Elements to Layouts Progamatically

Discussion created by tomas1 on Mar 21, 2016
Latest reply on Aug 18, 2017 by tomas1


I hesitate to ask this question as I fear it will reveal a major part of the new ArcGIS Pro sdk that I probably should already be aware of . Specifically, I have been looking at the various help resources ( sdk reference, snippets, etc...)  for an example of adding graphic elements and map surround type objects to a layout through code.  Coming from ArcObjects I was looking for a pattern following the familiar ArcObjects IGraphicsContainer.

 

The Pro Layout Snippet examples appear to be confined changing elements already present in the layout.  I have looked at the LayoutProjectItem as well the Layout class itself.  I can see the method to return Elements from the pro Layout class. However, I have not figured out how to add new elements of even determine whether it is possible.

 

Any assistance would be appreciated.

Outcomes