tblmake
(tblmake table_list)
The tblmake function generates a new table entry described in an association list table_list.
Before creating the new table entry, tblmake tests the validity of the contents of the specified group codes for the corresponding table type.
Valid names of table types are: BLOCK, DIMSTYLE, GROUP, LAYER, LTYPE, STYLE, UCS, VIEW, and VPORT.
The tblmake function returns nil and creates no table entry, if one or more group codes required for a complete table entry is missing.
- The type of the table to be enhanced with a new record (Layer, LineStyle, Custom Coordinate System, etc.) must be specified with the group code 0 in the association list.
- The name of the table entry to be created must be supplied with the group code 2 in the association list.
Return Value
If the function succeeds, it returns the association list, otherwise nil.
: (setq lay (list (cons 0 "LAYER") (cons 2 "ABC")))
: (tblmake lay)
(setq x (list
(cons 0 "VPORT") ; name of the table
(cons 2 "*ACTIVE")
(cons 12 (list 1 1 1)) ; center point
(cons 40 10) ; height
))
(tblmake x)