Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Attribute Order in a revised WBLOCK Changed, Acad lt 2000

Status
Not open for further replies.

Gumbay50

Technical User
Nov 12, 2003
8
US
I revised the attribute info. in an existing wblock file and saved,(drawing borders), and now when the border is brought into a new drawing file the attribute prompts are all mixed up in order, ie, drawing no., drawing title line 1, drawing title line 2, etc. Any fix for this without recreating the WBLOCK from scratch? Thanks.
 
The command BATTMAN simplifies the process of editing attributes (prompt, default values, order, text style, etc.), but this isn't available until ver 2002, I believe. The order of the attributes are determined from the order they were created. If creating a new block by wblocking an old one, the order of the attributes is *probably* the order you select the items for the wblock.
 
Try this LISP? routine. I don't know what version of AutoCAD it is limited to.

(defun C:Ao ()
(setvar "cmdecho" 0)
(setq att (entsel "\nPick the ATTDEFs in the right order."))
(while (or (= att nil)(/= (cdr (assoc 0 (entget (car att)))) "ATTDEF"))
(alert "No ATTDEF found.")
(setq att (entsel "\nPick an ATTDEF. "))
)
(command "copy" att "" "0,0" "0,0"
"erase" att ""
)
(princ)
)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top