std-tbl-rename


Synopsis

(std-tbl-rename <tbl> <old> <new>)

Description

STD-TBL-RENAME tries to rename a symbol table name.

Returns T on success or nil to be able to print user prompts as below on failure or success.

Example

(std-tbl-rename "LAYER" "WALL" "WALL-01")

or:
(if (std-tbl-rename "LAYER" "WALL" "WALL-01") 
(princ "Layer WALL renamed to WALL-01\n"))

Arguments

tbl: string which must be a valid symbol table, see std-tbl-p

old, new: strings which must be valid symbol table names

Return Value

T or Nil.

Side Effects

It may call the AutoCAD command RENAME.

Module

(std-require 'STDTBL)

Defined in STDTBL