POST
|
...Programmers who are reading this will instantly realize how crummy that is. I as a programmer can imagine how impossible it would be to try to develop scripts in Microsoft Office without the VBA Editor. It has 100% reliable access to *ALL* of the host applications' objects. Does anybody have inside information (Mr. Patterson....?) as to when ArcGIS 10 will have *ROBUST* support for external python editors. This is ridiculous!!
... View more
05-04-2016
04:46 PM
|
0
|
3
|
315
|
POST
|
arcpy.mp is not included in my arcGIS 10.3 environment. I tried it in the Python console; it came back "no module named mp".
... View more
05-02-2016
07:18 PM
|
0
|
1
|
1459
|
POST
|
...If I try to set a reference to the currently open map in ArcMap, it will work in ArcMap's python console, but it will not work in PyScripter: I really hope that I'm just doing something wrong, otherwise I lose the great benefits I get from writing and debugging code in PyScripter. Thanx.
... View more
05-02-2016
07:14 PM
|
0
|
5
|
2962
|
POST
|
THIS is what I've been looking for: Getting a Reference to the Currently Loaded Document in ArcMap
... View more
05-01-2016
02:05 AM
|
0
|
3
|
1459
|
POST
|
...A ProgID is short for "Programmatic ID". It is usually an identifier for a COM/ActiveX top-level object that can be accessed using Visual Basic for Applications (VBA) or VBscript. I did a search through my CLSIDs, and couldn't find a ProgID called "Map.Start". Then I found this article: ArcObjects 10 .NET SDK Help: the IStartupDialog Interface ...According to this article, the developer writes a .NET class that ArcMap will then look for and use upon startup. In Visual Studio, if you compile a project called "Map" and a class called "Start", and put it in the right place, ArcMap by default will look for and use that class upon startup. But by changing that registry entry you could call your project and class anything you want. That's why I didn't find a ProgID called "Map.Start" in my registry. ...But all of this is moot, because as of ArcGIS version 4, VBA will be deprecated in favor of Python. That's why this question is not important, and why I will not get any other replies for it. But thanx for your help anyways. I was curious about it.
... View more
04-30-2016
11:00 PM
|
0
|
4
|
1459
|
POST
|
...I've googled all over and can't find any info on this...where is there a tutorial on where to place this file, so that ArcMap will see it. Thanx.
... View more
04-28-2016
01:52 PM
|
0
|
7
|
4592
|
POST
|
nk, you must not be a developer. As a graduate student and a professional developer, traveling between multiple campuses, I have to be prepared to support multiple machines, multiple operating systems, the cloud, data centers, the web, whatever. In any language. The reason why I want to setup an esriaddin file for a global custom toolbar, like Ian Broad's fine Resources toolbar (GIS Resources Python Add-in for ArcMap – Ian Broad ), is that ASU roaming user profiles continually reset daily, so even if I come back to the same machine on the same campus the next day, I'll find my customization reset to the default. That can include geoprocessing environments, checked extensions (ASU has licensed them all), and the like. I'll eventually get up to speed, but during the academic year, especially since this semester is my first graduate semester, my time for this stuff is extremely limited. However, this summer I'll be getting into it full force. I love R BTW John Bonifas Master of Geospatial Tech candidate Northern Arizona University John Bonifas - Master's in Geospatial Sciences Candidate | About.me
... View more
04-24-2016
09:36 AM
|
0
|
1
|
867
|
POST
|
Sorry...I was in a hurry. I'll be more specific: VBA, even though I could code it in my sleep, is history. ArcGIS 10.1+ no longer supports VBA, and Python is the hot language these days, that all scientists are using, so I need to learn python anyway. For analysis, I see that addins are not required; you just write your python code and add it to a model or toolbox. So that's what I'll do for that. The next couple of things I want to do does require an addin. Those two things are adding a custom toolbar globally to the ArcGIS Installation on a machine; and, running a startup script that runs every time I start up ArcMap that sets certain options in the global ArcMap environment. Why do I want to do this? Because as a graduate student I'm constantly bouncing around between different machines. My virtual Windows system on my MacBook. The Windows machines in the CAPCOM at the Tempe Campus. The Windows machines at the Downtown campus. Remoting in to the terminal services servers at NAU in Flagstaff. I want a portable environment that I can initiate quickly after I've logged on to a public machine, instead of manually setting them and trying to remember them all before I start working on my data. Yes, I know that I can set a map document to store all my options, but there are certain options that I want to persist globally in the ArcGIS environment on that machine that will be set whenever I create a new map document. So, I figure I need to start by installing the ArcObjects SDK for ArcGIS 10.3+ on my laptop, for .NET and Java. But unfortunately, the ArcGIS website offers no way to direct download it; the pages just go round and round and round to Install ArcGIS Desktop. Is the ArcObjects SDK installation a part of the ArcGIS Desktop installation? I have the Python Addin Wizard, I will install it sometime in the next couple of weeks. ...Does that help? John Bonifas Masters in Geospatial Tech Candidate Northern Arizona University
... View more
04-23-2016
06:04 PM
|
0
|
1
|
867
|
POST
|
..I want to save my custom toolbar as a .esriaddin file that I can then use anywhere, instead of just one machine. How do I do that?
... View more
04-20-2016
09:16 PM
|
0
|
7
|
4294
|
POST
|
...And that's why I like web development. Javascript will ALWAYS be 'the thing'. But even if it isn't, .NET will. or PHP. I have 15 years of VBA experience - it might as well be COBOL experience. But my web experience - that's gonna be around for awhile.
... View more
04-17-2016
05:53 PM
|
0
|
0
|
150
|
POST
|
...Never mind, I figured it out. You can't use the default dijit members of the HomeButton class because of the map object event delegation. The following code worked: // define an event handler for the 'home' event on the HomeButton dijit
objHome.on("home", handleHomeButton);
// now implement the handler function.
function handleHomeButton(evt)
{
// objHome.home(); // you can't call it this way. This method will not work in this context.
// instead, you call the centerAt method of the map object. strLongitude and strLatitude are floats.
objMap.centerAt([strLongitude, strLatitude]);
}
... View more
04-16-2016
07:24 PM
|
0
|
0
|
303
|
POST
|
I have tried to add a HomeButton dijit to my page. However, it won't work if I specify any event listeners on the map object. In other words, if I want to add BOTH a HomeButton, AND a task that specifies event listeners on the map object, like this: // for home button var objHome = new HomeButton({map: divMap}, "HomeButton"); objHome.startup(); // this is how you call 'on' style events in the API objMap.on("load", function() { // for coordinates display - event listeners objMap.on("mouse-move", showCoordinates); objMap.on("mouse-drag", showCoordinates); // for home button - when home event is fired, execute home() method - currently doesn't work objHome.on("home",objHome.home()); }); // for coordinates display function showCoordinates(evt) { //the map is in web mercator but display coordinates in geographic (lat, long) var mp = webMercatorUtils.webMercatorToGeographic(evt.mapPoint); //display mouse coordinates dom.byId("spanCoordinates").innerHTML = mp.x.toFixed(3) + ", " + mp.y.toFixed(3); } ...It won't work. What do I need to modify here, to get the HomeButton to work with the showCoordinates code? Again, before you post the code on the HomeButton class definition page as a solution - that code WILL NOT WORK if you specify an 'on' function on the map object. Thanx.
... View more
04-16-2016
03:57 PM
|
0
|
1
|
3947
|
POST
|
In ArcGIS 10.3, If I want to develop a .esriaddin file (addin), is the ArcObjects SDK required? Is VBA still supported, or do I have to develop the addin in Python? Thanx
... View more
04-09-2016
04:47 PM
|
0
|
3
|
3883
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|