• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 16. Adding Data to Visio SmartSh... > The Automated-Stop-Sign-Generation A...

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 the Custom Properties dialog box to allow the user to add the proper data to the Stop Sign SmartShape symbol. Read through the code. I have liberally sprinkled comments to explain the functionality as the application proceeds.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint