Linked Questions

143 votes
5 answers
30k views

Accessing ArcObjects from Python

I would like to be able to script some things that are not exposed via arcgisscripting or ArcPy. How do I access ArcObjects from Python?
matt wilkie's user avatar
  • 28.3k
8 votes
4 answers
6k views

Deploying ArcObject .NET DLLs

I am using several ESRI .NET DLLs in some custom Python scripts. For example ESRI.ArcGIS.Geodatabase.dll On my development machine these DLLs are in the C:\Program Files (x86)\ArcGIS\DeveloperKit10.0\...
geographika's user avatar
  • 14.4k
6 votes
3 answers
3k views

Drawing graphics onscreen using Draw/Refresh/PartialRefresh methods and ArcObjects

I find myself woefully lacking in understanding of when, why, and how (which type) to do screen draw/refresh/partial refresh. For instance, in a standalone Python script outside the application ...
celticflute's user avatar
  • 1,622
8 votes
3 answers
2k views

Is there a way to tell the geodatabase version using Python?

I want to find out if either a file or personal geodatabase is 9.3, 10.0, 10.1, etc Is there a way to do this using Python?
ianbroad's user avatar
  • 9,141
9 votes
5 answers
2k views

Programatically identifying Joined Field in ArcMap?

Is it possible to programmatically identify the Join Field that is being used to Table Join two datasets together in ArcMap? I am currently using ArcGIS 10.0, SP5 and would prefer an ArcPy solution, ...
RyanKDalton's user avatar
  • 23.2k
10 votes
1 answer
1k views

Arcobjects in Python: assign interface to objects with feature (shape) geometry

I am trying to use ArcObject in Python. I do have problem with assigning an interface (i.e. IZ.InterpolateZsBetween) to my object with geometry data, code is: from Comtypes.client import CreateObject,...
Tomek's user avatar
  • 2,923
2 votes
2 answers
849 views

From a script tool using ArcPy, can I store a point object in a BLOB field and retrieve that point later?

I am trying to write an ArcPy script tool that will store a point object in a BLOB field that I have created. I don't know if that is even possible. If it is, how do I do it, and how can I then ...
celticflute's user avatar
  • 1,622
2 votes
2 answers
2k views

How to get/set label scale ranges (e.g. minScale) in ArcPy?

For a layer object lyr, one can programmatically set the minScale in arcpy as such: lyr.minScale = 150000 For a label, one can manually set the scale range within a dialog in ArcMap. In arcpy, is ...
ModusPwnins's user avatar
2 votes
0 answers
925 views

Python comtypes and ArcObjects: Snippets GetApp() fails at 10.2

I have been experimenting with Python's comtypes module to access ArcObjects. We are still using ArcGIS 10.0 as we are in the process of upgrading our ArcGIS for Server to version 10.2.2. I am ...
crmackey's user avatar
  • 8,534
0 votes
1 answer
153 views

How can i use ihookhelper interface in python?

I use ArcObject in python to develope a tool. I import comtypes in python to access the arcmap layers in python and use ifeaturelayer interface. I have to set featurelayer to phookhelper.focusmap....
BBG_GIS's user avatar
  • 5,835