TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: lamarn on September 28, 2014, 04:15:57 PM
-
I found a great routine to make blocks neutral (0, byblock, etc.)
The only thing missing is to set 'transparancy' byblock
I already made the dcl with a extra button
But the vla code does not seem to react.
Thanks in advance
-
Good familiar interface . It's really write by you?
-
o it is not mine. I only wish i could do this. Can you?
I mailed the frenshman but no reaction from his side.
Me think I am the only person on earth using transparency 3D blocks byblock ..
-
But the vla code does not seem to react.
Have you used (vlax-dump-object ...) to check for the right property?
-
Hint: the prop you are looking for starts with an 'e' and not with a 't'.
-
This can be done outside the block / routine.
As for a start.
(defun c:Tpb ()
(setvar "TRANSPARENCYDISPLAY" 1)
(setq obj (ssget))
(if (/= obj nil)
(progn
(command "change" obj "" "p" "tr" "byblock" "")
(alert (strcat "Transparency ON and objects faded "ByBlock" "))
)
(princ "***Nothing Selected***"))
(princ)
)
-
Perhaps this helps:
http://www.theswamp.org/index.php?topic=44517
-
(vla-put-entitytransparency entity "byblock") ; something like that