# REGEN Command [GstarCAD 2027](Help%20System/GSTARCAD/2027/Index.md) → [Commands](Help%20System/GSTARCAD/2027/Commands/(Commands).md) → [R](Help%20System/GSTARCAD/2027/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:** ![](Help%20System/GSTARCAD/2027/assets/2e4231bc1b98e26a934d7e4e2a340c9dcb9016a380ddaeeb8e1262ca0f4d106e.png) > **Menu:** View > Regen > **Ribbon:** / > **Toolbar:** / > **Command:** REGEN > **Alias:** RE **Command Prompts: /** --- **Related References:** - [Commands about Controlling Object Display (GstarCAD 2026)](../../../2026/Commands/00%20Command%20Groups/Commands%20about%20Controlling%20Object%20Display.md) **Related Tasks:** - [To Turn On or Off the Display of Solid Fills (GstarCAD 2026)](../../../2026/Commands/01%20Procedures/To%20Turn%20On%20or%20Off%20the%20Display%20of%20Solid%20Fills.md) - [To Turn On or Off the Display of Text (GstarCAD 2026)](../../../2026/Commands/01%20Procedures/To%20Turn%20On%20or%20Off%20the%20Display%20of%20Text.md) --- [Original help](https://www.gstarcad.net/help/GstarCAD_2027_en-US/detail/commandReferences_R/REGEN.html) · © Gstarsoft Co., Ltd.