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
  • 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.
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline


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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
Workplace bullying has increased with the use of email and social media. Retain evidence of this with email archiving to protect your employees.
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

746 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now