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.
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.


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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Question has a verified solution.

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

In this article, you will read about the trends across the human resources departments for the upcoming year. Some of them include improving employee experience, adopting new technologies, using HR software to its full extent, and integrating artifi…
Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
XMind Plus helps organize all details/aspects of any project from large to small in an orderly and concise manner. If you are working on a complex project, use this micro tutorial to show you how to make a basic flow chart. The software is free when…

749 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