43 reputation
5
bio website
location
age
visits member for 1 year, 11 months
seen 8 mins ago

7m
awarded  Commentator
7m
comment Python comtypes and ArcObjects: Snippets GetApp() fails at 10.2
I just wanted to provide an update...I am running 10.2 on a VM using VMWARE and have 10.0 installed on my regular machine. A coworker who is running 10.2.1 as his primary was able to use my code and he did not have any errors. This is either an issue with my VM or the install on my VM.
7h
comment Python comtypes and ArcObjects: Snippets GetApp() fails at 10.2
Unfortunately none of the suggestions in that thread resolved the issue. I have not seen where anyone else has received the same Windows Error I am getting. It doesn't tell me what class is not registered either. I'm not sure what is going on here.
19h
comment Python comtypes and ArcObjects: Snippets GetApp() fails at 10.2
Yes, the GetApp() function is exactly the same as the script in that link you provided and POINTER(BSTR): VT_BYREF|VT_BSTR is in the dictionary in my automation.py module. I am not sure what is causing the problem.
1d
asked Python comtypes and ArcObjects: Snippets GetApp() fails at 10.2
1d
comment Adding a graphic line element to open mxd using python comtypes to access ArcObjects
And if I could bug you one more time, for some reason the pElement.Name property is not being set. I just looked back in the help docs and I see why...That is because apparently I made that up because it has no "Name" property. Any ideas on how to name an element? Or just what interface I'd do that in? I could probably figure it out from there. Once I have the element named, I can get at it with arcpy mapping. Edit - Nevermind, got it! Found the IElementProperties interface! I'm loving the power of ArcObjects...Now I just need to learn C# or VB :)
1d
comment Adding a graphic line element to open mxd using python comtypes to access ArcObjects
Thanks!!! Using IPolyline did it with setting the FromPoint and ToPoint!!! I should have been using IPolyline this whole time I guess. Thanks for the help!
1d
accepted Adding a graphic line element to open mxd using python comtypes to access ArcObjects
1d
comment Adding a graphic line element to open mxd using python comtypes to access ArcObjects
It is very possible I'm going about this the wrong way. While I am comfortable with Python, I am very new to ArcObjects so I should probably mention I do not really know what I'm doing. The structure of Classes, CoClasses and Interfaces is confusing me.
1d
comment Adding a graphic line element to open mxd using python comtypes to access ArcObjects
Thanks (Duncan?). That sounded promising, but unfortunately it did not work. Now it does not seem to create an ILine2 interface instance. My pLg variable is returned as a NoneType which not to my surprise I get the error "NoneType" object has no attribute PutCoords.
1d
asked Adding a graphic line element to open mxd using python comtypes to access ArcObjects
Sep
20
comment Update a field attribute in one column based on a change to another column in one table
I suppose I am misunderstanding the question then. I was just thinking back to when we did a city signage project and Public Works was using a different MUTCD code for signs than what we were. We used an attributed relationship class so that as we were adding new signs with our MUTCD code, the code Public Works used was automatically joined to our table so we could label the signs using their code instead of ours. I was just thinking if the description and legend info were tied to a specific value in the attribute table, this would work.
Sep
20
answered Update a field attribute in one column based on a change to another column in one table
Sep
6
awarded  Supporter
Sep
4
awarded  Teacher
Sep
4
comment Cannot get arcpy.MosiacToNewRaster to work with list
Thank you for sharing this information with me. I was not aware of the Value Table function. I was able to figure out that I had just missed a parameter for that function in my syntax, which is why my original code did not work. This will be very useful for me in the future!
Sep
4
awarded  Scholar
Sep
4
accepted Cannot get arcpy.MosiacToNewRaster to work with list
Sep
4
answered Cannot get arcpy.MosiacToNewRaster to work with list
Sep
3
awarded  Student