ChangeColor
Win32 和 64, 繁體中文一般使用方式說明
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
聯絡我們
作者/公司資訊
支援資訊
If you have any queries, please email to paul@hap.nu.
版本歷程
版本號碼 | 版本說明 |
---|---|
1.0.0 |
Added 2020 support |