# REGEN Command
[GstarCAD 2025](Help%20System/GSTARCAD/2025/Index.md) → [Commands](Help%20System/GSTARCAD/2025/Commands/(Commands).md) → [R](Help%20System/GSTARCAD/2025/Commands/R/(R).md)
## Function Description:
This command is used to regenerate the whole drawing from the current viewport.
This command can regenerate the whole drawing from the current viewport and recalculate all screen coordinates of objects. As well it can regenerate drawing database index to optimize the display and object selection performance.
## Command Access:
> **Icon:** 
> **Menu:** View > Regen
> **Ribbon:** /
> **Toolbar:** /
> **Command:** REGEN
> **Alias:** RE
**Command Prompts: /**
---
**Related References:**
- [Commands about Controlling Object Display](Help%20System/GSTARCAD/2025/Commands/00%20Command%20Groups/Commands%20about%20Controlling%20Object%20Display.md)
**Related Tasks:**
- [To Turn On or Off the Display of Solid Fills](Help%20System/GSTARCAD/2025/Commands/01%20Procedures/To%20Turn%20On%20or%20Off%20the%20Display%20of%20Solid%20Fills.md)
- [To Turn On or Off the Display of Text](Help%20System/GSTARCAD/2025/Commands/01%20Procedures/To%20Turn%20On%20or%20Off%20the%20Display%20of%20Text.md)
---
[Original help](https://www.gstarcad.net/help/GstarCAD_2025_en-US/detail/commandReferences_R/REGEN.html) · © Gstarsoft Co., Ltd.