-AttDef

Works with Bricscad (Windows) Classic and Pro, Bricscad (Linux) Classic

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:  Fixed: N/Hidden: N/Defined: N/Validate: N /<PROceed>: 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:

 Fixed: N

 Uses the default value; the user cannot change the value.

Hidden: N

Hides the attributes; they are not displayed and not printed. (Hidden attributes can be displayed with the AttDisp command.)

Defined: N

Inserts attributes without prompting the user; the attributes can be changed later with the AttEdit command.

Validate: N

Forces the user to enter the value a second time; this helps to ensure the value is entered correctly.

<PROceed>:

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.

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.

Expode - 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.


Bricscad™ is commercialized by Bricsys NV. Bricsys NV and Vondle NV are fully owned subsidiaries of Menhirs NV. Copyright © 2001- Menhirs NV - All rights reserved.