Message 1 of 18

Not applicable
09-12-2017
06:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys,
I am new to lisp and I would like to know what line/s should I change on the lisp below to change the transparency of hatch in nested blocks. The code works perfectly in changing the hatch colour.
Thanks!
(defun c:HC ( / aDoc color) (vl-load-com) (setq aDoc (vla-get-ActiveDocument (vlax-get-acad-object))) (if (setq color (acad_colordlg 7 t)) (progn (vlax-for blk (vla-get-blocks aDoc) (if (and (eq :vlax-false (vla-get-islayout blk)) (eq :vlax-false (vla-get-isxref blk)) ) (vlax-for itm blk (if (eq (vla-get-ObjectName itm) "AcDbHatch" ) (vla-put-color itm color) ) ) ) ) (vla-regen adoc acActiveViewport) ) ) (princ) )
Solved! Go to Solution.