# GCHORIZONTAL Command
[GstarCAD 2027](Help%20System/GSTARCAD/2027/Index.md) → [Commands](Help%20System/GSTARCAD/2027/Commands/(Commands).md) → [G](Help%20System/GSTARCAD/2027/Commands/G/(G).md)
## Function Description:
Aligns a line or a pair of points to be parallel to the X-axis of the current coordinate system.
## Command Access:
Icon:
Menu Item: Parameters > Geometry > Horizontal
Ribbon: Parameters > Geometry > Horizontal
Toolbar: /
Command Line: GCHORIZONTAL
Command Alias: /
## Command Prompts:
```
Select object or [Two points (2p)]: Select the object that needs to be parallel to the X-axis or specify two points.
```
## Operation Steps:
1、As shown in the figure (which is not provided here), select the line to apply the horizontal constraint.
2、The line will be aligned to be parallel to the X-axis.

---
[Original help](https://www.gstarcad.net/help/GstarCAD_2027_en-US/detail/commandReferences_G/GCHORIZONTAL.html) · © Gstarsoft Co., Ltd.