Hi Jeff
Any help is much appreciated. I am still learning lisp.
I am trying to match all point properties of a cogo point.
Guys in the field give random codes sometimes or errors and think it would be much quicker to have a match properties lisp.
From what I have gathered from previous posts I have put this together
;;; match point lable style
(defun c:mst (/ doc ss ss2 obj obj2 newstyle oldstyle)
(vl-load-com)
(setq doc (vla-get-activedocument (vlax-get-acad-object)))
(vla-startundomark doc)
(while (setq ss (ssget ":S" '((0 . "AECC_COGO_POINT"))))
(setq obj (vlax-ename->vla-object (ssname ss 0)))
(setq oldstyle (vlax-get obj 'labelstyle))
(setq oldstyle (vlax-get obj 'labelstyle newstyle))
(setq oldstyle (vlax-get obj 'Style ptstyle))
(setq oldstyle (vlax-get obj 'labelstyle lblstyle))
(setq oldstyle (vlax-get obj 'layer layr))
(princ "\n....select Points to change: ")
(if (setq ss (ssget '((0 . "AECC_COGO_POINT"))))
(while (> (sslength ss) 0)
(setq obj2 (vlax-ename->vla-object (ssname ss2 0)))
(setq newstyle (vlax-get obj2 'labelstyle))
(vlax-put obj 'labelstyle newstyle)
(vlax-put pt 'Style ptstyle)
(vlax-put pt 'labelstyle lblstyle)
(vlax-put pt 'layer layr)
(vla-endundomark doc)
(princ)
)
)
not sure if we can add raw description also?
Best Regards
Allan