Attributes

You can edit the values of Block attributes in drawings. Changes apply to the current instance of the block.

You can create attributes automatically when you import blocks from AutoCAD files, or manually when you assign an Attribute name when you edit a note in a block.

Attributes in SOLIDWORKS drawings can have multiline values (note text). However, if you plan to export blocks to AutoCAD, use only single-line values.

To add or edit block attributes to notes in blocks inserted into drawings:

  1. Create a sketch block and save it. For more information, see Saving Sketches as Blocks.
  2. Open a drawing and click Tools > Block > Insert.
  3. In the PropertyManager, under Blocks to Insert, browse to select the block to insert.
  4. Move the cursor into the graphics area, click to place an instance of the block, and click .

    You can place multiple instances of the block.

  5. In the FeatureManager design tree, under Blocks, right-click the block and select Edit Block.
  6. On the Annotation CommandManager tab, click Note and insert a note on the block.
  7. In the Note PropertyManager, under Block Attribute, enter text for the Attribute name.
    Example: You can add a block attribute to the note FW.

  8. Optional: Specify these options for the Block Attribute:

    Read only

    The block attribute is read-only and for information only.

    Invisible

    The system stores the block attribute but it is not visible in the drawing or prints.

  9. Click to exit the PropertyManager. Then in the top-right corner, click to confirm the block edits.

For more information, see Note PropertyManager.

Values that are linked to file properties or custom properties display the link path and variable name ($PRP:"SW-File Name", for example) during editing. However, they show the values of the properties (WIDGET, for example) when blocks are displayed in drawings.