Not every line you see in a CAD drawing is the same type of object. A straight edge may be a LINE, several connected segments may form a PLINE, a flowing shape may be a SPLINE, while an apparently endless reference line may actually be an XLINE. Choosing the correct object type makes drawings easier to edit, measure, hatch and prepare for later operations such as REGION, EXTRUDE or CNC export.
What do PLINE, SPLINE and XLINE actually mean?
The names become easier to remember once you understand what they describe.
| Command | Short meaning | Think of it as |
|---|---|---|
LINE | Line | One independent straight segment |
PLINE | Polyline | Several connected segments acting as one object |
SPLINE | Smooth spline curve | A free-form flowing curve |
XLINE | Construction line | An infinite reference line extending both ways |
RAY | Ray | A reference line infinite in one direction |
ARC | Circular arc | A precise part of a circle |
PLINE is short for Polyline. SPLINE is not simply an abbreviation; it is the name used for a smooth mathematical curve. XLINE is GstarCAD’s construction-line command and creates a line that extends infinitely in both directions.
When should you use LINE?
LINE is the simplest choice for independent straight geometry. Specify a start point and an end point, and GstarCAD creates a straight line segment.
You can continue drawing several segments during the same command, but each segment remains a separate object. This is the main difference from PLINE.
Use LINE when:
- individual segments need to remain independent,
- you are drawing simple construction geometry,
- different segments may later need different properties,
- you do not require one continuous boundary.
Why is PLINE often better for boundaries?
PLINE creates a polyline: multiple connected segments stored as one object. A polyline can contain both straight and arc segments and can also have a defined width.
This makes it particularly useful for:
- room and floor boundaries,
- road or kerb outlines,
- CNC profiles,
- closed shapes for hatching,
- profiles that will later become regions or 3D geometry.
For example, if you draw a rectangular outline using four separate LINE objects, selecting one edge selects only that edge. If you create the same outline as a closed PLINE, selecting it selects the complete boundary.
Tip
If the geometry represents one logical boundary, path or contour, a PLINE is often more useful than a collection of separate lines.
When should you use SPLINE?
SPLINE creates a smooth curve that passes through or near a series of specified points. It is useful where a circular arc or series of straight segments cannot describe the required form naturally.
Typical examples include:
- product and industrial design contours,
- landscape paths,
- organic architectural forms,
- vehicle or furniture profiles,
- smooth transition curves.
A spline is therefore ideal when the priority is a smooth free-form shape. It is not automatically the best choice for every curved object, however. If the geometry must have an exact constant radius, use ARC instead.
Watch out
Do not replace simple lines and arcs with splines unnecessarily. More complex geometry can be harder to edit, manufacture or exchange with other systems. Use a spline when the shape genuinely needs a free-form curve.
What is XLINE used for?
XLINE creates an infinite construction line that extends in both directions. It is intended mainly as reference geometry rather than as a finished edge of the design.
Useful XLINE options include horizontal, vertical, angle, bisect and offset. This makes the command excellent for setting up:
- building axes,
- structural grids,
- projection lines between views,
- symmetry references,
- temporary alignment geometry.
Because an XLINE is infinite, you do not need to guess how long a construction line should be before using it as a reference.
What is the difference between XLINE and RAY?
Both are useful construction objects, but their direction is different.
XLINE extends infinitely in both directions. RAY starts at one defined point and extends infinitely in one direction.
Use XLINE for full axes and projection references. Use RAY when the starting point itself matters, for example when projecting geometry outward from one origin.
Where does ARC fit in?
ARC creates part of a true circle. This is different from SPLINE, which creates a free-form smooth curve.
If a mechanical component requires a radius of exactly R50, use an arc or circle-based construction. If you are designing a flowing body profile without one constant radius, a spline may be more appropriate.
Practical example: drawing a product outline
Suppose you are drawing the side profile of a machine cover measuring approximately 800 × 400 mm.
- Use
XLINEto establish the main horizontal and vertical reference axes. - Use
LINEfor individual straight internal construction