Property Commands
Property Commands
Property commands are used to view and modify entity properties, including color, layer, linetype, and more.
PROPERTIES - Properties Panel
Open the properties panel to view and modify properties of selected objects.
Command name: PROPERTIES
Alias: PR
Usage
Command: PROPERTIESAfter execution, the properties panel opens, displaying all properties of the selected object.
Modifiable Properties
| Category | Properties |
|---|---|
| General | Color, Layer, Linetype, Linetype Scale, Line Weight, Transparency |
| Geometry | Position, Size, Angle, etc. (varies by object type) |
| Specific | Text content, Block name, etc. (varies by object type) |
Shortcuts
Ctrl + 1Toggle the properties panel- Double-click an object to quickly edit certain properties
MATCHPROP - Match Properties
Copy properties from one object to other objects.
Command name: MATCHPROP
Alias: MA
Usage
Command: MATCHPROP
Select source object: <select the object to copy properties from>
Select target object: <select the object to apply properties to>
Select target object: <continue selecting or press Enter to finish>Copyable Properties
- Color
- Layer
- Linetype
- Linetype Scale
- Line Weight
- Transparency
- Plot Style
Example
// Copy properties from a red line to other lines
MATCHPROP
<select the red line>
<select other lines>CHANGECOLOR - Change Color
Change the color of selected objects.
Command name: CHANGECOLOR
Usage
Command: CHANGECOLOR
Select objects: <select objects to modify>
Enter new color [Truecolor/Colorbook] <ByLayer>: <enter color index or name>Color Values
| Value | Color |
|---|---|
| 1 | Red |
| 2 | Yellow |
| 3 | Green |
| 4 | Cyan |
| 5 | Blue |
| 6 | Magenta |
| 7 | White/Black |
| 256 | ByLayer |
| 0 | ByBlock |
Example
CHANGECOLOR
<select objects>
1 // Change to red
CHANGECOLOR
<select objects>
256 // Change to ByLayerCHANGELAYER - Change Layer
Change the layer of selected objects.
Command name: CHANGELAYER
Usage
Command: CHANGELAYER
Select objects: <select objects to modify>
Enter new layer name <0>: <enter layer name>Example
CHANGELAYER
<select objects>
Dimensions // Move to "Dimensions" layerCHANGELTYPE - Change Linetype
Change the linetype of selected objects.
Command name: CHANGELTYPE
Usage
Command: CHANGELTYPE
Select objects: <select objects to modify>
Enter new linetype name <ByLayer>: <enter linetype name>Common Linetypes
| Linetype Name | Description |
|---|---|
Continuous | Continuous line |
Dashed | Dashed line |
Center | Center line |
Hidden | Hidden line |
Phantom | Phantom line |
ByLayer | ByLayer |
ByBlock | ByBlock |
CHANGELTSCALE - Change Linetype Scale
Change the linetype scale of selected objects.
Command name: CHANGELTSCALE
Usage
Command: CHANGELTSCALE
Select objects: <select objects to modify>
Enter new linetype scale <1.0>: <enter scale value>Description
- Linetype scale affects the dash spacing
- Value > 1: Larger spacing
- Value < 1: Smaller spacing
- Usually used in conjunction with the global linetype scale LTSCALE
CHANGELINEWEIGHT - Change Line Weight
Change the line weight of selected objects.
Command name: CHANGELINEWEIGHT
Usage
Command: CHANGELINEWEIGHT
Select objects: <select objects to modify>
Enter new line weight: <select line weight value>Common Line Weight Values
| Value (mm) | Description |
|---|---|
| 0.00 | Thinnest |
| 0.13 | Thin |
| 0.25 | Standard |
| 0.50 | Medium |
| 1.00 | Thick |
| ByLayer | ByLayer |
| ByBlock | ByBlock |
| Default | Default |
CHANGETRANSP - Change Transparency
Change the transparency of selected objects.
Command name: CHANGETRANSP
Usage
Command: CHANGETRANSP
Select objects: <select objects to modify>
Enter transparency value (0-90) <0>: <enter transparency>Transparency Values
- 0: Opaque
- 100: Fully transparent
- ByLayer: Use layer setting
API Note: Use
entity.transpMgr.setTp100(value)to set transparency (0-100),transpMgr.setValue(-1)to set to ByLayer
PURGE - Purge
Remove unused named objects from the drawing.
Command name: PURGE
Alias: PU
Usage
Command: PURGEAfter execution, the purge dialog opens where you can select the item types to purge.
Purgeable Items
| Type | Description |
|---|---|
| Blocks | Unreferenced block definitions |
| Layers | Unused layers |
| Linetypes | Unused linetypes |
| Text Styles | Unused text styles |
| Dimension Styles | Unused dimension styles |
Notes
- Layer "0" and "Defpoints" cannot be purged
- Blocks referenced by nested references will not be purged
System Variable Commands
CECOLOR - Current Color
Set the current drawing color.
Command name: CECOLOR
Command: CECOLOR
Enter new value <256>: <enter color index>CLAYER - Current Layer
Set the current drawing layer.
Command name: CLAYER
Command: CLAYER
Enter new value <0>: <enter layer name>LTSCALE - Global Linetype Scale
Set the global linetype scale.
Command name: LTSCALE
Command: LTSCALE
Enter new value <1.0>: <enter scale value>Description
The global linetype scale affects the linetype display of all objects:
- Usually set to match the drawing scale
- For a 1:100 drawing, set LTSCALE = 100
OSMODE - Object Snap Mode
Set the object snap mode.
Command name: OSMODE
Command: OSMODE
Enter new value <4133>: <enter mode value>Mode Values (Combinable)
| Value | Snap Type |
|---|---|
| 1 | Endpoint |
| 2 | Midpoint |
| 4 | Center |
| 8 | Node |
| 16 | Quadrant |
| 32 | Intersection |
| 64 | Insertion |
| 128 | Perpendicular |
| 256 | Tangent |
| 512 | Nearest |
| 1024 | Geometric Center |
| 2048 | Extension |
| 4096 | Parallel |
Common Combinations
| Value | Enabled Snaps |
|---|---|
| 4133 | Endpoint + Center + Intersection + Extension |
| 39 | Endpoint + Midpoint + Center + Intersection |
| 0 | Disable all snaps |
ORTHOMODE - Ortho Mode
Toggle ortho mode on/off.
Command name: ORTHOMODE
Command: ORTHOMODE
Enter new value <0>: <0 or 1>- 0: Ortho off
- 1: Ortho on
Shortcut Key
F8 Toggle ortho mode
Script Examples
; Batch modify object properties
CHANGECOLOR
ALL
1 ; Change all to red
; Move objects to a new layer
MAKELAYER
NewLayer
CHANGELAYER
<select objects>
NewLayer
; Set drawing environment
CECOLOR
256 ; Color ByLayer
CLAYER
0 ; Current layer
LTSCALE
100 ; Linetype scale
OSMODE
4133 ; Object snap
; Purge unused items
PURGENext Steps
- Script Execution - Batch execute commands
- Command Reference - View all commands
- Layer Commands - Layer management