Chapter 18, Drawing with Automation

Chapter 18, Drawing with Automation

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

No matter what kind of drawing you create, you'll typically follow certain steps in your program. You'll add shapes to the drawing, often by dropping masters from a stencil. You'll need to determine where to place the shapes, and you may calculate their positions using data gathered from another source.

This chapter explains basic techniques for programmatically creating drawings, including working with shapes, background pages, and layers. If your drawings will include connected shapes, see Chapter 19, Automating Connections in a Visio Solution. For details about associating data with the shapes in your drawing, see Chapter 20, Integrating Data with a Visio Solution.

In this chapter…

Automating Drawing with Masters

Placing Shapes in a Drawing

Working with Selected Shapes

Background Pages

Layers