std-entmake-xxx


Synopsis

(std-entmake-layer <elist>)

(std-entmake-line <elist>)

(std-entmake-circle <elst)

(std-entmake-point <elist>)

Description

It defines an easy to use ENTMAKE framework with defaults and simplifies the creation of textrows and complex entities. It can be basis for COMMAND independent fast creation functions.

It uses a template function for every entity type which knows useful default values and all required entity groups to succesfully create entities with ENTMAKE.

It also assures that all groups are passed to entmake in the required order. This makes ENTMAKE fairly portable, automatically adding or removing required groups and rearranging a wrong order of groups.

(std-entmake-layer <elist>)

Creates a layer definition with the following defaults and required entity groups:
defaults: ((0 . "LAYER")(70 . 0)))

required: group 2: layername

Consider also STD-LAYER-MAKE as an higher-level and easier to use interface.

(std-entmake-line <elist>)

Creates a line entity with the following defaults and required entity groups:

default: ((0 . "LINE"))

required: group 10: startpoint and 11: endpoint

(std-entmake-circle <elist>)

Creates a circle entity with the following defaults and required entity groups:

default: ((0 . "CIRCLE")(10 . (0 0 0))(40 . 1))

required: groups 10: midpoint and 40: radius

(std-entmake-point <elist>)

Creates a point entity with the following defaults and required entity groups:

default: ((0 . "POINT")(10 . (0 0 0)))

required: group 10- point

Arguments

elst: a partial entitylist as returned by entget. Just the required groups must be present.

Return Value

The return value of the actual (last) ENTMAKE call.

Side Effects

Creates AutoCAD entities.

Module

(std-require 'ENTMAKE)

#- SMALL

Defined in ENTMAKE