896 reputation
1018
bio website
location Durham, NH
age
visits member for 4 years, 6 months
seen Jun 19 at 19:30

Apr
16
awarded  Notable Question
Jan
7
awarded  Yearling
Nov
25
awarded  Popular Question
Sep
27
awarded  Notable Question
Sep
21
awarded  Notable Question
Jul
2
awarded  Curious
Jan
7
awarded  Yearling
Nov
29
awarded  Popular Question
Nov
21
awarded  Popular Question
Nov
18
comment In arcpy, if I subclass the arcpy Spatial Reference class, what is the object argument I would use in the subclass definition?
... that is, of course, the setter, getter, and deleter attributes. Sorry.
Nov
18
comment In arcpy, if I subclass the arcpy Spatial Reference class, what is the object argument I would use in the subclass definition?
Exactly what I was after. Very cool! BTW, I was also getting 'can't set attribute' errors with the initializing of instance attributes, because I was using the older Python 2.5 property decorator syntax with fget and fset as inner functions, which doesn't use the newer setattr, getattr, and delattr attributes. I guess I have some catching up to do.
Nov
18
accepted In arcpy, if I subclass the arcpy Spatial Reference class, what is the object argument I would use in the subclass definition?
Nov
18
comment In ArcObjects, how do I change the spatial reference of a Map (Data Frame) in an existing MXD?
Yes, a combination of arcpy and ArcObjects was the final solution. I agree about doing things in .NET, but that is a whole different level of effort, and frankly I am not really up on .NET language and syntax. I think if I were to go with .NET, I would myself do it in C#. I used to do a lot of GIS automation and extension in VB 6, but the syntax has changed so much since then. For now I am pretty much just doing automation scripting, and the Python/comtypes combination is pretty quick and slick for accessing ArcObjects.
Nov
18
asked In arcpy, if I subclass the arcpy Spatial Reference class, what is the object argument I would use in the subclass definition?
Nov
13
comment In ArcObjects, how do I change the spatial reference of a Map (Data Frame) in an existing MXD?
UPDATE: Creating and setting the new spatial reference through arcpy.mapping is certainly a good solution -- very fussy in ArcObjects; however, one of the other things I have to do to each new MXD is change the page settings. Unbelievably, you can't do that with arcpy/arcpy.mapping(!!!). This has been a serious oversight in arcpy for years. I knew about it before but had forgotten. Now I am painfully reminded. Oh well, back to ArcObjects after all.
Nov
13
comment In ArcObjects, how do I change the spatial reference of a Map (Data Frame) in an existing MXD?
Thanks, again. Now that I have asked the question in my comment above, I see that arcpy.mapping is probably going to be the answer to that one, too. I am embarrassed at my serious lapse in pre-question research ability. Oh well, live and learn. I shall strive to do better in the future. Best regards.
Nov
13
accepted In ArcObjects, how do I change the spatial reference of a Map (Data Frame) in an existing MXD?
Nov
13
comment In ArcObjects, how do I change the spatial reference of a Map (Data Frame) in an existing MXD?
Hmmm ... well ... Looks like I may have over-engineered it. Thnak you for the perspective check. I thought I had looked at arcpy.mapping thoroughly, and I rejected it for the ArcObjects route. Now, the question for me is "How do I create a new, custom spatial reference to assign to the DataFrame using your method above?" I will not have an existing feature class from which to copy the spatial reference.
Nov
12
comment In ArcObjects, how do I change the spatial reference of a Map (Data Frame) in an existing MXD?
@Hornbydd - I have now posted the code that you requested. Pretty simple stuff. I just don't know where is the best place to start in the object model. (Sorry. I was on a different computer and could only login with a different account. user23896 is me.)
Nov
12
asked In ArcObjects, how do I change the spatial reference of a Map (Data Frame) in an existing MXD?