Set Asset Layer (Text): Macro command
Smart Client Extension for AutoCAD
Set Asset Layer (Text): Macro command
Command: AFM_ASTLAYT
This command is used primarily from command macros from process task records, but it can also be run from the command line, or by selecting Asset / Set Asset Layer from the Ribbon.
Purpose : The Asset Layer (Text) macro command is used primarily from command macros from process task records, such as:.
Set Room Asset Layer ^C^Cafm_astlayt;rm;on;rm*,gros*,pl*
In the invocation above, the command:
- Sets the “rm” layer to be made, thawed and the current AutoCAD layer.
- Creates the rest of the series of layers for this asset type (for example,“rm$ and rm$txt)
- Uses the A/FM Layers table to looks up the asset type for layer “rm” to make it the current asset type.
- Turns the Room, Gross, and Plan lines (rm*,gros*,pl*) on.
The Set Asset Layer (Text) command is the command line version of the Asset Layer command.
When run from the command line, the command prompts for the asset layer rather than the asset type because sometimes more than one layer has the same asset type. For example, you can set up the Voice Equipment (EQ-V) and Data Equipment (EQ-D) layers to have the same asset type (EQ) to work with the same table (EQ).
Example
The following is an example of the Set Asset Layer (Text) command:
Command: AFM_ASTLAYT
Asset layer to make current <>:rm
Layer command or <Continue>: On
Layers: rm*,gros*,pl*
Layer command or <Continue>: <Enter>
Command:
Issuing Multiple AutoCAD Layer Commands
You can issue multiple AutoCAD Layer commands. For example, to turn on multiple layers, including the wall layers and to also lock those layers, use the following invocation:
Set Room Asset Layer ^C^Cafm_astlayt;rm;on;rm*,gros*,pl*,wa*;lock;wa*
Creating New Asset Symbols
Entities that you add to an asset layer will convert to asset symbols of the asset layer's asset type.
For example, use Set Asset Layer to choose the Room asset layer, which makes current the Room prototype layer and displays the Room asset symbol and asset text layers. Now draw a polyline on the Room prototype layer, and when you data edit or data number it, the program converts it to a room asset symbol (since it is located on an asset layer whose asset type is Room).
Therefore, before creating new entities that you intend to convert to asset symbols, you should use the Set Asset Layer command to make the appropriate asset layer the drawing's current layer. Add blocks or polylines to the drawing, and when you assign them intelligence, you will create asset symbols of the asset layer's asset type.