# REGEN Command [GstarCAD 2022](Help%20System/GSTARCAD/2022/Index.md) → [Commands](Help%20System/GSTARCAD/2022/Commands/(Commands).md) → [R](Help%20System/GSTARCAD/2022/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:** > ![](GCADICO_REGEN.png) > **Menu:** View \> Gegen > **Ribbon:** / > **Toolbar:** / > **Command:** REGEN > **Alias:** RE **Command Prompts: /**