The Automated-Stop-Sign-Generation Application

The code in Listing 16.1 uses the DrawRectangle method of the Page object to place a simple Rectangle SmartShape symbol at the center of the page. The goal of this application is to modify this simple Rectangle symbol through Automation such that it becomes a red octagon with the white lettering “STOP” on it.

Additionally, the application will have a custom property entry for the intersection number where the sign is to be placed and a right-click (context menu) action to bring up the Custom Properties dialog box. The application will modify the rectangle by adding all of the required sections and rows to perform the translation from rectangle to octagon and the formatting changes. It will then call ...

Get Professional Development with Visio® 2000 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.