CHZ20

Can't fillet selected objects because "Lines are non coplanar"?
Annoying drawing with all objects have different Z coordinates?
All layers in an xref drawing have been changed to a single colour but there are still a few objects remain in their own colours?
All blocks renamed individually after using command FLATTEN?
FLATTEN dies with the prompt "bad argument type: lselsetp nil Regenerating model"?
Can't change annotative multileader elevation?
Get rid of all dimension and MultiLeader color overrides?
Change objects in block to a certain layer such as Layer 0?
Set random thickness to polylines and circles to make a quick urban design 3d model?
Change the linetype scale of objects in blocks to show the hidden line effect without explode the block or go into the block editor?
Make changes to all xrefs automatically? 

Please try CHZ20. 

It can make following changes to selected objects / entire drawing / all xrefs:

With the command line function, you can also incorporate it into a script file to run in over all drawings in certain folder.

INTRODUCTION

CHZ20 will go through every object in the selection and change their thickness, Z coordination value, extrusion, colour, linetype, lineweight, material, linetypescale, block subentity layer, etc to a widely accepted standard format. 

You can select objects before using CHZ20. For example, you can filter out all texts first, then use CHZ20. 

Command: CHZ20

Objects to be changed: All / <Select>:

Command line options:

Options in the setting dialogue:

If there is any block in the selectoin, it checks embedded blocks and blocks with attribute after the dialogue closing down. Sometimes it takes a few minutes to do so depending on the complicacy of the drawing.

If the drawing contains xrefs, it prompts after CHZ20 running:

Run CHZ20 in all xrefs? Yes/<No>:

Select Yes to run CHZ20 automatically in all xrefs, including attach and overlay xrefs. It will use current CHZ20 settings.

After CHZ20 running in all xrefs, it goes back to current drawing. You need reload all xref to show the changes.

Just remember changes to xrefs are not able to UNDO from current drawing. You have to retrieve the previous version from the .bak file.

LSP FUNCTION

You can create your own script file or lisp file to batch process thousands of dwg files.
CHZ20 has a command line function which can be used in such script files.
It uses saved settings which has been saved in the last settings dialogue box when you click OK.

(Chz20_cmd T) 

This function runs without both setting dialogue box and object selection option.

(Chz20_cmd 1)

This function runs without setting dialogue box but with object selection option. 

TIPS

1. Please do not select "Set radom Z value" except:

2. If you want to convert all entities in all block definitions to ByBlock or Layer 0, but not affecting other objects in a drawing, please turn on all layers, use command "ERASE", "ALL" to delete all objects in current space first, then use CHZ20 to convert "All" to ByBlock color or Layer 0 (with "Check blocks' definition" selected), then use command "OOPS" to retrieve all objects deleted before and then retrieve previous layer status. 

3. If you only need to change properties of sub-entities inside a block, not properties of the block insert itself, you can make a copy of that block insert before using CHZ20 to change its definition, then delete the copy after the procedure.

4. No all AutoCAD entities have the property of "thickness". A typical example of entities has the thickness property is a polyline.

5. The colour / linetype matching rule file used at last time become the default file at next time or in the command line function.

6. Run dialogue first and press OK to save all settings as default before you run the command line function in the script / lisp file.

7. You can use wildcard in the layer name matching file.

NOTES

EXAMPLE

How to format layer names in a drawing to company standard? 

You need a full registrered CHZ20 to use this function.

Please simply email liugesen@126.com to find out the usage details. 

TRIAL RESTRICTION

Trial version has some restrictions:

Please simply email liugesen@126.com to get a free Registration Code. 

SCREEN SHOT

CHZ20 settings dialogue box

  BEFORE: Objects to be set random thickness

  AFTER: Objects have been set random thickness

DISCUSSIONS

UPDATES

