hamol89185 Posted August 19, 2021 Posted August 19, 2021 Hello, I have just started to use autocad (version 2021 but I can change if this version is not suitable), usually I find easily answers to my questions, but this time I am blocked on the possibility of carrying out a certain operation in AUTOCAD. I have just received drawings of parts, made in AUTOCAD. The types of data entered are organized by layers (shapes, dimensions, tolerances, colors, material, heat treatment, ...) in order to facilitate the masking of certain data not useful according to the type of exploitation of the document. I use a second software that allows me to import AUTOCAD drawings in DXF format in order to build digitally the parts I received beforehand in the form of a drawing. My problem is that when I export my AUTOCAD drawing (.dwg format) in DXF, all the layers are exported. With all this useless data, my second software is then unable to "digitize" my parts. Is it possible to export only certain layers when exporting to DXF? I know that it is possible to use the layer manager to delete the layers you don't want to keep, then export to DXF, but it is a tedious operation when there are several dozens of layers per part, and irreversible (you have to redo everything if you have deleted one layer too many), so it doesn't suit me. I often want to export the same layers (there is always a common base with the same names), so I would like to be able to easily "deactivate" all the other layers (according to their name), and then export only the remaining/active layers in DXF. If the first part is not possible, I can do it manually, my main problem at the moment is to be able to export to DXF only the layers that are visible/active (without deleting the remaining 5X each time). I tried to search how to do it on the different online guides/forums but I can't find a method that works, or I can't find the right way to search for what I'm trying to do. I thank you and wish you a good day, Peter. Quote
CyberAngel Posted August 19, 2021 Posted August 19, 2021 If the superfluous layer names are always the same, you could create a layer state, show only the bad ones, delete all those objects at once, display the good layers, and export. Of course, once you finished, you'd exit from the drawing without saving. If the superfluous layer names are variable, it gets trickier. You might be able to use masks to select the layers. A simpler option is to turn off the bad layers, select all the good objects, and use WBLOCK to create a "clean" drawing. You could then export to DXF from that drawing. A layer filter might be the best way to manage your layers. Quote
BIGAL Posted August 20, 2021 Posted August 20, 2021 Sometimes lots of layers that you want off have a common sequence eg EX-... So you can do -la off ex-* and they will all be off very simple to do. Quote
eldon Posted August 20, 2021 Posted August 20, 2021 When you DXFOUT, there is an option to select objects. Have you tried that? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.