# AUTOCONSTRAIN Command
[GstarCAD 2027](Help%20System/GSTARCAD/2027/Index.md) → [Commands](Help%20System/GSTARCAD/2027/Commands/(Commands).md) → [A](Help%20System/GSTARCAD/2027/Commands/A/(A).md)
## Function Description:
Applies geometric constraints to a selection set of objects based on orientation of the objects relative to one another.
## Command Access:
Icon: 
Menu Item: Parametric(P) > AutoConstrain(C)
Ribbon: Parametric > Geometric > Auto Constrain
Toolbar:/
Command Line: AUTOCONSTRAIN
Command Alias :/
## Command Prompts:
```
Select objects or [Settings]: Select the objects that you want to be geometrically constrained or display the Constraint Settings dialog box.
```
**Example:**
1、As shown in the figure, the drawing of geometric shapes is subject to geometric constraints.

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