alijahed Posted May 27, 2010 Posted May 27, 2010 Hi All, I inserted a dynamic block in the screen and I want to change the visibility list of it. I was thinking it should be very straight forward but it is not easy apparently! Anyway, I start to collect information about the block but I can't understand how can I find and change the visibility parameter out of those information! I wrote: (defun c:test () (vl-load-com) (setq e (car (entsel))) (setq obj (vlax-ename->vla-object e)) (setq propname (vla-GetDynamicBlockProperties obj)) ;Get the parameters (setq var (vlax-variant-value propname)) ;Convert variant to SafeArray (setq numd (vlax-safearray-get-dim var)) ;Returns the number of dimensions in a safearray object (setq lis (vlax-safearray->list var)) ;Convert safearray to list (print e) (print obj) (print propname) (print var) (print numd) (print lis) (princ) ) and I get: Command: test Select object: # # # 1 (#) I attached the file as well. Can you please help me with that? Cheers Ali Test.dwg Quote
The Buzzard Posted May 27, 2010 Posted May 27, 2010 Hi All, I inserted a dynamic block in the screen and I want to change the visibility list of it. I was thinking it should be very straight forward but it is not easy apparently! Anyway, I start to collect information about the block but I can't understand how can I find and change the visibility parameter out of those information! I wrote: and I get: I attached the file as well. Can you please help me with that? Cheers Ali Not sure if this is what you are after. See link: http://www.cadtutor.net/forum/showthread.php?t=41059&highlight=visibility+STATE Quote
alijahed Posted June 9, 2010 Author Posted June 9, 2010 Thanks mate, I found the answer here: http://forums.augi.com/showthread.php?p=1073760&posted=1#post1073760 Cheers Quote
Lee Mac Posted June 9, 2010 Posted June 9, 2010 A Selection of Dynamic Block functions... http://www.cadtutor.net/forum/showpost.php?p=323818&postcount=4 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.