# DCHORIZONTAL Command [GstarCAD 2027](Help%20System/GSTARCAD/2027/Index.md) → [Commands](Help%20System/GSTARCAD/2027/Commands/(Commands).md) → [D](Help%20System/GSTARCAD/2027/Commands/D/(D).md) ## Function Description: Constrains the X distance between points on an object, or between two points on different objects. ## Command Access: Icon:  ![](Help%20System/GSTARCAD/2027/assets/e195add87eab6a1a7fb56f788d012a678eb89b45304c9ac2ecb813c51f490258.png) Menu Item: Parametric(P) > Dimensional Constrains(D) > Horizontal(H) Ribbon: Parametric > Dimension > Horizontal Toolbar: / Command Line: DCHORIZONTAL Command Alias:/ ## Command Prompts: ``` Specify first constraint point or [Object(O)]: Specifies the first point of the object to be constrained. ``` ``` Specify second constraint point: Specifies the second point of the object to be constrained. ``` ## Operation Steps: 1、Select both ends of the horizontal line as shown to add horizontal constraints. 2、The horizontal distance between the object's endpoints is constrained. ![](Help%20System/GSTARCAD/2027/assets/4bcc682d27a1b66a0366de4622e449805195ab93d2f983fe956f980bdd914ee0.png) --- [Original help](https://www.gstarcad.net/help/GstarCAD_2027_en-US/detail/commandReferences_D/DCHORIZONTAL.html) · © Gstarsoft Co., Ltd.