Hi Simon,
Here's a crude AutoLisp utility that might work. APPLOAD it and then type
"ca [enter]" at command line.
Nate.
; 13-Feb-06 NEHolt created for Discussion group
(defun c:ca ( / en text1 )
; Copy text or attribute value from one attribute to another
(while (setq x (nentsel "\n Pick address text:"))
(setq addr_en (car x)) ; get entity name of picked attribute
(setq addr_ed (entget addr_en)) ; open the entity
(if (OR (= (cdr (assoc 0 addr_ed)) "ATTRIB")
(= (cdr (assoc 0 addr_ed)) "TEXT"))
(progn ; okay, we have a target, not prompt user to
; pick some text or attrib value to copy to it
(if (setq x (nentsel " Pick text to copy from:"))
(progn
(setq from_en (car x))
(setq from_ed (entget from_en))
; Text value should be the '1' subrecord
(if (assoc 1 from_ed)
(progn
(setq copytext (cdr (assoc 1 from_ed)))
(princ copytext)
; Okay, we're are ready to make the transfer
(setq newed (subst (cons 1 copytext)(assoc 1 addr_ed)
addr_ed))
(entmod newed) ; update the address attribute
(princ "\n")
(command "_.REGEN") ; brute force to make change visible
) ) ) )
) )
)
(princ)
)
wrote in message news:5085096@discussion.autodesk.com...
I am using ACADE 2005
I have a customer who requires the IO Addresses to reflect the
non-sequential, semi-English, abreviated, Tag name of a connected input or
ouput component. Getting the IO description to match the description of the
related component is easy, I simply 'pick' the approriate description.
Is there an easy way to 'pick' the IO address from the drawing or project
lists?
Maybe there is a tool I can use to import the IO addresses?
The only other solution I can use is to edit the attributes on the PLC
components.
Thanks in advance,
Simon