Sunday, September 7, 2008

Attrib Replacement

As here I have mentioned about the necessity of replacing of two text entities as well as provided a LISP routine towards its solution.

For a typical AutoCAD drawing using blocks with Attribs, same problems of replacing texts some times occur where we have to replace one ATTRIB with the another.
For example, In an architectural floor plan layout, If someone uses a block with attrib for the room numbering, sometimes room numbers have to be replaced. An AutoCAD draftsman might use built-in AutoCAD command DDATTE, but he has to modify both or sometimes more than 2 Attribs.
Hence I developed a LISP routine for replacing Attribs so as to work fast.

* AttribReplace.lsp (2Kb)
This command replaces two attrib values of same type of a block.

Sequence of command lines for this routine:-

Command: ATTR
Select FIRST Attrib:
Select SECOND Attrib:
Select FIRST Attrib:

(The command work continuously till you Enter or press "Esc".)

Download : AttribReplace.lsp

No comments:

Post a Comment