There is a way to access ArcObjects from python.There is a Stack Exchange thread titled: How do I access ArcObjects from Python?http://gis.stackexchange.com/questions/80/how-do-i-access-arcobjects-from-pythonthat gives some leads on this.It IS, however, both exasperating and annoying to keep hearing things along the lines of"python scripting is not intended to do things like <fill in simple task here>".
All "CURRENT" means is that your code is referencing the document that is currently loaded into the ArcMap application. This means the code is being run from either the Python window or from a script tool from within ArcMap.The document that is open should have all your extra stuff, often times tucked away off the page. Your code can call it when/if needed.Jeff
Clone() is a method on the text element or graphic element classes.Check out the second example on the graphic element class. It builds a dynamic table by cloning graphic lines and text.http://resources.arcgis.com/en/help/main/10.1/#/GraphicElement/00s300000040000000/Jeff
At 10.1, text and graphic elements can be cloned. So you can author a single element with the font, color, etc and clone when needed elsewhere. Arcpy does not allow you to change text color, font and many other properties directly although you can do it by setting the text string to include tags.Jeff
Currently the arcpy.mapping module contains no where near the functionality you can achieve with ArcObjects. There is no way I know of to create a new text element using arcpy.mapping. You can take an existing element and change the size, position, text, etc.
Membros conectados podem postar, seguir atualizações e mais. Novo aqui? Registre uma conta gratuita.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.