TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: domenicomaria on February 21, 2023, 03:40:07 AM
-
Is there a way to set the "shade plot" property and the "quality" property
in "shaded vport options" in the plot window ?
maybe I should use one of the following functions?
vla-put-ShadePlot, vla-put-OlePlotQuality, vla-put-OLEQuality . . .
-
maybe I should use one of the following functions?
vla-put-ShadePlot
it depends on what value you want to set
-
it depends on what value you want to set
as displayed and maximum
-
as displayed
(entmod
(vk_PutAss 0
76
(vk_RemoveAss 333
(entget
(vlax-vla-object->ename (vla-get-ActiveLayout (vla-get-ActiveDocument (vlax-get-acad-object))))
)
)
)
)
-
where are vk_PutAss and vk_RemoveAss ?
and shaded vport quality?
-
where are vk_PutAss and vk_RemoveAss ?
these are the simple library functions
anyway, we can do it without them
(entmod
(append (vl-remove-if (function (lambda (e) (or (= (car e) 76) (= (car e) 333))))
(entget (vlax-vla-object->ename
(vla-get-ActiveLayout (vla-get-ActiveDocument (vlax-get-acad-object)))
)
)
)
'((76 . 0))
)
)
-
ok
but why don't you use vla-put-ShadePlot ?
-
i cut this snippet from a bigger function
this is how i did it that time
does vla-put-ShadePlot work in model space?