09  Apr 2024 'Check block's definition' remains selected but greys out when no block in the selection.
03  Aug 2023 Resolve the embedded dimension override colour display issue when updating blocks.
29 Apr 2023 Add a new option of "Remove dimension color override".  New user interface.
04 Apr 2023 Allow changing xref  entity layers based on  the matching  rule file.
01 Apr  2023 Allow  wildcard to be used in  the layer name matching file.
11 Jan  2023 Albe to  change  Z Extrusion  Direction from -1 to 1 and leave following objects stay at the original position: Arc, Block,  Ellipse, Polyline, Mtext, Solid, Text..
17 July 2022 Use MS Edge to open webpage when pressing help button.
17 Dec  2021 Only object with ByLayer linetype will be changed when "Object layer linetype" option is selected. Object with other linetypes are not affected.
01  Dec  2021 Fix a bug when Mleader use default blocks, "Check blocks' definition" grey out.
21 Nov 2021 Fix a bug when using "TRUE" in subentity layer matching file.
08 May 2021, Add "INSERT1" as a special subentity option to allow ignoring the last level of block inserts inside a block definition.
10 Jan 2021, Fix a bug when "Retain ByBlock" selected.
Fix a bug when "By File" selected and both source and target color are true color.
14 May 2020, Fix a bug when the last item of "Apply to subentity of" is ignored.
28 Jun 2019, Fix a bug when "Remove Non-Acad Xdata" is selected, it incorrectly removes leader line association.
03 Nov 2018, Fix a bug when "Remove Non-Acad Xdata" is selected, it incorrectly removes dynamic block definition data.
02 Jun 2018, Fix a bug which causes the "ByBlock"  option is not available. Fix a bug when changing splines.
15 Dec 2017, 2 functions added: "Convert gradient fill to solid hatch" and "Remove Non-Acad Xdata".
29 Apr 2016, Fixed a bug when changing xrefs.
26 Apr 2016, Fixed a bug when changing object color.
24 Mar 2016, Able to change all true color objects to the closest index color.
22 Dec 2015, Add a command line function (CHZ20_cmd 1) to disable the setting dialogue box but allow object selection.
17 Mar 2015, Fixed a typo in the dialogue box.
15 Jan 2015, Able to change dynamic blocks definition.
18 Nov 2014, Able to verify truecolor subentities and change their layers based on a layer matching file.
Allow space in new layer name in the layer matching file.
Allow use both upper and lower case characters in new layer names.
17 Nov 2014, Resolved an issue when changing dynamic blocks.
Resolved an issue when changing MLeaders.
12 Nov 2014, Resolved an issue with a missing function when processing wipeouts & images.
06 Nov 2014, Resolved an issue when previous layer name matching file does not exist.
Add a new rule to layer name matching file which allow select all other objects except rules above.
Resolved an issue when number is used as layername such as Layer 0.
Provide a solution to keep objects on Layer defpoint while change all other objects to Layer 0.
26 July 2014, Able to change Z value of Wipeout and Image objects to 0.
18 July 2014, Able to change block subentity layer according to its properties such as color, linetype, etc which is defined in a txt file.
30 Jun 2014, Able to run CHZ20 in all xrefs automatically.
21 May 2014, Skip "Select matching list file" dialogue in the command line function
if ByFile is not selected previously as default Color or Linetype option.
18 May 2014, Resolved an issue when using "All" to select objects.
15 May 2014, When "Check block's definition" is selected, changes to properties only affect selected block inserts.
24 Dec 2013, Resolved an issue when 'Change color to' selected no sub-option is assigned as the default.
Resolved an issue whenc Cancel button is pressed in "Select matching list file" dialogue.
Allow select objects before using CHZ20.
31 Oct 2013, Resolved an issue when changing extrusion of ellipse object.
25 Oct 2013, Save previous settings as default.
Command line function uses saved settings.
Able to only apply changes to user selected subentity types.
Remove the summary pop-up box at the end.
Resolved an issue when changing MLeader color.
Resolved an issue when changing LWPolyline with 1e+99 Z coordinate.
11 July 2013, Compatible with AutoCAD 2007 and earlier versions.
07 Mar 2013, Resolved an issue which make AutoCAD idle in a drawing with errors.
25 Feb 2013, Resolved an issue which stops the routine in a drawing with errors.
12 Feb 2013, New item "Object layer linetype" added to Linetype  changing options.
02 Jan 2013, New option added. Able to change object transparency to ByLayer, ByBlock, 0, 25, 50, or 75
20 Nov 2011, Resolved an issue in International Versions.
08 Nov 2011, Resolved an issue with drawing has invalid LwPolyline entities.
28 Oct 2011, Resolved an issue with updated dimension styles when related dimensions are on locked layer.
29 Jul 2011, Able to change z-value of annotative Mleaders, Blocks, Tolerances, and Attributes in current annotative scale.
If "Set Z to 0" is selected, it will project extruded objects to WCS as following, even without selecting the option of "Set extrusion to 0":
Line, LWPolyline, 3dPolyline, 3dPolyline, PolygonMesh, PolyFaceMesh, Ray, Xline, Mline, Helix
Able to change property of Jogged dimension entities.
Able to change Z-value of Table entities.
If "Change color to" is selected, it will audit selected old-style polyline and ensure Vertex and Seqend color match polyline color.
Able to remove true color override in Mtext and MLeader text contents.
Able to remove Mleader text color override when a color is set to the text style, not the text itself.
Able to set random thickness to old-style polylines
Able to change Z value and extrusion of Mline and Helix objects to 0.
Setting dialogue interface updated
Fixed a few bugs.
01 Jul 2011, Resolved an issue with anonymous blocks display updating and counting after changes.
AEC objects are not valid to change Lineweight
Changing block entities' layer doesn't affect objects on turn-offed layer
Able to change the color of block contained in selected Mleader objects
24 Jun 2011, New Options added: Put block subentities to selected layer, Set random thickness to objects,
Change object Lineweight, Material, and Linetype scale
30 May 2011, A few bugs fixed. Speed up at block checking and attribute checking processes
20 May 2011, A bug fixed.
14 Apr 2011, A bug fixed; Able to change Arc objects, all embedded block definition, and attributes with overwritten properties.
Process indicator added in block checking and updating.
14 Jan 2011, A few bugs fixed
23 Dec 2010, A few bugs fixed
12 Nov 2010, Changes apply to sub-object in TOLERANCE. Z value changes apply to all annotative objects except MultiLeaders.
23 Oct 2010, Add (CHZ20_CMD T) command line function to be used in a script file.