Managing VBA Projects
IntelliCAD VBA projects are not stored as separate files, but are saved either:
- within the drawing file
- in common projects, which are available to multiple drawing files.
Macros contained within the drawing or in the common project file are not directly compatible with stand-alone Visual Basic projects (VBP files); however, forms, modules, and classes can be exchanged between dissimilar projects using the IMPORT and EXPORT VBA commands in the VBA IDE.
To save a macro within the drawing file
- From the File menu in either IntelliCAD or IntelliCAD VBA, click Save.
or: click the Save icon in the Toolbar.
or: press Ctrl + S.
The drawing is saved under the selected name.
- If the drawing has not been previously saved, the Save As dialog box appears. Type a name in the File Name box and click Save.
To save a macro in the Common Project File
- Common projects can contain document-independent macros and are saved in a separate file called CommonProjects.VBI. This file is loaded automatically when IntelliCAD is first started.