std-getendpt


Synopsis

(std-getendpt <ele>)

Description

Returns the last point or the value of the group 11 of the entity.

For a POLYLINE or LWPOLYLINE it returns the last vertex.

For an ARC it returns the arc endpoint and not nil.

For all other entities it returns the value of the dxf group code 11, which is nil on entities which do not contain this group.

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

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

Either a 3D point 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