std-fix-lwpoly | ![]() |
STD-FIX-LWPOLY is used as workaround for an AutoCAD R14 bug, that ENTGET returns wrong z values with LWPOLYLINES or HATCH entities.
It modifies and corrects the entget list. Otherwise numerical exceptions will most likely break the code.
It is used by some stdlib functions if the globals flag *R14-LWPOLY-BUG* is set to a non-nil value.
It may be used with entity types, entget-lists or entsel picklists.
Note
STD-GETPTS already returns a corrected point list, you don't have to use (STD-FIX-LWPOLY) for the STD-GETPTS argument.
STD-ENTCHG calls STD-FIX-LWPOLY if *R14-LWPOLY-BUG* is not nil.
Example
;; have a look at a lwpolyline. (print (std-fix-lwpoly (entsel "Inspect Entity: ")))
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.
ele: Either an entity type, entget-list or entsel picklist.
An entget list.
None.
(std-require 'STDENT)
Defined in STDENT