Using the OLE Servers
These notes cover the application of Visual Basic with PowerSolution products. They are not designed to teach you Visual Basic, but to show how to utilise the OLE interfaces with Power Solution products for Visual Basic applications.
The creation of these utilities requires a fundamental knowledge of Visual Basic 5 or 6.
In particular, the main areas you should have an understanding of are:
- Working with the basic controls of Visual Basic (i.e. command buttons, text boxes, drop down lists)
- Visual Basic Variables and Operators (i.e. declaring and the use of variables such as integers, strings)
- Making decisions in Visual Basic (i.e. if..then...else)
- Using Loops and Timers (i.e. do...while, for...next)
- Error handling (i.e. trapping errors and acting upon errors) Using Modules and Procedures (i.e. functions, sub routines, add-in modules)
As a learning aid, we recommend the book:
Learn Visual Basic Now - Microsoft Press - ISBN 1-55615-905-6 The above topics are handled separately in this book.
The following pages show the available interfaces of each OLE server.
PowerMILL - "PMill.Document"
PowerSHAPE - "PowerSHAPE.Application"
CopyCAD - "Copycad.Document"
MMTDriver Object