microstation basic.pdf

(5466 KB) Pobierz
MicroStation
BASIC Guide
DAA010290-1/0002
®
Trademarks
AccuDraw, MicroStation, MicroStation Modeler, MicroStation
PowerDraft, MicroStation Review, MicroStation Vault and
SmartLine are registered trademarks of Bentley Systems,
Incorporated. Bentley, the “B” Bentley logo, MDL, PowerScope,
QuickVision, TeamMate and MasterPiece are trademarks of
Bentley Systems, Incorporated.
Bentley SELECT is a service mark of Bentley Systems,
Incorporated.
Adobe, the Adobe logo, Acrobat, the Acrobat logo, Distiller,
Exchange, and PostScript are trademarks of Adobe Systems
Incorporated.
Windows is a registered trademark and Win32s is a trademark of
Microsoft
Corporation.
Other brands and product names are the trademarks of their
respective owners.
Copyrights
1997
Bentley Systems, Incorporated.
MicroStation
®
95
1995
Bentley Systems, Incorporated.
IGDS file formats
1987-1994
Intergraph Corporation.
Intergraph Raster File Formats
1994
Intergraph Corporation
Used with permission.
Portions
1992-1994
Summit Software Company.
Unpublished – rights reserved under the copyright laws of the
United States.
MicroStation BASIC Guide
i
ii
MicroStation BASIC Guide
Table of Contents
Part 1: Concepts and Procedures
1. Introduction to Macros
Creating Macros ______________________________________________ 1-1
Guidelines for creating a macro_____________________________ 1-2
Advanced macro programming _____________________________ 1-3
Running Macros _____________________________________________ 1-5
Creating and Managing Macros ________________________________ 1-6
Generating macros________________________________________ 1-6
Managing macros _________________________________________ 1-7
Adding macros to MicroStation’s user interface ________________ 1-8
2. Prototyping, Editing, and Debugging Macros
Prototyping__________________________________________________ 2-1
Starting conditions ________________________________________ 2-1
The Create Macro dialog box _______________________________ 2-1
Stopping the macro generator ______________________________ 2-2
The form of a prototype macro _____________________________ 2-3
BASIC extensions commonly used by the macro generator _____ 2-4
The BASIC Editor ____________________________________________ 2-6
Text editing area and scrolling______________________________ 2-7
Status message field_______________________________________ 2-8
Line number and column number fields _____________________ 2-8
File menu _______________________________________________ 2-8
Edit menu _______________________________________________ 2-9
Run menu _______________________________________________ 2-10
Debugger icons __________________________________________ 2-11
Working with variables ____________________________________ 2-12
3. Macro Language Overview
Comments___________________________________________________ 3-1
Naming Rules ________________________________________________ 3-1
Built-in Data Types ___________________________________________ 3-2
Integers _________________________________________________ 3-2
Long integers ____________________________________________ 3-2
Strings __________________________________________________ 3-2
Singles __________________________________________________ 3-3
Doubles_________________________________________________ 3-3
MicroStation BASIC Guide
iii
Zgłoś jeśli naruszono regulamin