samifox Posted November 11, 2013 Posted November 11, 2013 Hi im using this code to unlockall layers (vlax-for item layerCollection (vlax-put-property item "Lock" ':vlax-false) ) all layers becomes unlock but they are still faded. what code i need to add in order to unfade them back? Thanks Shay Quote
MSasu Posted November 11, 2013 Posted November 11, 2013 You should force a regen: (vla-regen (vla-get-activedocument (vlax-get-acad-object)) acallviewports) Quote
Stefan BMR Posted November 12, 2013 Posted November 12, 2013 Use command (command "_.-LAYER" "_Unlock" "*" "") Quote
samifox Posted November 12, 2013 Author Posted November 12, 2013 I didn't try it yet. Why it's like that? would it be slower? Quote
Stefan BMR Posted November 12, 2013 Posted November 12, 2013 I didn't try it yet. Why it's like that? would it be slower? If REGENAUTO is set to ON, as it should be, it takes some time on huge drawings (not more than REGEN command). But IF you find another method (via ActiveX), you still need to regen drawing so the speed should be similar. 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.