Jump to content
Kemphas

Locating and Deleting Layers

Recommended Posts

Kemphas

So i run into the problem where I copy from one project to the next to save time, also from templates and what not. Well there isn't really a uniform nature to my drawings as i started doing them under necessity rather design...

 

So, i try to delete duplicate layers.. or Layer's and it continues to give me errors... stating every time:

 

The following layers cannot be deleted:

Layers 0 and Defpoints

The current layer

Layers containing objects

Xref-dependent layers

 

 

Well, its not Layer 0 or Def Points, Its not the current layer and i even deleted all pages except the one mandatory and CTRL+A - DEL... Zoom extents on model and do the same thing, and i cannot get rid of the layer....

 

So yeah? how do i get rid of the pesky layers? Can i type a command that changes all XXXX layer to XXX layer and can dump the ones into such as "0" layer and be unconcerned about it freeing it up to delete the unwanted un used layer?

Share this post


Link to post
Share on other sites
BlackBox

I'd suggest you use the PURGE command instead of manual deletion through the Layer Properties Manager. Some layers (i.e., 0, Defpoints) are there for a reason. :wink:

Share this post


Link to post
Share on other sites
SLW210

Try using -PURGE and purge Empty text objects and Zero length lines, THEN PURGE your Layers.

Share this post


Link to post
Share on other sites
Dadgad

You can use LAYMRG and select the layers by name, and merge the "phantom layer" into Layer 0, or any other layer of your choosing, and after you have selected your target layer it will ask for confirmation of your layer merge intention. After it is done merging the selected layer into the target layer it will delete the offending layer.

Share this post


Link to post
Share on other sites
ReMark

You can use brute force on the pesky ones. The Layer Delete command. But be forewarned...it will delete the layers even if they have objects on them. Be careful what you wish for.

Share this post


Link to post
Share on other sites
Dadgad

I have had on a number of occasions layers which I could not delete any other way than with the LAYMRG command, not by purging nor by the layer delete function. Perhaps if i had tried the -PURGE option at the command line I might have been able to. I thought that you couldn't delete layers which were in use? I usually just use the right click shortcut command for delete in the layer properties manager though. As a last resort? All else has failed? LAYMRG.

Share this post


Link to post
Share on other sites
RobDraw

Using the layer merge command does not get rid of the object(s) that are preventing you from deleting the layer. It's just a work around in this situation. Not a solution.

Share this post


Link to post
Share on other sites
ReMark

From Lynn Allen's blog of August, 2005.

 

"The awesome Express Tool LAYDEL will come to your rescue. Of course you've installed the Express Tools - you'll find Delete Layer under the Layer sub-menu of the Express Tools. This command does not care what is on the layer - it is happy to vanish it into oblivion. Even if that layer is referenced in a block definition, LAYDEL is smart enough to open that block definition, remove the layer from the block, and then delete the layer - now that is power! But remember...where there is power - there is Danger! So be careful what you ask for...Since the layer doesn't have to be empty to be removed with LAYDEL - your drawing could definitely incur some damage if you aren't paying attention."

Share this post


Link to post
Share on other sites
Dadgad

thanks, I missed that. I always install the express tools and give them a good look over, but 2005 was long before my journey began.

Share this post


Link to post
Share on other sites
Kemphas
you can use brute force on the pesky ones. The layer delete command. But be forewarned...it will delete the layers even if they have objects on them. Be careful what you wish for.

 

ctrl+z = friend

Share this post


Link to post
Share on other sites
Kemphas

Purge worked for the majority of my layers..

 

 

Nother questions related to layers. i have 2010LT, how do i print to PDF without printing the layers with it and colors? I have used CutePDF (freeware pdf printing software for anything you can print)

Share this post


Link to post
Share on other sites
ReMark

You want to print in monochrome right?

Share this post


Link to post
Share on other sites
Kemphas

I also want to get rid of the pdf's side bar that allows you to see what the layers are and turn them on / off.

 

 

If i print simply monochrome it will shade the colors into grey's so i dont think thats what i want.. i want 1 color for the program and i want it to simply print BLACK... without having to go in and change all the colors to the layers every time.

Share this post


Link to post
Share on other sites
srichang
You can use LAYMRG and select the layers by name, and merge the "phantom layer" into Layer 0, or any other layer of your choosing, and after you have selected your target layer it will ask for confirmation of your layer merge intention. After it is done merging the selected layer into the target layer it will delete the offending layer.

 

Aweosome!!it works....thank you so much!!

Share this post


Link to post
Share on other sites
RobDraw
Aweosome!!it works....thank you so much!!

 

Yeah the layer is gone but do you know what was on that layer? If not, then you are just covering up what was keeping you from deleting/purging that layer.

Share this post


Link to post
Share on other sites
Steven S

The best way is to use "Layer Translator".

Import the same drawing in the "Translate Box". Then you translate the layer "to delete" with de layer "you want to save". It always works even with Xref-dependent layers.

Share this post


Link to post
Share on other sites
AlinOz
I also want to get rid of the pdf's side bar that allows you to see what the layers are and turn them on / off.

 

 

If i print simply monochrome it will shade the colors into grey's so i dont think thats what i want.. i want 1 color for the program and i want it to simply print BLACK... without having to go in and change all the colors to the layers every time.

 

Kemphas,

This is a full AutoCAD, but I'm pretty sure the same will aplly in LT. Open your plot dialogue, select the DWG to PDF plotter. Next to it, you will find a 'Configure' Button. That will take you to the "plotter configuration editor" dialogue. Select Custom Properties in the top area and the Custom Proerties Button will appear at the bottom. Selecting this will open the DWG to PDF Properties Dialogue wherein you will find the "Include Layer Information" checkbox - uncheck it and Bob's yer Uncle...

Plotting.jpg

Share this post


Link to post
Share on other sites
Kemphas

Thank's alinoz

Share this post


Link to post
Share on other sites
srichang
Yeah the layer is gone but do you know what was on that layer? If not, then you are just covering up what was keeping you from deleting/purging that layer.

Yup...i did try to find them out...but failed ....there was nothing in the layer when i isolated it and ctrl+a....the file doesn have any xrefs either...any suggestions on where they could be hiding....??

Share this post


Link to post
Share on other sites
Dadgad
Yup...i did try to find them out...but failed ....there was nothing in the layer when i isolated it and ctrl+a....the file doesn have any xrefs either...any suggestions on where they could be hiding....??

 

Possibly empty text objects, or zero length lines. if so, then the -PURGE entered at the commandline might be useful, or using the AUDIT > (Y) command, followed by a purge, sometimes new stuff turns up.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×