Basic Entity Accessors, std-gettype,...


Synopsis

(std-gettype <ele>) ; Type, dxf group 0

(std-getdxf1 <ele>) ; dxf group 1

(std-getname <ele>) ; Name, dxf group 2

(std-getlay <ele>) ; Layer, dxf group 8

(std-getcolor <ele>) ; Colornumber, dxf group 62

(std-getltype <ele>) ; Linetype, dxf group 7

(std-gethandle <ele>) ; Handle, dxf group 5

(std-getflag <ele>) ; Flag, dxf group 70

Description

These functions are the general entity property accessors, requiring only one argument, instead of STD-GETVAL which requires two arguments.

They may be used with entity types, entget-lists or entsel picklists.

Implementated as (STD-GETVAL <group-number> ele)

Note

The implementation calls STD-ENTGET on ename or entsel arguments which uses an entget caching mechanism, because ENTGET is usually slow. But this speed gain may fool return values on deleted entities.

Arguments

ele: Either an entity type, entget-list or entsel picklist.

Return Value

Dependent on the dxf group. Either a string or a number or nil.

Side Effects

None. It may set an internal *ENTGET-CACHE* symbol, but direct access is forbidden.

Module

(std-require 'STDENT)

Defined in STDENT