POST
|
Hi, I'm afraid there's nothing in the API at the recent 1500 release to do this in one shot. However, I have attached an add-in with some code which gets pretty close - however, some of this is not using the API but doing things kind of behind the scenes - although I know this works for 1200 and 1500, I cant vouch that the internals of Explorer won't change in future, which could cause this to stop working in a future release, so it should definately be tested with each release if you need to use it. As you can see in the source code in the attachment: - Getting the marker symbols in My Symbols is done by accessing the SymbolCache folder where Explorer keeps all locally referenced symbols - the folder includes symbols used in KML files, and possibly other places, so the code reads the files in the cache and checks for an attribute indicating if the symbol is part of 'My Symbols'. - There are two approaches demonstrated for getting the standard out of the box symbols. The first approach shows using reflection to access the static members of the Symbol class, and has the advantage that we do not plan to change the API, so may be more reliable moving forwards. The only slightly inconsistent behavour is that there is only one nested class of static methods for lines, not a separate class for the different thicknesses as actually shown in the app. The second approach, commented out in the code, uses the symbols listed in a local cache file. This approach could be affected by possible internal changes in any future release of Explorer, but I know works with 1200 and 1500. This also has a slight anomoly with the line symbols, as all thicknesses are shown in the same gallery group, not differentiated by thickness. Hope this helps some,
... View more
08-31-2010
07:00 AM
|
0
|
0
|
245
|
POST
|
Hi Ryan, You can download an add-in from arcgis.com that does this: http://www.arcgis.com/home/item.html?id=7508d2ce2fbe4485bebc57f9fe621b71 This add-in was built for 1200, but should work OK in 1500 as well.
... View more
08-31-2010
01:40 AM
|
0
|
0
|
295
|
POST
|
Here is a list of what's new in the ArcGIS Explorer 1500 SDK for the Microsoft .Net Framework: New Add-In Types: CheckBox and ComboBox �?? Two new extensibility points are supported �?? CheckBox and ComboBox. A CheckBox displays on the ribbon and can run code when the box is checked or unchecked by the user. A ComboBox displays on the ribbon and can run code when an item from the drop down list is selected or the user types into the list. New API Types and Members �?? There are numerous additions to the ArcGIS Explorer API, driven by user requests, for example: loading and saving documents; progress helper cancellation; multiple-item support for GraphicClicked and MapItemClicked events; numerous new track-shape options; display mode change events; properties for use and path of current application configuration. Review the New API Types And Members topic in the Developer Help system for full details. New Application Conditions �?? various new application conditions have been added to help determine when single types of item are selected in the Contents. (Application conditions are pre-defined application states that can be used to determine when add-in controls are enabled or disabled on the Ribbon). Support for Visual Studio 2010 �?? All samples and templates are now supported in both Visual Studio 2008 Professional and Express editions, and in Visual Studio 2010 Ultimate, Professional, Premium, and Express editions. Reference and conceptual help are available in both editions of Visual Studio via F1 or the Start Menu shortcut links. Updated Reference and Conceptual Help �?? Several updates to the reference and conceptual help including information on Symbols, Graphics, Presentations, Proxy Servers, and Default Settings. Also up-to-date information on working with the Visual Studio Express editions and the .NET prerequisites. Updated Samples �?? Samples have been updated to maintain consistency, reflect best practices, and support the current .NET requirements for ArcGIS Explorer. Additionally, Samples are supported in both Visual Studio 2008 and Visual Studio 2010 editions. Visual Studio Tools for ArcGIS Explorer �?? The Addins.xml manifest files now support Intellisense in Visual Studio, assisting manual edits to the manifest. Templates have been added for the new add-in types: Checkbox and Combobox. Additionally, there have been several minor fixes to the ArcGIS Explorer Add-In wizards. You can download the new application and SDK from: http://resources.arcgis.com/content/arcgis-explorer/1500/download
... View more
08-25-2010
01:00 AM
|
0
|
0
|
546
|
POST
|
Unfortunately I'm not aware of an Add-In that offers zoom to previous/next extent - I'll give that some thought. This would be tricky in the current release, as there's no way to know when the user has stopped navigating and there is a new extent. However, with the upcoming 1500 release, the new ViewpointChanged event could be used pretty simply to write a back/forward extents button. Ideally I think you'd also need to factor in the new DisplayModeChanging/DisplayModeChanged events in order to reset things when the user switches from 2D to 3D and back.
... View more
08-10-2010
12:50 PM
|
0
|
0
|
681
|
POST
|
how to use GetCenter() in VB to return the center of a polygon? [...] I need the center point to tag the popup to which I am not having any luck in doing... Hi - it's pretty straightforward to do this - some code is below which you can try out in a Button - after the user tracks a Polygon on the map, a temporary Graphic will be added, with a Popup that has a Target which is the center of the Polygon. Dim pgon As ESRI.ArcGISExplorer.Geometry.Polygon = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay.TrackPolygon()
Dim pt = pgon.GetCenter()
Dim disp As ESRI.ArcGISExplorer.Mapping.MapDisplay = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay
disp.Graphics.Add(New Graphic(pgon, Symbol.Fill.Solid.Blue, "Note"))
Dim tempPopup As Popup = New Popup(disp, Nothing, String.Format("Popup at {0},{1}", pt.X, pt.Y), "Note With Target", pt)
tempPopup.Activate() You dont describe what kind of trouble you're having with GetCenter, but if the code above works for you, I'd suggest looking at the Polygon geometry that you're getting back from your DockWindow - check its a valid geometry, check IsEmpty. What do you actually get back from GetCenter - is it null, or a valid Point?
... View more
08-06-2010
01:09 AM
|
0
|
0
|
255
|
POST
|
Thought I'd let you know that not all of the add-ins for ArcGIS Explorer that are from ArcGIS Explorer Labs which use web services or similar currently implement code to work with proxy servers. However, it's something we're reviewing and should be available in the next updates of all the add-ins.
... View more
08-06-2010
12:29 AM
|
0
|
0
|
376
|
POST
|
Hi - you might want to wait for the next release, if you're not tied to the 1200 release, because there is new functionality in the application, and new APIs, for querying service layers.
... View more
08-06-2010
12:25 AM
|
0
|
0
|
173
|
POST
|
Hi - you're correct that there is no linear referencing functionality in ArcGIS Explorer. I'm actually a little confused about what you're asking though. If your question is "can you write a tool for ArcGIS Explorer", then basically yes. Explorer has no 'current tool' notion like in ArcMap, but you can add custom buttons, dockable windows, and galleries to the Explorer Ribbon, and write a custom extension. In the upcoming 1500 release you can also add combo boxes and check boxes to the Ribbon. There is still no access to M attribution or rendering though so the custom button wouldnt be able to access an linear refercing information. If you're asking about specifically writing a linear referencing tool, then if you have ArcGIS Server there's a couple of options. Firstly, you could write a Geoprocessing tool that does the work you required, publish that as a service, and add that to Explorer's Analysis gallery as a tool - this would be the simplest way to do it. Alternatively if you cannot get the functionality you want in that way, if you are a developer with some .NET experience, you could publish some other custom SOAP service from ArcGIS Server which will perform your linear referecing and then write an add-in using the ArcGIS Explorer SDK to allow the user to work with the service - this would be by far the more complex way to go, but would be more flexible. Hope this helps some, either way.
... View more
07-29-2010
01:39 AM
|
0
|
0
|
318
|
POST
|
How do i get the class ESRI.ArcGIS.E2API? In ArcGIS Explorer 500 (and previous builds) this was the name of a Namespace. However if you're working with ArcGIS Explorer 900, 1200 and onwards, you will be using the newer namespace ESRI.ArcGISExplorer.Application, and you can use the static Application class to access similar things from within the Button, DockWindow or whatever add-in you have, for example: public class ButtonWalkthrough : ESRI.ArcGISExplorer.Application.Button
{
public override void OnClick()
{
MapDisplay md = ESRI.ArcGISExplorer.Application.Application.ActiveMapDisplay;
ESRI.ArcGISExplorer.Geometry.Point location = md.TrackPoint(); If you are working in ArcGIS Explorer 500 or previous, to get a reference to the E2 class which represents the running application, it's accessed from the TaskUI.E2 property, often in the CustomTaskControl constructor like this that tracks a Point on the view: public CustomTaskControl(CustomTaskUI taskUI)
{
_taskUI = taskUI;
ESRI.ArcGIS.E2API.Point location = _taskUI.E2.CurrentView.TrackPoint();
... View more
07-23-2010
12:39 AM
|
0
|
0
|
276
|
POST
|
Hi - you can add various kinds of local data to ArcGIS Explorer desktop by using the Add Content button, including shapefiles and feature classes from FGDB and ArcSDE geodatabases, see the help at: http://webhelp.esri.com/arcgisexplorer/1200/en/index.html#add_content.htm If your question is about ArcGIS Explorer online, I dont think that the current version can add local datasets like this.
... View more
07-23-2010
12:27 AM
|
0
|
0
|
145
|
POST
|
Hi, You can add data from File geodatabases and ArcSDE geodatabases, but I'm afraid Explorer does not support Personal geodatabases.
... View more
07-22-2010
12:28 AM
|
0
|
0
|
242
|
POST
|
I have written a simple add-in that allows you to change layer visibility - it should work on all layers in the map, regardless of what kind of layer, and whether the layer is in a group or top-level in the Contents. I've been having trouble with attachments to the forum, so have shared the compiled EAZ on ArcGIS.com here: http://www.arcgis.com/home/item.html?id=dfb3353c3aff4463b6e0016158b7dac2 Let me know if you needed the source code though.
... View more
07-21-2010
05:02 AM
|
0
|
0
|
561
|
POST
|
It seems that the attachment didnt work properly - it reports that the zip is an invalid archive if I try and open it from the forum but the file I'm uploading is fine. I've tried this again a few times and I dont know what's going wrong, but at least for now I have put the EAZ (compiled version of the add-in) up on arcgis.com and shared it, let me know if you wanted the source especially though. http://www.arcgis.com/home/item.html?id=c46d190084294518ac21e6ad5f13c624
... View more
07-21-2010
04:00 AM
|
0
|
0
|
374
|
POST
|
I'm trying to display a local projection, which is slightly modified from MGA94 zone 56, one of the "core projections" in ArcGIS [...] I noticed I can choose map projection from Display->Coordinate Systems but it only has the core projections. There's no way to do this in the application, but you can do this with the SDK. There's a blog post describing it: http://blogs.esri.com/Info/blogs/arcgisexplorerblog/archive/2010/01/20/changing-the-central-meridian-via-the-sdk.aspx Some notes for this - it's not a custom 'projection', but I think it still may be what you're after - using a coordinate system based on one of the pre-defined coordinate systems supported in Explorer, but with some of the parameters slightly modified, known as a custom coordinate system. Also note the bottom line which says that custom coordinate systems don't save along with the map (as just the WKID is saved for a coordinate system in the map), so you'd need to reapply this when you re-open the map. (If you have the SDK anyway, then an Extension could be written to do this on startup if you needed to). I have made a quick add-in Button and attached it here where you can edit the PRJ string (shows the current 2D coordinate system as a PRJ string for editing), and then re-apply it back to the 2D view. I included a compiled EAZ file in case you are not a programmer, and the source in case you are. I tried using the default Web Mercator coordinate system and editing the Central Meridian, and it works fine (note that works for Projected coordinate systems, but it does not work for Geographic coordinate systems). Regards, Shelly
... View more
07-16-2010
06:18 AM
|
0
|
0
|
374
|
POST
|
Hi - I missed this post when you posted, sorry reply is rather late now but for the record: If you open your Environment Variables on the Vista machine, where does the ArcGIS_E3SDK variable point to? The add-in project will take the install location of the SDK from this environment variable - it should point to \DeveloperKit folder, e.g. on my 32 bit Win7 machine it is: C:\Program Files\Explorer\DeveloperKit The only paths stored in the add-in project itself are relative to this location - you can see this though by opening the project file in a text editor (or in VS, right-click the project and choose Unload Project, and then right-click again and choose Edit) - you'll see the environment variable used in the BeforeBuild build task: <Target Name="BeforeBuild" Condition="!Exists('$(ArcGIS_E3SDK)\..\Bin\ESRI.ArcGISExplorer.targets')">
<Error Text="The ArcGISExplorer SDK is not correctly installed -
'ESRI.ArcGISExplorer.targets' not found (ArcGIS_E3SDK='$(ArcGIS_E3SDK)')." />
</Target>
... View more
07-09-2010
05:04 AM
|
0
|
0
|
189
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|