CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 8604

CAD tip CAD tip # 13435:

Question CAD 
 %  platform  category 
Q - question

Bulk setting of layer properties according to the object in that layer.

A - answer If you receive an AutoCAD DWG drawing containing all its layers set to "Color: White, LineType: Continuous, Thickness: ByLayer", and the objects in the layers are individually colored to some common color and linetype, you can use the PropByObject tool to set the properties of the layers according to the properties of the first object in the specific layer. You can then return the properties of those objects to "SetByLayer".

The PropByObject command is a part of the PropByLayer utility - see Download. Once loaded (APPLOAD), you can run it by typing the command name.

The command prompts you to select a list of layers:

Process layers [All/Except 0/noXrefs/White/Names]

i.e.: all, all except layer 0, all except xrefs, white/unconfigured layers only, or a list or mask of layer names to process.

The properties color (including truecolor), line type, and line thickness are transferred.

100% *  CAD 
16.8.2022    2347×  

See also:
Tip 13858:Is there also a SETBYBLOCK command?
Tip 13550:Text with automatic label of the layer it lies in.
Tip 13442:How to easily count the number of certain objects in a DWG drawing in AutoCAD LT?
Tip 12705:How to disable osnaps for xref objects?
Tip 12279:PropByLayer - an inverse function to SetByLayer.

Back   All CAD Tips

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

DwgTextTranslator translates a series of drawings from one language to another using MS Access.
Download a fully functional trial version.

Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.