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)