A version of the Python programming language.
3
votes
1answer
1k views
How do I programmatically create non-feature-linked, simple line callout annotation and set the anchor point?
Vitals: ArcGIS-ArcView 10.0, Python 2.6.5, PythonWin, comtypes
I'll start with my main questions: How, using ArcObjects, do I go about creating non-feature-linked geodatabase annotation features ...
0
votes
1answer
151 views
Accessing smb share on Trimble YUMA with python
I need to write a script that would import a .shp on the YUMA to a gdb on the script/host pc for manipulation with arcpy. I can't seem to find a smb python module. So Im not entirely sure on how to do ...
1
vote
0answers
369 views
ArcObjects: How to get the size of the formatted text part only of a TextElement whose text contains formatting tags?
I'm working in ArcGIS 10.0 and Python 2.6.5. I have a string, say 'mMx', that I want to enter into a TextElement (in the data view). The lowercase letters are to be substituted with a graphical ...
5
votes
2answers
1k views
(New at Python Scripting) Creating a Loop so i can replace text in page layout in multiple mxds instead of one mxd at a time
I found some code on a website that will perform a search and replace on page layout text elements. Currently you can only do it one MXD at a time. I was hoping to change the code so I can do a search ...
2
votes
1answer
282 views
ArcObjects ITextSymbol.GetTextSize in Python revisited: usage with StartDrawing and FinishDrawing methods
I am using ArcGIS 10.0/ArcObjects and Python 2.6. I am trying to get the usage of the ITextSymbol.GetTextSize method correct. The syntax, as established in an earlier question, is:
dblx, dbly = ...
4
votes
3answers
1k views
Why would “import arcpy” hang Python script run from DOS/cmd prompt?
I have a very small test script (test.py) that I use to see if Python is installed and ready to use ArcPy. All it contains is:
print "Starting"
import os
print "OS imported"
import arcpy
print "ArcPy ...