Macro Components
Set the data for a component that will be added to the component library (for example MACRO_CUSTOM) in the database view. Add a row to the database for the component: right-click to open the context-sensitive menu and select Add Row Before or Add Row After. You can also copy the active row by selecting Copy Row. Edit the fields of the row to match the new component.
Tab: General
- Description
- Type a description in the text field.
- Type
- Select a component type from the list, for example 10 Miscellaneous
- Set
- Select a group from the list, for example STD.
- Code
- Type a code for the component for material collection.
- Form
- A component may have variable parameters, for example dimension or code, the values of which can be selected by the user when the component is added. A database view is required for the parameter selection. Database views are defined using Forms. Creating a Form is described in section one of the Vertex System Administrator's Guide.
- AutoParamEdit
- When this check box is selected, the database view defined in the Form field is opened when the user selects a component with the Vertex Browser. When this check box is not selected, default values defined on the Parameters tab are set for the component parameters, and the component is ready to be added immediately after being selected in the browser. In such a case the database view will not open until the user selects the Editing parameters function. An application development program is required to generate 3D and 2D geometry according to user-defined parameters. The creation of an application development program is described in the Vertex application development tool guide.
Tab: Files
On the Files tab you can define the model and drawing files for a component, or, if necessary, the application development programs that are used to generate the 2D and 3D geometry.
- Initializer
- A component may have parameters that require certain initial values from the user before it can be defined, for example a dimension of a component can be defined by selecting two points in the model window or the drawing window of a building. The Initializer is required to define initial values. It is an application development program. The creation of an application development program is described in the Vertex application development tool guide. The parameter values calculated by the Initializer are, for their part, required in the application development program that is used to generate the 2D or 3D geometry of the component.
- 2D Drawing
- Select AUTOMATIC from the list to have the program automatically create a drawing from a top projection.
- 3D Accurate
- Type the name of the file in the text field, for example comp_accurate.vxm. The file must have been saved in the ../custom/complibs/macro_custom folder.
- 3D Coarse
- Type the name of the file in the text field, for example comp_coarse.vxm. The file must have been saved in the ../custom/complibs/macro_custom folder.
Tab: Parameters
- Additional parameters
- If the component is variable, you can define the values of the variable dimensions on the Parameters tab. Type the labels and values of the variable parameters in the Additional parameters field. Separate the parameters from each other using the vertical bar character, for example:
Tab: Browser
On the Browser tab you can define the name of the Vertex Browser directory from which the component is selected when it is added.
- Browser path
- Define the folder from which the component can be selected in the browser. Do either of the following:
- Thumbnail ID
- Select whether to create a thumbnail image for the component based on the 2D or the 3D drawing.
- Browser Upd
- When you have defined the component data, click the Browser Upd button to make the program add the directory and the component to the directory tree of the browser and create an image to be used as the thumbnail for the component. Depending on the value of the Thumbnail ID field, the 2D drawing or the 3D model of the drawing opens momentarily in a separate window.