Message 1 of 2
Unlock layer of selected object

Not applicable
02-27-2018
12:12 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have a drawing file which contains several layers and some of which are locked. When I select objects and want to display block name, I can do that easily for objects in unlocked layers but when I come across objects in Locked layer code throws an error "eOnLockedLayer" and exits.
My question is, how can I find the layer associated with the selected object and unlock it if it is locked > Display Blockname > lock that particular layer again.
Thank you,