Thursday, March 29, 2007

Updates

Create Annotation Index
  • New UI
  • Changed name from "Create Street Index" to "Create Annotation Index"
  • Progress Dialog with Cancel Button
  • An event listener will track the messages that are added by the script. Whenever a message is added, the event listener will display that message in the Progress Dialog and in the Statusbar. All error messages are put to an error message string that will be displayed after the script is executed in case of failure.

Export to PDF

  • PDF Parameters can be specified
  • Overwrite without warning option now properly used during export

Products

  • Changed name from "Product Type" to "Product"

Monday, March 26, 2007

Bug fixes and enhancements

A few more updates...
  • Close button in Manage Map Series and Manage Product Types dialog
  • CPS eXpress Help button added to CPS eXpress menu
  • When closing the extension a promt for saving changes will display if document is dirty
  • Undo/Redo implemented for Crop Marks
  • The tools in Map Series Overview window are now disabled when no Map Series is active
  • Map Series Overview window now listen to more events, for example it will update when assigning a Map Series to the Map Frame when working in the Data View mode.
  • Map Series Overview window will use the last map extent in the view Instead of zooming to the full extent of the Map Series layer.

Thursday, March 22, 2007

Adjoining Sheets Diagram Element

It´s now possible to insert an Adjoining Sheets Diagram to the map.
When adding the element you need to select what style to use. You can select from two different styles, either a grid with sheet names inside the grid, or the sheet names in a separate list. You can specify if the active map should appear in the diagram. It´s possible to choose from any of the fields in the Map Series, default is Map Name field which is specified in the Map Series.
In the properties dialog of the element you can specify what symbols to use.




Friday, March 16, 2007

Various bug fixes

Open document
  • Sometimes when opening a document the application didn't catch the name of that document so when pressing the Save button the Save As dialog appeared instead of just saving the current document. This issue should be solved.
Working Indicators
  • Wait mouse cursors are displayed when opening/saving document and also when exporting to PDF.
Page Size when exporting to PDF
  • The page size is now correct when exporting to PDF.
CPS eXpress Menu
  • The CPS eXpress menu (in ArcMap main menu) now properly show/hide when the extension is enabled/disabled.
Saving
  • When trying to save a document to a location other than a Product Type the application now displays a message saying that you must save it in a Product Type. The error message that says an error occurred while saving will still show up. I haven't found any way to hide that.
Map Series Overview Window improvements
  • When loading a document for the first, the window should now update and display the correct Map Series.
  • Sometimes when switching between different Map Frames the window displayed the wrong Map Series, this should be fixed.
  • The rectangle that display the extent inside the window are now better syncronized with the selected Map Frame.
  • It's now possible to view a map even if the Map Frame has unknown map units (the application will automatically change the map units to meters)

Friday, March 2, 2007

Unit Testing with Test Data

Some tests will require test data, for example creating a Map Series requires a valid layer as input. To solve this I added a registry value that indicates where test data is located.

The test data directory must contain a specific set of pre-defined test data.
UT_RB_Empty.mdb is an empty Rulebase that will be copied to UT_RB_test.mdb before the tests are started. The Rulebase value in registry will change so that it points to the UT_RB_test.mdb. After the tests are completed it will revert back the whatever the Rulebase value was before the tests where started.

UT_MS_01.shp is a shapefile that can be used for testing Map Series.

Example of test, Creating a Map Series
  1. Create a layer using the UT_MS_01 shapefile
  2. Create the Map Series and set properties
  3. Assign the layer to the Map Series
  4. Verify that the Map Series contain eight Maps (number of polygons in UT_MS_01 shapefile)
  5. Filtering Maps using "D" should return one Map (PageName of polygon in UT_MS_01 shapefile)

Friday, February 23, 2007

Rulebase Update

A new field, BackgroundLayers, have been added to the Map Series table in order to store the background data.

(The background data is used in the Map Series Overview window)


Thursday, February 22, 2007

Labeling Maps in Map Series

In the Map Series Overview window labeling can be applied to the Map Series.


Background Layers for Map Series

It´s now possible to draw background layers in the Map Series Overview window. The background layers will be stored together with the Map Series, so when using that Map Series on another CPS eXpress document the same background layers will be displayed.

In the list to the left, which is a list of all layers of the Map that the Map Series belongs to, users can choose which layers to show in the overview window.

Wednesday, February 21, 2007

Map Series Overview

I've added a toolbar with some useful buttons to the Map Series Overview window.
  • Select Map
  • Zoom In
  • Zoom Out
  • Fixed Zoom In
  • Fixed Zoom Out
  • Pan
  • Full Extent
  • Show/Hide Map Name *
  • Background Layer *

* Buttons that are not implemented yet.

Friday, February 16, 2007

CPS eXpress Document

Product Instance? Page Layout? Map?

It was a bit confusing using the term "Page Layout" for CPS eXpress documents. The general term when working with standard ArcMap is "MXD" och Map. Using the word "Map" will also be a bit consfusing because thats what we call an instance of a Map Series (A Map Series is a series of Maps). I finally came up with the fancy term "CPS eXpress Document" which should be more clear.

All user interface parts and help have been updated to show "CPS eXpress Document" instead of "CPS eXpress Page Layout".

Example of Index Grid

  • The right border is excluded.
  • Only top and left headings are displayed.

Insert Index Grid

By inserting a CPS eXpress Index Grid element you will get a Index Grid around the selected Map Frame. The element will automatically follow the Map Frame as it moves or changes size.

Properties that can be customized

  • number of columns and rows
  • column and row headings
  • what borders to show
  • what headings to show
  • heading offset
  • Border, grid and heading symbol

Wednesday, February 14, 2007

More Export to PDF updates

The name of the current map is the name of the current Page Layout, if no Page Layout have been saved it will say "Untitled". This will probably change so if there is an acitve map, the name of that map will be displayed instead. But currently there is now way for the application to know what map that is active.

When exporting multiple maps there is an indication of how many maps that will be exported.


Naming rules when exporting multiple Maps from a Map Series

The value of the field that specifies the Map Name (a Map Series property) will be used. If there are several Maps with same Name the ID will be appended to the name.

Any invalid filename character (\/:*?"<>) will be replaced with an underscore "_".

Example
ID: 100, Name: Map A
ID: 101, Name: Map B
ID: 102, Name: Map A

The resulting filenames will be:
Map A.pdf
Map B.pdf
Map A (102).pdf

In case there are duplicate filenames after the ID is added, a number will also be added.

Example
ID: 100, Name: Map A
ID: 101, Name: Map A (102)
ID: 102, Name: Map A
ID: 103 Name: Map A

The resulting filenames will be:
Map A.pdf
Map A (102).pdf
Map A (102) (2).pdf
Map A (103).pdf

Tuesday, February 13, 2007

Custom Layer Properties

Preview of the CPS eXpress property page for Layers. This property page will allow the user to specify special parameters, such as a Map Query (Map Instance Query)


Export to PDF updates

New option to let the user specify what maps to export.

  • Current - Will export current Page Layout (no Map Series required)
  • Whole Map Series - Exports all Maps in Map Series.
  • Define by Query - A query will define which Maps to export.