std-attchg | ![]() ![]() |
(std-attchg <block> <name> <val>)
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.
(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)))
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.
An entget-list or nil if unsuccessful.
Changes an entity.
(std-require 'STDENT)
Defined in STDENT