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

CAD tip CAD tip # 13858:

Question CAD 
 %  platform  category 
Q - question

Is there also a SETBYBLOCK command?

A - answer With the SETBYLAYER command you can set the selected properties of selected DWG drawing objects (including objects nested in blocks) to the value "ByLayer", i.e. so that they inherit the property of the layer in which they are inserted. For example, their color from the layer color.

Sometimes a related SETBYBLOCK command would be useful, which would set the properties of objects to "ByBlock" in this way, in bulk, and so e.g. all objects in a block or array would mimic the properties of the main object - e.g. block color, array color.

Such command does not exist in AutoCAD but it can be added into your AutoCAD or AutoCAD LT using the freeware LISP utility SetByBlock. Download it from Download, load it into AutoCAD using APPLOAD and run it by typing SETBYBLOCK.

Select the objects to change and specify which properties do you want to set to ByBlock (by default: Color, Linetype and Lineweight - can be preset with the LISP variable _SetByBlockMode similarly to SETBYLAYERMODE). Specify whether to process nested objects in blocks and arrays as well. The utility will then bulk change the specified properties of the selected entities to ByBlock.

100% *  CAD 
9.9.2023    739×  

See also:
Tip 13694:Individual modification of elements in AutoCAD dynamic arrays.
Tip 12837:RenameCSV - rename layers, blocks, layouts, views, linetypes using Excel tables
Tip 10921:The tolerance frame is displayed or printed in different line weight.
Tip 10574:Four methods for exploding blocks in AutoCAD.
Tip 9153:Arrowheads or other parts of dimensions are not printed.

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   

Simply link AutoCAD LT blocks to Excel table data.
Excellink LT 2006 More info

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.