Display Commands
Display Commands
Display commands are used to control the view, refresh the display, and adjust display order.
ZOOMEXTENTS - Zoom to Extents
Scales the view to display all graphic objects.
Command name: ZOOMEXTENTS
Alias: ZE
Usage
Command: ZOOMEXTENTSFeatures
- Automatically calculates the extent of all objects
- Adjusts the view to display all content
- Leaves appropriate margins
Shortcut
The same effect can usually be achieved by double-clicking the middle mouse button.
ZOOMFACTOR - Zoom Factor
Sets the zoom scale factor.
Command name: ZOOMFACTOR
Usage
Command: ZOOMFACTOR
Enter zoom factor <1.0>: <enter value>Description
- Value > 1: Zoom in
- Value < 1: Zoom out
- Value = 1: No change
FITMAPVIEW - Fit Map View
Adjusts the view to fit the map display.
Command name: FITMAPVIEW
Usage
Command: FITMAPVIEWUse Cases
Used for GIS or map-related graphic display.
PLAN - Plan View
Switches to plan view (top view).
Command name: PLAN
Usage
Command: PLAN
Enter option [Current UCS(C)/UCS(U)/World(W)] <Current UCS>: <select>Options
| Option | Description |
|---|---|
C | Plan view of current UCS |
U | Plan view of specified UCS |
W | Plan view of World Coordinate System |
REGEN - Regenerate
Regenerates the graphic display of the current viewport.
Command name: REGEN
Alias: RE
Usage
Command: REGEN
Regenerating model.Features
- Recalculates the display of all objects
- Updates curve smoothness
- Refreshes display cache
Use Cases
- After modifying system variables
- When display abnormalities occur
- When curve precision needs to be updated
REGENALL - Regenerate All
Regenerates the graphic display of all viewports.
Command name: REGENALL
Alias: REA
Usage
Command: REGENALL
Regenerating model - all viewports.Difference from REGEN
| Command | Scope |
|---|---|
REGEN | Current active viewport |
REGENALL | All viewports |
DRAWORDERBACK - Send to Back
Moves selected objects to the back of the display order (behind other objects).
Command name: DRAWORDERBACK
Usage
Command: DRAWORDERBACK
Select objects: <select objects to send to back>Use Cases
- Place hatch patterns behind lines
- Adjust the display hierarchy of overlapping objects
DRAWORDERFRONT - Bring to Front
Moves selected objects to the front of the display order (in front of other objects).
Command name: DRAWORDERFRONT
Usage
Command: DRAWORDERFRONT
Select objects: <select objects to bring to front>Use Cases
- Place text above hatches
- Ensure important objects are visible
Display Order Details
Display Order Hierarchy
The display order of objects determines visibility when overlapping:
- Frontmost: Displayed last, covers other objects
- Middle layer: Normal display
- Backmost: Displayed first, covered by other objects
Layer Display Order
In addition to individual objects, the display order of entire layers can be controlled:
LAYDRAWFRONT
<select object> // Bring that layer to front
LAYDRAWBACK
<select object> // Send that layer to backView Operation Shortcuts
| Operation | Shortcut |
|---|---|
| Pan | Middle mouse button drag |
| Zoom | Mouse scroll wheel |
| Zoom to Extents | Double-click middle button |
| Window Zoom | Ctrl + scroll wheel selection |
Display Performance Optimization
Reducing Regeneration
Frequent REGEN calls can affect performance. Optimize with the following approaches:
- Use REGENAUTO to control automatic regeneration
- Turn off layers that don't need to be displayed
- Use proxy graphics to display complex objects
Display Precision
Curve display precision is controlled by the following variables:
| Variable | Description |
|---|---|
VIEWRES | Display precision of circles and arcs |
FACETRES | Display precision of surfaces |
View-Related System Variables
| Variable | Description |
|---|---|
VIEWCTR | Current view center point |
VIEWSIZE | Current view height |
EXTMIN | Drawing extent minimum point |
EXTMAX | Drawing extent maximum point |
LIMMIN | Drawing limits minimum point |
LIMMAX | Drawing limits maximum point |
Script Examples
; Draw graphics
LINE
0,0
1000,0
1000,800
0,800
C
; Create hatch
HATCH
<interior point>
; Adjust display order
DRAWORDERBACK
<select hatch>
; Zoom to extents
ZOOMEXTENTS
; Regenerate
REGENNext Steps
- System Commands - File operations and system control
- Property Commands - Modify object properties
- Command Reference - View all commands