std-attchg


Synopsis

(std-attchg <block> <name> <val>)

Description

STD-ATTCHG changes the attribute value, the visible text (dxf group code 1), of the attribute named by name of the main INSERT entity block to the new value val.

Examples:

(std-attchg (std-entsel "Update a plotstamp block")) 
"DATE" (std-today))

;;; or automatically just the first INSERT

(if (setq ss (ssget "X" '((0 . "INSERT")(2 . "PLOTSTAMP"))))
  (std-attchg (ssname ss 0) "DATE" (std-today)))

Arguments

block: Either an entity type, entget-list, entsel picklist or nentsel picklist of an INSERT or BLOCK entity.

name: A string naming the attribute to be searched in the INSERT.

val: A string containing the new value for the dxf group 1 of ele.

Return Value

An entget-list or nil if unsuccessful.

Side Effects

Changes an entity.

Module

(std-require 'STDENT)

Defined in STDENT