CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 7863

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.

ACADADTPlantACADMCivilMapACLT
100% *  CAD 
9.9.2023    103167×  

See also:
Tip 13938:ModDXF - utility for bulk modification/display of internal DXF properties in DWG entities.
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.


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   



Featuring:
Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools 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.
TOPlist