VB-Specific Files in Visio
If you are building your solution based upon an external Automation controller, such as Visual Basic, rather then Visio's internal VBA, you need to know about of two files designed to assist you. These files are VISCONST.BAS and VISREG.BAS.
VISCONST.BAS is a Visual Basic file that contains the Visio constant values for each of the returns from functions as well as arguments to functions. Many, if not most, of the arguments to Visio properties and methods seem, to the programmer, to be rather arbitrary numeric values. As an example, the Type property of a Window object returns the integer 1, 2, 3, or 4 to indicate the window type. VISCONST.BAS contains defined constants for these values: visDrawing, visStencil, visSheet ...
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.