Sometimes imported or copied geometry is in the right shape but completely wrong in position, angle or scale. You could fix it with three separate commands: MOVE, then ROTATE, then SCALE. GstarCAD’s ALIGN command can combine those operations into a single workflow by matching known points on one object with corresponding points in the drawing. It is particularly useful for imported DWGs, PDF geometry, survey information and components that need to fit existing geometry precisely.
What does ALIGN actually do?
ALIGN positions selected objects by matching source points on the objects being moved with destination points where those points should end up.
The number of point pairs you provide determines what GstarCAD can do.
| Point pairs | Result | Typical use |
|---|---|---|
| 1 pair | Move | Place one known point onto another |
| 2 pairs | Move + rotate + optional scale | Match an object to two known reference points |
| 3 pairs | 3D move and rotation | Align geometry in three-dimensional space |
For most 2D work, the most useful option is two point pairs. This is where ALIGN can replace several separate editing commands.
How does two-point ALIGN work?
Imagine an imported component is positioned at the wrong angle. Two mounting holes on that component should match two mounting points already shown in your drawing.
You simply tell GstarCAD:
- this first point should go here,
- this second point should go here.
From those two pairs, GstarCAD can determine the required movement and rotation. It can then optionally scale the selected geometry so that the distance between the source points matches the distance between the destination points.
- Type
ALIGNand press Enter. - Select the geometry you want to align and press Enter.
- Select the first source point on the object.
- Select its corresponding destination point.
- Select the second source point.
- Select its corresponding destination point.
- Press Enter instead of specifying a third point.
- Choose whether the selected objects should also be scaled.
If scaling is not required, choose No. The objects will still be moved and rotated into alignment.
Why two points are so powerful
One point tells GstarCAD where the object should move. The second point provides the direction and distance needed to determine its rotation and, if requested, its scale.
Practical example: fix an imported drawing
Suppose you receive a supplier’s machine layout. The imported geometry is rotated, offset from your project origin and slightly smaller than it should be.
Your project contains two known fixing points exactly 2400 mm apart. The corresponding points in the imported geometry are only 2000 mm apart.
You could calculate the scale factor:
2400 ÷ 2000 = 1.2
Then use SCALE, calculate the required rotation angle, use ROTATE, and finally use MOVE.
With ALIGN, you do not need to calculate any of those values manually.
- Run
ALIGNand select the imported machine geometry. - Pick the first fixing point on the imported geometry as source point 1.
- Pick the correct project fixing point as destination point 1.
- Pick the second imported fixing point as source point 2.
- Pick the second project fixing point as destination point 2.
- Press Enter.
- When GstarCAD asks whether to scale the objects based on the alignment points, choose Yes.
The imported geometry is moved, rotated and scaled so that the two known points coincide with the project references.
Why is ALIGN especially useful after PDFIMPORT?
Imported geometry is one of the best applications for ALIGN. A PDF, consultant drawing or older CAD file may contain usable geometry but may not match your project’s position, orientation or size.
If you are working with PDF drawings, first follow our PDF to Editable DWG: A Practical PDFIMPORT Workflow to convert and inspect the geometry. Once you have two reliable reference points, ALIGN can often position the imported content faster than separate move, rotate and scale operations.
When should you choose No for scaling?
Do not automatically answer Yes to the scaling prompt.
If the selected geometry is already at the correct size and only its position and angle are wrong, choose No. GstarCAD will move and rotate it while preserving its current dimensions.
Choose Yes only when the distance between your source reference points should be changed to match the corresponding destination distance.
Check your point order
Source and destination points must correspond correctly. Reversing the order of the second pair can rotate or flip the object into an unexpected position. Use precise Object Snaps such as Endpoint, Centre or Intersection whenever possible.
What about three alignment points?
ALIGN can also use three source and destination point pairs. This is mainly useful in 3D because three points can define how an object should be positioned and oriented in three-dimensional space.
For ordinary 2D drafting, two point pairs are usually all you need. Scaling with ALIGN is available when working with two point pairs.
ALIGN vs MOVE, ROTATE and SCALE
| Situation | Best approach |
|---|---|
| Only position is wrong | MOVE or one-point ALIGN |
| Only angle is wrong and angle is known | ROTATE |
| Only size is wrong and scale factor is known | SCALE |
| Position and angle must match two known points | ALIGN |
| Position, angle and size must match reference geometry | ALIGN with scaling |
When should you use ALIGN?
Use ALIGN whenever you know where two points on an object should end up but do not want to calculate the required translation, rotation angle or scale factor manually.
The productivity principle is simple: show GstarCAD where two known points are and where they should be. For imported drawings, machine components, site geometry and mismatched references, that can turn three separate editing operations into one accurate command.