Jump to content

Recommended Posts

Posted

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

Posted

You should force a regen:

(vla-regen (vla-get-activedocument (vlax-get-acad-object)) acallviewports)

Posted

Use command

(command "_.-LAYER" "_Unlock" "*" "")

Posted

I didn't try it yet. Why it's like that? would it be slower?

Posted
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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...