# DCALIGNED 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 distance between two points on an object or between two points on different objects.
## Command Access:
Icon: 
Menu Item: Parametric(P) > Dimensional Constrains(D) > Aligned(A)
Ribbon: Parametric > Dimension > Aligned
Toolbar: /
Command Line: DCALIGNED
Command Alias:/
## Command Prompts:
```
Specify first constraint point or [Object(O)/Point & line(P)/2Lines(2L)]
<Object>: 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、Adds aligned constraints by selecting two ends of a line or two points on different objects as shown.
2、The distance between the object's endpoints is constrained.

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