Conditiona¿l Layer Lock & Readonly for AutoCad

Posted on 2012-04-09
Last Modified: 2012-06-27
Hallo All,

We are using AutoCad 2012. Our company have more than 32 disciplines. For any projects the drawings are prepared with many disciplines. Civil does the civil drawing portions, water does the water pipeline portion, electrical does the electrical cable layout portions etc. etc. Each departments have their own set of layers in the drawing.

Now the problem is civil can accidentally modify the entities of electrical departments / utility departments. Though we lock the other disciplines layers programmetrically, but user can unlock the other disciplines layers easily if he wish to. Can we make those other disciplines layers read only? So that users can draw / modify in his own discipline layers but can not do that in other disciplines layer. But he can refer those layers / copy entities from those layers if he wish to? Some sort of xref type of thing is required, but we can not use xrefs as we work in a single drawing and our custom drawing management system is integrated with this type of file system accross the offices.

Any idea? Please help.


Soumen Roy
Question by:Soumen-Roy
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
LVL 12

Expert Comment

ID: 37823117
without the use of xrefs the only way to lock the users out of certain layers is to continue with using additional custom programming to lock those layers and not to allow the users to manually unlock those layers without asking for permission first.

this can become very problematic as the custom program will need to constantly run in the background to constantly check the layers to make sure that those certain layers have not been unlocked by the user.

Author Comment

ID: 37823475
Yes silverkorn,

Use of reactor, more precisely object reactor may do the required job. but it may lead to fatal error for large drawings as I faced earlier. also for large drawings reactor may increase drawing size drastically. any other way?
LVL 12

Expert Comment

ID: 37823636
if the drawings are that large you should really take another look at implementing XREF's into the workflow. This will solve your problem of allowing read only access.

You can also list and copy items from an xref into your current drawing by using the XLIST and NCOPY commands.
Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now


Author Comment

ID: 37826305

Hope I may user xref. But as I told, I can not use that as our custom drawing management software do not supporting that. There are nearly 2200 users who are using that software. I can not modify that software quickly.

LVL 12

Accepted Solution

silverkorn earned 500 total points
ID: 37827376
then your only option to keep the layers locked is to have your macro/program run at regular intervals or upon certain application events (such as the unlocking of certain layers or before the save process)

unfortunately at this time AutoCAD does not have the capability to prevent a user from unlocking a layer without the addition of custom programming.

Author Closing Comment

ID: 37831193
Thanx. I have user layer filter and layer based reactor to achieve this. Thanx for you suggestion.


Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question