Message 1 of 4
Error: Automation Error. The drawing is in color dependent plot style mode
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Everything in my drawing is set to Color ByLayer.
A pointcloud with Stylization set to Object Color is white.
If I select the pointcloud and change to Color ByBlock in the properties panel, the pointcloud is now black.
Now using this Lisp routine to toggle between ByLayer and Byblock gives me an error.
I don't know how to resolve this.
Thanks.
(defun c:KK (/ SS COUNT PCLOUD LAYOBJ)
(setvar 'cmdecho 0)
(vl-load-com)
(setq SS (ssget "A" '((8 . "A-point-clouds"))))
(setq COUNT 0)
(repeat (sslength SS)
(setq PCLOUD (ssname SS COUNT) COUNT (+ 1 COUNT))
(setq LAYBLK (vla-get-PlotStyleName (setq ENT (vlax-ename->vla-object PCLOUD))))
(if (= LAYBLK "ByLayer")
(vla-put-plotstyleName ENT "ByBlock")
(vla-put-plotstyleName ENT "ByLayer")
)
)
(princ)
)
Error: Automation Error. The drawing is in color dependent plot style mode