This task shows you how to insert a frame and a title block on the background sheet. | |||||
This operation is performed using a macro. A few macros are provided by default. You can customize frames and title blocks by either modifying the default macros (to add actions) or creating your own macros (to add specific formats). | |||||
Open or create a CATDrawing document. | |||||
|
|||||
About customizing frames and title blocks using macros |
|||||
To customize frames and title blocks using macros, you must be familiar with Visual Basic. Refer to the Automation Documentation for more information. Specifying the location of frame and title block macrosTo know where frame and title block macros are located, go to Tools> Options> Mechanical Design> Drafting> Layout tab. The field available in the Background View section indicates the path to the directory containing these macros. You can add new macros in the specified directory, and/or you can change this location by editing the field. Creating preview imagesYou can create a preview image of the frame and title block that will be displayed in the Manage Frame and Title Block dialog box. When saving this preview image this, make sure you do the following:
Modifying existing actions or adding new actionsAvailable actions for a given macro are listed in the Action list in the Manage Frame and Title Block dialog box. You may modify existing actions by modifying existing Sub procedures. You can also add new actions by defining new Sub procedures. There are a couple of things you need to remember when doing this:
Modifying the name of a style/actionIn the Manage Frame and Title Block dialog box, the names displayed in the Style of title block and Action lists can be modified. By default, the name of a style is the name of the corresponding CATScript file (without extension). By default, the names of the related actions are those written in the CATScript file (without the CATDrw prefix). Example: in a CATScript file, a function called CATDrw_XXXX creates an action called XXXX in the Action list. To create a customized name for a style or action, proceed as follow:
|
|||||
|