Arc: AddIns Dr Andy Evans. Java Direct access to ArcObjects Framework inside and outside Arc. Ability to add components to the GUI. Ability to communicate.

Slides:



Advertisements
Similar presentations
Introduction to Visual Basic.NET Uploaded By: M.Sheraz anjum.
Advertisements

Programming for Geographical Information Analysis: Advanced Skills Lecture 2: ArcObjects Framework Dr Andy Evans.
XP Tutorial 4 New Perspectives on Microsoft Windows XP 1 Microsoft Windows XP Personalizing Your Windows Environment Tutorial 4.
© by Pearson Education, Inc. All Rights Reserved.
Visual Basic 2010 How to Program. © by Pearson Education, Inc. All Rights Reserved.2.
Visual Basic 2010 How to Program Reference: Instructor: Maysoon Bin Duwais slides Visual Basic 2010 how to program by Deitel © by Pearson Education,
Java Integrated Development Environments: ECLIPSE Part1 Installation.
A Guide to Oracle9i1 Introduction To Forms Builder Chapter 5.
Intro to ArcMap Customization with Visual Basic  Create your own toolbars, buttons, interactive tools, and programs  Runs behind the scenes in ArcMap.
Paint Shop Tutorial. Essential Overview New Corel Paint Shop Pro Photo X2 is the ideal choice for any aspiring photographer's digital darkroom. It's filled.
Presented by IBM developer Works ibm.com/developerworks/ 2006 January – April © 2006 IBM Corporation. Making the most of The Java Development Tools project.
Eclipse Introduction Dwight Deugo Nesa Matic
1 Introduction to the Visual Studio.NET IDE Powerpoint slides modified from Deitel & Deitel.
Introduction to ESRI Add-Ins
Esri International User Conference | San Diego, CA Technical Workshops | Migrating Custom Desktop Solutions from 9.3 to 10 John Hauck and Ralf Gottschalk.
Introduction to Visual Basic. What is Visual Basic? An environment for developing Windows applications Components –A GUI (Graphical User Interface - gooey)
Using Microsoft Outlook: Basics. Objectives Guided Tour of Outlook –Identification –Views Basics –Contacts –Folders –Web Access Q&A.
Eclipse IDE. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as teaching.
03 Using Eclipse. 2 IDE Overview An IDE is an Interactive Development Environment Different IDEs meet different needs BlueJ and DrJava are designed as.
Lesley Bross, August 25, 2010 ArcGIS 10 Add-In Components and Controls.
Introduction to ArcGIS Add-Ins Exercises GIS/LIS Conference, 2014 Rochester, MN.
COMPREHENSIVE Excel Tutorial 8 Developing an Excel Application.
2. Introduction to the Visual Studio.NET IDE 2. Introduction to the Visual Studio.NET IDE Ch2 – Deitel’s Book.
Website Tutorial. Administration  Log on by clicking Login on the footer of almost any page  Your Username is.
Mobile Programming Lecture 1 Getting Started. Today's Agenda About the Eclipse IDE Hello, World! Project Android Project Structure Intro to Activities,
Arc: Programming Options Dr Andy Evans. Programming ArcGIS ArcGIS: Most popular commercial GIS. Out of the box functionality good, but occasionally: You.
Visual Basic 2008 Express Edition The IDE. Visual Basic 2008 Express The Start Page Recent Projects Open an existing project Create a New Project.
1.Sign onto VPN 2.Right-click My Computer & select Explore from pop-up menu 3.Go to the View dropdown menu and select Details 4.Go to the Tools dropdown.
Introduction to InVEST ArcGIS Tool Nasser Olwero GMP, Bangkok April
Esri UC2013. Technical Workshop. Technical Workshop 2013 Esri International User Conference July 8–12, 2013 | San Diego, California Creating.NET Add-ins.
Lesley Bross, August 29, 2010 ArcGIS 10 add-in glossary.
IE 411/511: Visual Programming for Industrial Applications
Tutorial 121 Creating a New Web Forms Page You will find that creating Web Forms is similar to creating traditional Windows applications in Visual Basic.
Using the Netbeans GUI Builder. The Netbeans IDE provides a utility called the GUI Builder that assists you with creating Windows applications. The Netbeans.
LLRP GUI Client User Guide
Workbench Overview Dwight Deugo Nesa Matic
Introduction to Canvas K-5
Alice 2.0 Introductory Concepts and Techniques Project 1 Exploring Alice and Object-Oriented Programming.
Programming for Geographical Information Analysis: Advanced Skills Lecture 1: Introduction Programming Arc Dr Andy Evans.
1 ITI 1120 Lab # 1 An Introduction to the Lab Environment Contributors: G. Arbez, M. Eid, D. Inkpen, A. Williams, D. Amyot.
Introduction to Eclipse CSC 216 Lecture 3 Ed Gehringer Using (with permission) slides developed by— Dwight Deugo Nesa Matic
9/2/ CS171 -Math & Computer Science Department at Emory University.
USING WORDPRESS TO CREATE A WEBSITE (RATHER THAN A BLOG) STEP-BY-STEP INSTRUCTIONS.
FIX Eye FIX Eye Getting started: The guide EPAM Systems B2BITS.
CMPF124: Basics Skills for Knowledge Workers Manipulating Windows GUI.
Tool Install How to download & install Java 6 & Eclipse updated version based on Dr. G. L. Ray’s slides.
PCNA: CREATE A WEBSITE WITH EASE USING WIX.COM TO EASILY CREATE A WEBSITE.
Unit 1: Plotting DT2510: Advanced CAD Methods. Identifying the user interface: Application menu Quick Access toolbar InfoCenter Ribbon Drawing window.
A user guide to accessing, reviewing and contributing to the Online Registry System.
Lecture Set 2 Part A: Creating an Application with Visual Studio – Solutions, Projects, Files 8/10/ :35 PM.
1 Getting Started with C++ Part 1 Windows. 2 Objective You will be able to create, compile, and run a very simple C++ program on Windows, using Microsoft.
Microsoft ® Outlook ® 2010 Training Customizing Outlook NaveenKumar Namachivayam Founder - testTalk Academy
Intoduction to Andriod studio Environment With a hello world program.
Customizing Menus and Toolbars CHAPTER 12 Customizing Menus and Toolbars.
IE 411/511: Visual Programming for Industrial Applications Lecture Notes #2 Introduction to the Visual Basic Express 2010 Integrated Development Environment.
Netbeans QuickStart. Creating a project File->New Project –For now you want General->Java Application –Then fill in the project details.
 2002 Prentice Hall. All rights reserved. 1 Introduction to the Visual Studio.NET IDE Outline Introduction Visual Studio.NET Integrated Development Environment.
