-AttDef

Works with BricsCAD (Windows) Classic, Pro and Platinum, BricsCAD (Linux) Classic, Pro and Platinum

Defines how a block's attributes will be created at the command prompt.

Accessing the Command

command bar:  -attdef

 

: -attdef

Prompts you in the command bar:

Toggle attribute modes:   Constant=Off  Invisible=Off  Preset=Off  Verify=Off Lock position=Off Multiple lines=Off <done>:  Enter an option, or press Enter.)

Name of attribute: (Enter up to 255 characters.)

Prompt: (Enter up to 255 characters.)

Default text: (Enter up to 255 characters.)

Text: Style/Align/Fit/Center/Middle/Right/Justify/<Start point>:  (Pick a point, or enter an option.)

Height of text <0.2000>: (Enter a value, or press Enter to accept the default.)

Rotation angle of text <0>: (Enter a value, or press Enter to accept the default.)

 

This command is meant for use by macros, scripts, and LISP routines.

Command Options

Option

Description

Toggle attribute modes

Sets modes for the attributes:

Constant=Off

If On, uses the default value; the user cannot change the value.
Type C, then press Enter to toggle the attribute mode.

Invisible=Off

If On, hides the attribute; hidden attributes are not displayed nor printed. (Hidden attributes can be displayed with the AttDisp command.)

Type I, then press Enter to toggle the attribute mode.

Preset=Off

If On, inserts attributes without prompting the user; the attributes can be changed later with the AttEdit command.

Type P, then press Enter to toggle the attribute mode.

Verify=Off

If On, forces the user to enter the value a second time; this helps to ensure the value is entered correctly.

Type V, then press Enter to toggle the attribute mode.

Lock position=Off

If On, locks the position of the attribute within the block reference.

Unlocked attributes can be moved relative to the rest of the block using grip editing and multiline attributes can be resized.

Type L, then press Enter to toggle the attribute mode.

Multiple lines=Off

If on, uses multiline text instead of single line text.

Type M, then press Enter to toggle the attribute mode.

<done>

Press Enter to continue with the remainder of the command.

 

Name of attribute

Specifies the tag of the attribute; this is the name by which BricsCAD identifies the attribute. You can use up to 255 letters, numbers, and punctuation.

Prompt

Specifies the user prompt; this is displayed at the command prompt when the attribute is later inserted in the drawing. You can leave this field blank; BricsCAD uses the tag as the prompt during attribute insertion.

Default text

Specifies the default value; this is displayed in angle brackets, like <360>. As with other defaults, the user need only press Enter to accept this value.

If the Multiple lines mode is ON, you are prompted:

Next line or <done>: Type the next line of the Mtext or press Enter to stop.

Text

Specifies the style and justification of the text:

  • Style specifies the text style; enter the name of a style present in the drawing.

  • Align aligns the text between two points; the text height is adjusted to maintain its aspect ratio.

  • Fit aligns the text between two points; the text height is maintained.

  • Center centers the text's baseline on the pick point.

  • Middle centers the text on the pick point.

  • Right right justifies the text.

  • Justify accesses additional justification options.

  • Start point left justifies the text.

Height of text

Specifies the height of the attribute text, unless overridden by the text style or justification. Enter a value, or pick two points to indicate the height.

Rotation angle of text

Specifies the rotation angle of the rotation text. Enter a value, or pick two points to indicate the angle relative to the positive x axis.

 

Related Commands

AttDef - defines attributes through a dialog box.

AttDisp - toggles the display of attribute text.

AttEdit - edits attribute values and properties.

AttExt - extracts attributes from drawings to data files through a dialog box.

-AttExt - extracts attributes from drawings to data files through the command bar.

Block and -Block - create blocks from attribute definitions and entities.

EAttEdit - edits attribute values and most properties.

Explode - reduces attributes to tags.

Insert - inserts blocks and prompts for attribute values through a dialog box.

-Insert - insert blocks and prompts for attribute values through the command bar.

InsertAligned - inserts blocks repeatedly, and inserts mirrored blocks.

Properties - edits attribute values and properties.

RefEdit - edits blocks and attributes in-place.


© Menhirs NV. All rights reserved.