You often need to rotate an object without knowing the actual angle. An imported component may need to follow an existing wall, a symbol may need to match an inclined line, or copied geometry may simply be sitting at the wrong orientation. You could measure both angles, calculate the difference and then run ROTATE, but GstarCAD provides a much faster method. The Reference option lets you define the object’s current direction and then tell GstarCAD exactly which direction it should match.
What does ROTATE with Reference do?
A normal ROTATE operation asks you for a rotation angle. If you enter 30, the selected objects rotate by 30 degrees around the chosen base point.
The Reference option works differently. Instead of entering the amount of rotation, you define:
- the object’s current reference angle, and
- the new angle it should match.
GstarCAD calculates the difference automatically and rotates the object by the required amount.
| Method | You provide | Best for |
|---|---|---|
Normal ROTATE | Rotation amount | Known angles such as 45° or 90° |
ROTATE + Reference | Current direction and target direction | Matching unknown existing angles |
Why is Reference better than measuring the angle first?
Suppose an imported component is currently sitting at approximately 17 degrees, while the line it should follow is approximately 38 degrees.
You could measure both values and calculate:
38° − 17° = 21°
Then rotate the component by 21 degrees.
But there is no need to know whether the actual angles are exactly 17 and 38 degrees. With Reference, you can simply select the existing directions directly from the drawing and let GstarCAD calculate the difference.
The key idea
Do not ask, “How many degrees must this object rotate?” Instead ask, “Which direction is it pointing now, and which direction should it point afterwards?”
How do you rotate an object to match another line?
The most useful workflow is to define both the existing and target angles using points from geometry already in the drawing.
- Type
ROTATEorROand press Enter. - Select the objects you want to rotate and press Enter.
- Specify the rotation base point.
- Choose Reference or enter
R. - Define the current reference angle by selecting two points along the object’s existing direction.
- When prompted for the new angle, choose the Points option.
- Select two points along the line or geometry whose angle you want to match.
GstarCAD calculates the difference between the two directions and rotates the selected geometry around the specified base point.
Practical example: align an imported machine component
Suppose a machine component has been copied from another DWG. Its mounting edge is at an unknown angle, but it needs to align exactly with an inclined reference line in your current project.
You do not know the angle of either line and there is no reason to measure them.
- Run
ROTATE. - Select the imported machine component.
- Use one end of its mounting edge as the base point.
- Choose Reference.
- Pick two points along the component’s mounting edge to define its current direction.
- Choose Points for the new angle.
- Pick two points along the project’s inclined reference line.
The machine component rotates until its mounting edge has exactly the same angle as the project reference.
No angle measurement, subtraction or trial-and-error rotation is required.
Why does the base point matter?
The base point is the centre around which the selected objects rotate. Choosing it correctly is therefore important.
If one point of the object must remain fixed while the rest rotates into alignment, use that location as the base point.
For example, if the lower-left corner of a steel plate is already positioned correctly but its upper edge has the wrong angle, use that lower-left corner as the rotation base point. The corner remains fixed while the rest of the plate rotates around it.
Use precise Object Snaps
When defining reference directions, use reliable points such as Endpoint, Midpoint, Centre or Intersection. Approximate clicks can introduce a small angular error even though the Reference workflow itself is precise.
When is ALIGN a better choice?
ROTATE with Reference is ideal when the main problem is orientation. It changes the angle while rotating around your chosen base point.
If the object also needs to move to a new position, or must match both position and scale using two known point pairs, ALIGN may be faster.
See our ALIGN: Move, Rotate and Scale in One Command guide for that workflow.
| Problem | Recommended method |
|---|---|
| You know the exact rotation amount | ROTATE |
| You need to match an existing unknown angle | ROTATE + Reference |
| Position and angle must both match reference geometry | ALIGN |
| Position, angle and scale must all match | ALIGN with scaling |
Where is ROTATE with Reference especially useful?
The Reference option is particularly useful with imported geometry because drawings received from consultants, PDFs or older projects may contain objects whose actual orientation is unknown.
It is also useful for:
- aligning furniture with angled walls,
- rotating mechanical components onto inclined surfaces,
- matching symbols to pipes or cable routes,
- aligning copied details with existing geometry,
- correcting geometry imported at an unknown angle.
What is the fastest workflow to remember?
The complete process can be remembered as:
ROTATE
↓
Select object
↓
Choose base point
↓
Reference
↓
Pick current direction
↓
Points
↓
Pick target direction
The productivity rule is simple: if the target angle already exists in the drawing, use it as your reference instead of measuring it. GstarCAD can calculate the required rotation for you, making Reference one of the most useful options hidden inside the standard ROTATE command.