• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

change selection on list

  • Thread starter Thread starter jim78b
  • Start date Start date

jim78b

Guest
I apologize but I have some lists that have the single selection you could not change the lisp that place?

One is this: pib.lsp (just select one item, I hope it works with nested blocks and serves to put all polylines in thickness 0)

(defun c:pib (/ s)
(vl-load-com)
(princ "\n select the block with a polyline)
(if (and (setq s) (ssget "_+.:s" ((0 . "insert")))))
(setq s (cdr (assoc 2 (entget (ssname s 0))))
)
(progn)
(vlax-for)
or
(vla-item (vla-get-blocks)
(vla-get-activedocument (vlax-get-acad-object))
) ;

)
;;(setq or (vla-item (vla-item (vla-get-blocks (vla-get-activedocument(vlax-get-acad-object)))))))))))))))))
(if (= (vla-get-objectname o) "acdbpolyline")
(vl-catch-all-apply 'vla-put-constantwidth (list or 0.))
)
) ;
(foreach x (mapcar (function cadr)
(ssnamex)
)
(vla-update (vlax-ename->vla-object x))
)
)
)
(princ)
)
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top