About this Manual

This manual describes the Maxsurf automation interface which lets you write macros, scripts and programs to access data from Maxsurf or to create and analyse models in Maxsurf. The manual provides a description of the objects, properties and methods contained in the Maxsurf Automation Interface. VBA code examples have been used throughout the manual to demonstrate how best to use these objects.

 

Chapter 1 Introduction; This chapter provides an introduction to automation and many of the general concepts needed to get started using VBA.

 

Chapter 2 Getting Started; Gets you started writing a simple script to automate Maxsurf. It is a simple series of step-by-step tutorials designed to introduce you to most of the objects within the Maxsurf Automation model.

 

Chapter 3 Basic Maxsurf Automation; Details some of the basic operations for automating Maxsurf, like opening and saving designs. It describes the main objects of the Maxsurf Automation Model and provides code examples of their use.

 

Chapter 4 Advanced Maxsurf Automation; This chapter outlines the use of collections and lists to manage groups of objects. Information included in this chapter is aimed at increasing your understanding of collections and lists and detailing how to use lists to increase the speed of execution. This chapter can be omitted without missing any Maxsurf Automation functionality.

 

Chapter 5 User Interface; This chapter describes which items in the Maxsurf user interface can be controlled using Automation.

 

Chapter 6 Examples; A number of examples are presented, demonstrating the use of Microsoft Excel and AutoCAD to control aspects of the Maxsurf Automation Interface.

Note

The aim of this manual is to provide information regarding the use of Maxsurf Automation and the Maxsurf Object Library. It is not the aim of this manual to teach programming in VBA or the use of Maxsurf.

The context of this manual assumes an in depth knowledge of Maxsurf and some experience in programming VBA. The Further Reading section on page 17 lists some resources on VBA and Maxsurf that may be useful in conjunction with this manual.