POST
|
Personally I prefer programs that can be installed through a simple installer and that don't require any later adjustments by the end-user in ArcMap. You will likely get more satisfied users and less demand for installation support. ESRI has created a good example on how to achieve this: http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//00010000016r000000 The process is a bit time-consuming, especially the first time you give this a try, but most of the code can easily be reused in other projects.
... View more
01-04-2011
12:28 AM
|
0
|
0
|
435
|
POST
|
Sorry for my late response, been away for holiday... The client wants functionality to download data from a large centralized GIS-database, directly into ArcMap. In our proposal we have placed a button for this on the ArcMap toolbar that basically opens a Windows Form. The Form will then have a listbox that list the available layers the user can choose from. The user then hits OK and the layers are added into ArcMap�??s table of contents. Now this is fairly simple. The next step is to add a button that enables the user to specify an extent (bounding box) for the layers. So the idea is that a user should first choose the layer(s) he wants and then, if he wants to, click on a button that says something like �??choose extent�?� and then draw a polygon somewhere in ArcMap. Finally he clicks OK, the layers are cut and then added into ArcMap�??s table of contents. Are a bit stuck on how to implement the draw-polygon functionality. As I have implemented this now, the polygon starts to get drawn on the map right after the user clicks on the �??choose extent�?� button. I need something that would allow the user to freely move the mouse around, click somewhere in the map and then start to draw the polygon.
... View more
01-03-2011
02:53 AM
|
0
|
0
|
311
|
POST
|
From my understanding basetool is used for COM-classes, not for Addins. But as I mentioned in my first post, I do have a Tool-class that listen to OnMouseDown events and activates the draw polygon function. This is tested and works fine, problems starts when I try to activate this Tool from the form buttons click event. Please note that by activate I don't mean drawing the polygons itself, but that the Tool starts to listen to OnMouseDown events.
... View more
12-22-2010
01:41 AM
|
0
|
0
|
311
|
POST
|
This might look like an easy question, but I have basically crawled through the entire forum and ArcObjects API, unable to find a solution. The only good example I have found was Use" rel="nofollow" target="_blank">http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/Use_Custom_Tool_on_Windows_Form_Snippet/00490000001v000000/]Use Custom Tool on Windows Form Snippet, but that works with COM-objects, not Add-ins. I have created an add-in with a toolbar and a button that activates a Windows Form. Inside the Form I have a button, that when triggered, enables users to draw a polygon inside the map (at least, that is the idea). The draw polygon functionality is a tool that is stored in the same add-in, but not shown on the toolbar, and its functionality is triggered via OnMouseDown event. Now, how do I call this tool from the Forms buttons click event? The draw polygon functionality can't be triggered right away, but must wait for another click event, so that the user is able to place the polygon right where he wants.
... View more
12-21-2010
11:43 PM
|
0
|
5
|
847
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|