Adding Elements to Layouts Progamatically

4510
12
03-21-2016 12:55 PM
ThomasCox
Occasional Contributor


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.

0 Kudos
12 Replies
ThomasCox
Occasional Contributor

I have started looking at the Pro 2.0 api.  While I have not looked closely, it seems new api still does not allow the creation of new layout elements.  A response to the initial submission from ESRI said this functionality would not be available at 1.3 or 1.4.  I was hoping this might be included in the 2.0 release. I would appreciate any information from ESRI when this will be part of the Pro api.

Any information would be welcome.

0 Kudos
JeffBarrette
Esri Regular Contributor

Some undocumented capabilities were included with 2.0 but the fully supported Layout API for creating and adding layout elements is planned to be available for 2.1. 

ThomasCox
Occasional Contributor

Thanks for the info Jeff.  It definitely helps our rollout plans.  I appreciate you responding.

0 Kudos