std-attele


Synopsis

(std-attele <block> <name>) ;

Description

STD-ATTELE returns the entget-list of the attribute with the name which is the same as the name argument (a string) in the block (an INSERT or BLOCK entity) or nil if not found.

The string comparison of the name argument is case-insensitive (with STD-STRING-EQUAL).

Examples:

(std-attele (entsel) "DATE")

(if (setq ss (ssget "X" '((0 . "INSERT")(2 . "PLOTSTAMP"))))
  (setq att1 (std-attele (ssname ss 0) "DATE"))
  ;; or
  (setq attlst (mapcar '(lambda (ele) (std-attele ele "DATE"))
(std-sslist ss)) )

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

Return Value

An entget-list.

Side Effects

None.

Module

(std-require 'STDENT)

Defined in STDENT