-EditBlockAttributeDefinition
Use the -EditBlockAttributeDefinition command to edit default values and text settings of BlockAttribute definitions in the command window.
You can replace all or only a part of a default value on all BlockAttribute definitions or on only a selection. Additionally, you can change the position, height, rotation angle, Layer, TextStyle, and color.
To specify BlockAttribute definitions based on their names and values, use the asterisk (*) to filter them.
A window selection returns all BlockAttribute definitions that contain the specified string within their name and optionally have the specified default value.
Note: You cannot edit BlockAttribute definitions on locked Layers.
You can:
You can also use the EditAnnotation command to edit the name, caption, and default value of a BlockAttribute definition. Double-click the entity to invoke the EditAnnotation command.
To edit BlockAttribute definitions one at a time:
When editing BlockAttribute definitions one at a time, you can edit all BlockAttribute definitions or only some of them. Additionally, you can change properties and characteristics such as position, height, rotation angle, and TextStyle.
Note: The BlockAttribute definitions must be visible and parallel to the CCS.
- Type -EditBlockAttributeDefinition at the command prompt.
- Type Yes and press Enter to edit BlockAttribute definitions one by one.
- Specify the name of the BlockAttribute definitions and press Enter.
You can specify several BlockAttribute definition names. Type a search string using * for a variable string of characters in the names. For example, type "A*" to find all BlockAttribute definitions starting with A in the name.
Specifying a unique name or a name with a wildcard restricts subsequent entity selection (step 5) to BlockAttribute definition names that match the filter.
- Optionally, specify a default value of the BlockAttribute definition and press Enter.
You can use an asterisk symbol as wildcard.
Specifying a unique default value or default value with a wildcard restricts subsequent entity selection (step 5) to BlockAttribute definition default values that match the filter.
Note: Default values of BlockAttribute definitions are case-sensitive.
- In the graphics area, specify the BlockAttribute definitions to modify and press Enter.
In the graphics area, the BlockAttribute definitions that match the specified criteria are selected. Editing starts with the first BlockAttribute definition from the selection.
- Step through the BlockAttribute definitions using the Next attribute definition option.
- Change the properties of the current BlockAttribute definition :
To change or replace a default value for the BlockAttribute definition:
- Specify the Value option and press Enter.
- Specify an option:
- Change. Replaces a specified substring of the default value of the BlockAttribute definition.
- Replace. Replaces the entire default value of the BlockAttribute definition with a new default value.
To change general characteristics and text properties, use the following options:
- Insertion point. Specifies a new insertion point for the BlockAttribute definition.
- Layer. Places the BlockAttribute on another layer.
- Text rotation. Changes the rotation angle.
- Height. Changes the text height.
- Textstyle. Specifies a new TextStyle.
- Linecolor. Changes the text color. You can enter ByLayer or ByBlock or a true color (RGB value). To specify a true color, type three integer values from 0 to 255 separated by commas for the red, green, and blue values, for example, 127,0,127.
- After modifying the properties of a BlockAttribute definition, specify the Next attribute definition option to proceed to the next BlockAttribute definition to modify.
- Repeat steps 6 and 7 as needed. If there are no more selected BlockAttribute definitions, the command ends.
To edit several BlockAttribute definitions:
The following procedure lets you edit the default values of BlockAttribute definitions. You can replace a text string with another text string for default values of selected BlockAttribute definitions.
The procedure applies only to visible attributes or both visible and invisible.
Note: This procedure does not let you edit general characteristics and text properties.
- Type -EditBlockAttributeDefinition at the command prompt.
- Type No to edit more than one BlockAttribute definition.
- To specify whether you want to edit BlockAttribute definitions that are visible, type Yes or No.
- Specify a BlockAttribute definition name and press Enter.
- Specify the default value for the BlockAttribute definition to replace and press Enter.
Use wildcards to restrict the subsequent entity selection to specific BlockAttribute definitions.
Note: Default values of BlockAttribute definitions are case-sensitive.
- In the graphics area, specify the BlockAttribute definitions to modify and press Enter.
You can use windowing selection. Entities other than BlockAttribute definitions are ignored, as well as BlockAttribute definitions whose names do not match the criteria from step 4, or default values whose values do not match the criteria from step 5.
- Press Enter.
- Type the string that you want to replace and press Enter.
- Type the replacement string and press Enter.
Command: -EditBlockAttributeDefinition