Spell Checker web service (you build a web client that interacts with the service) The client uses a servlet class and a JSP page. The user passes information.
Prepare by Ms. Fatima Bajafar Usage of EndNote Program in Documentation.
Pro Audit I. Preparation Note that this course uses the CIS_2G version of the master pack. You should ask your system manager to install this master pack.
Using a template to create a document
Introduction to ArcGIS Add-Ins
Understanding WordPress
Programming for Geographical Information Analysis: Advanced Skills
Addins Dr Andy Evans Welcome to the course. You’ll find extra information in these note sections below each slide.
Addins Dr Andy Evans Welcome to the course. You’ll find extra information in these note sections below each slide.
Programming for Geographical Information Analysis: Advanced Skills
Building Add-ins for ArcGIS Desktop in .NET
Programming Arc.
Java Code Review with CheckStyle
Presentation transcript:

Arc: AddIns Dr Andy Evans

Java Direct access to ArcObjects Framework inside and outside Arc. Ability to add components to the GUI. Ability to communicate with external applications.

AddIns Button : Icon on toolbar. Tool : Changes mouse operations. Combo box : Dropdown list and editable box. Toolbar : For grouping AddIns. Menu : Dropdown and right-click. Tool palette : Floating container for other AddIns. Dockable window : Floating window that can be locked into the GUI. Application extension : Additional functionality within, e.g. Arc extensions.

Form jar zip file, with a.esriaddin extension Contains: config.xml : metadata describing the addin Java class files Other resources needed : e.g. data, images

Installing File is just dropped into %USERPROFILE%\ My Documents\ArcGIS\AddIns\Desktop10.2 or %USERPROFILE%\ Documents\ArcGIS\AddIns\Desktop10.2 There are easy install options for users (double clicking on the addin will bring up a wizard to walk through installing it)

Installing a sent AddIn AddIn Manger

Choose “Add from file” and navigate to the file. Should then see it under the commands list in whatever Category you’ve created for it in the XML file. Drag and drop from here, onto the interface. Installing a sent AddIn

Managing AddIns Admin Registry Keys (regedit.exe) HKEY_LOCAL_MACHINE\SOFTWARE\ESRI\Desktop10.2 \ Settings BlockAddIns 0 - Load all. 1 - Load signed only. 2 - Load ESRI only. 3 - Load from administrator folders only. 4 - Do not Load any Add-Ins. AddInFolders AdminAddInLock - stop tampering with these.

Digital signing See: ualhelp/engine/index.html#/Digitally_signed_add_ins/ zq000000/

Making an AddIn Rather than writing the config.xml ourselves, and zipping it up manually with the java files, there’s an Eclipse IDE plugin. This does all the basic class generation for us, and prepares the file. Details for installing the IDE and plugin on the website.

Eclipse

Project area Editor area, currently showing config.xml, but shown as a form, not text. Show xml text source

Config.xml

Eclipse Should check code as you write. Will compile when you save the file. Errors reported in problems panel: Note that the javadoc panel displays the javadocs of known classes.

Eclipse Will autocomplete as you type. Will also suggest potential quick fixes if you click on hover over an issue.

Debugging No System.out.println(); Best bet is: JOptionPane.showMessageDialog(null, String); E.g. JOptionPane.showMessageDialog(null, "Hello World"); Or for exception checking… catch (Exception e){ JOptionPane.showMessageDialog(null, e.getStackTrace()); }

Help coding Course Code Cookbook There’s no point in you struggling to find key bits of code on ESRI’s site. So, there are many useful code examples, stripped down to be a simple as possible, on the course website. The quid pro quo: Send us useful code you get working. Read and try and understand the code, don’t just cut- and-paste it. Ask questions!

Help coding Intro to Eclipse: Help -> Welcome -> Overview / Tutorials Arc Programming pages: java/concepts/engine/ Java ArcObjects Developer Guide -> Developing extensions -> ArcGIS Desktop customizations using add-ins

Help coding API: java/api/arcobjects/index.html Note that the API docs are a re-write of the VB pages, and still contain some VB code: If it says “This parameter is optional”, it usually isn’t. If it says “If you don’t want this parameter, just pass in zero” or “ Nothing ”, then pass in null. If it gives Variant as a return type, it returns java.lang.Object.

Select the AddIn

If you are developing, you need to reboot Arc to get changes to appear, but you don’t need to re-add the addIn.

Extensions Classes that extend Arc functionality Custom feature renderers Custom geoprocessing tools : can be added to ArcToolbox and ModelBuilder Class extensions : Change form of data Plug-in data sources Utility objects : Combine other tools

Installing Jar file placed in /java/lib/ext