Tagged Questions
7
votes
2answers
107 views
Arcobjects, mystery green lines in the Layout View produced during script execution
Could any of Arcobjects guru tell me, what are these green lines on my Page Layout and what to do, or not to do, so they do not appear? See image attached.
I do used Arcobjects from Python. My script ...
2
votes
1answer
40 views
Arcobjects: DisplayTransformation.FromMapPoint() transforms wrong
I want to transform map coords into page coords in ArcObjects in Python. So I do, say:
>>> pApp = NewObj(esriFrame.AppROT, esriFrame.IAppROT).Item(0)
>>> pDoc = pApp.Document
...
1
vote
1answer
100 views
.Net to Python - ArcGIS Add-in
Background:
I have been tasked with porting a 9.3 .NET toolbar to ArcGIS 10 / 10.1. I am a dyed in the wool Python programmer and, while digging through someone else's .Net is interesting, it isn't ...
0
votes
1answer
41 views
How to use a property of a different interface for a created ArcObject
I have created an arc based three points (from point, through point, and to point). To create the arc I used this code:
import arcpy, comtypes.client
import comtypes.client.CreateObject as ...
0
votes
0answers
42 views
Code for Transferring into Python from ArcOBjects Program? [duplicate]
Possible Duplicate:
Calling arcpy/python from .NET?
I wrote my program in ArcObjects at the beginning because I needed a form. Now when the Map and Cancel button are hit I need to move into ...
2
votes
1answer
358 views
ArcObjects + comtypes at 10.1
Has anyone played around with using ArcObjects in Python at version 10.1?
I am having all sorts of problems, such as TypeErrors when wrapping the ESRI OLB modules and AttributeErrors when attempting ...
0
votes
0answers
115 views
convert from c# to python
I develope an application with c# to create offset in arcgis . i want to convert this application to python . how can i do these in python? I try to use this sample . it was very helpful for me but i ...
0
votes
1answer
82 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 ...
1
vote
1answer
144 views
Arcobjects in Python, inherit from Abstract Class
As for question, I am trying to adjust Grid Map labels via Arcobjects with Python. For now I do have:
from comtypes.client import CreateObject, GetModule
import arcpy
def CType(obj, interface):
...
1
vote
1answer
125 views
Grid labels in ArcGIS, overlapping issues
I do have 3 grids made by Grids menu in data frame properties. I do need them to display in certain layout and also to behave accordingly to couple of rules (overlapping issues), so I can automate my ...
3
votes
1answer
147 views
Is it possible to create a new ArcGIS toolbar with new tools using Python?
I have written a number of fairly-simple python functions using arcpy which help a user significantly when performing a certain workflow using various tools (both ArcGIS toolbox tools and external ...
0
votes
2answers
332 views
Running Arcpy script from ArcObjects
the standard method requires to run arcpy script in commande line, i've struggled with it to run but without a result, i can import arcpy, set the workspace to the geodatabase path and describe the ...
6
votes
0answers
800 views
Add layer to open mxd using ArcObjects from outside the map document crashes ArcMap
I have an Access database (MS Access 2010) that allows users to enter a variety of land treatment information including associated points, lines, or polygons which users can select and the database ...
2
votes
2answers
122 views
Finding Two locations with a conditional search on DEM
I want to find two locations H difference in elevation between two locations on a DEM.
Ex: point A and B are my output after search on DEM. conditions are (1)buffer R distance around point A and (2) ...
7
votes
2answers
389 views
How to determine on which side of a line a polygon feature falls?
I have parcel data intersecting line data. In the parcel data there are some parcels that don't intersect the line. How could I programmatically figure out if the non-intersecting parcel is on the ...