Please forgive any wrongdoings
This is my first post
As the title says, I'm trying to access the "Description" from an AECC_COGO_POINT so I can change that entity to a layer based on said Description.
I'm not aprogramming guru but have been doing fine with lisp for years without hurting my brain to learn new stuff.
But perhaps it's time.
LSP code from LDD worked great
(partial)
(setq elist (entget ename))
(setq ptype (cdr (assoc 0 elist))) ;find primative type
(if (= ptype "AECC_COGO_POINT")
(progn
(Read-Description)
(Change-desc-to-Layer-name)
(Make-Layer-Change)
) ;end progn
) ;end if
(defun Read-Description()
(setq ename1 (entget ename))
(setq desc (cdr (assoc 302 elist)))
(if (or (= desc " ") (= desc "") (= desc "."))
(setq desc "null")
); end if
); end Read-Next-Attribute
PLEASE - any ideas or links?
Thanks