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
先頭に移動