ChangeColor

ChangeColor

Win32 和 64, 简体中文

hap
Changes colors of entities in a drawing to any other color.

常规使用说明

How to use ChangeColor

The changecolor app will allow you to change the colors of all entities/objects in a drawing.
You can change a color from BYLAYER, BYBLOCK and vice versa.
It is also possible to change the colors of entities inside the blocks in the drawing.
You can use custom script or script routine to change the color of the entities. 

Run the command ‘changecolor’ and it will display main dialog box.
To know more about Main dialog box please refer Main dialog-chapter.

If you want to use your own script, then add the following routines to your script.
(load "changecolor")
(changeallcolors "Oldcolor" "Newcolor")

Use the quotation-marks "" for the colors to avoid "bad argument type: stringp".

If you want to change color Blue (colornumber 5) to Cyan (colornumber 4) then make the following modification.
(load "changecolor")
(changeallcolors "5" "4")

The next example will change all colors that are BYLAYER to the color red.
(load "changecolor")
(changeallcolors "BYLAYER" "1")

If you don't want to change the colors inside the blocks in a drawing use the following routine.
(load "changecolor")
(setq cc-var-inside-block nil)
(changeallcolors "Oldcolor" "Newcolor")

Setting the variable cc-var-inside-block "AFTER" loading the change color will give you control over changing entities inside the blocks.

屏幕快照

命令

功能区/工具栏图标 命令 命令描述

ChangeColor

The command ChangeColor will launch the ChangeColor dialog

安装/卸载

The installer that ran when you downloaded this app/plug-in from Autodesk App Store will start installing the app/plug-in. OR, simply double-click the downloaded installer to install the app/plugin. You may need to restart the Autodesk product to activate the app/plug-in. To uninstall this plug-in, exit the Autodesk product if you are currently running it, simply rerun the installer, and select the "Uninstall" button. OR, click Control Panel > Programs > Programs and Features (Windows 7/8/8.1/10) and uninstall as you would any other application from your system.

其他信息

You can use ChangeColor in a script file, so that you can change the colors of multiple drawings.
Use the following lines in your own script file:
(load "changecolor")
(changeallcolors "Oldcolor" "Newcolor") 

Use quotation-marks "" for the colors or you will get "bad argument type: stringp". 
"Oldcolor" is the existing color number.
"Newcolor" is the number that you want to change the color.

If you want to change color Blue (colornumber 5) to Cyan (colornumber 4) then make the following modification.
(load "changecolor")
(changeallcolors "5" "4")

Add these lines to a text file (be careful, do not add empty lines).
Save this text file for example as myscrip1.scr.
Please refer sample file myscript1.scr inside thee bundle.

In AutoCAD® type the command "script" and in the following dialog open myscript.scr
The blue colors in the drawing will change to cyan.
You can also use the menu option "Tools->Run" script to open and run myscript.scr. 

The next example will change all colors that are BYLAYER to the color red.
(load "changecolor")
(changeallcolors "BYLAYER" "1") 

If you don't want to change the colors inside the blocks in a drawing then set the variable cc-var-inside-block to nil. This will prevent the program from entering blocks inside the drawing. The default value of cc-var-inside-block is T for true. 

For example: 
(load "changecolor")
(setq cc-var-inside-block nil)
(changeallcolors "Oldcolor" "Newcolor") 
Setting the variable cc-var-inside-block "AFTER" loading change color will give you control over changing entity's inside blocks.
See file myscript2.scr

已知问题

None

联系

公司名称: hap
公司 URL: http://www.hap.nu
支持联系人: paul@hap.nu

作者/公司信息

hap

支持信息

If you have any queries, please email to paul@hap.nu.

版本历史

版本号 版本描述

1.0.0

Added 2020 support
回到页首