ArcPy

From Wildsong
Jump to navigationJump to search

ArcPy is the Python module that ESRI provides with ArcGIS.

Today I am hacking up a script someone wrote to tune a page layout. I need to adjust a table of values so that it will fit in the space available.

Page Layout Elements

The problem I have is finding the properties of the objects in ArcPy. The docs buried in ArcMap "help" have them listed; the online docs are almost totally useless.

In this current case I want to be able to change the fontsize to fit many text elements into a page layout and there is indeed a property "fontSize" that is read and write.

Validation

See https://desktop.arcgis.com/en/arcmap/latest/analyze/creating-tools/customizing-script-tool-behavior.htm