GstarCAD command

CYLINDER command

Create 3D solid cylinders with circular or elliptical bases using precise radius, diameter, height or axis settings.

Command
CYLINDER
Alias
CYL
Tool group
3D
Level
Beginner

What does CYLINDER do?

CYLINDER creates a 3D solid cylinder with a circular or elliptical base. It is commonly used for shafts, pipes, holes, columns and other cylindrical components in solid modelling.

You can define the base using a centre point and radius or diameter, or use alternative methods such as three points, two points or tangent objects. The cylinder height can also be entered directly or defined by points in 3D space.

How to use the command

  1. Type CYLINDER or its shortcut CYL, then press Enter.
  2. Specify the centre point of the base.
  3. Enter the base radius, or choose Diameter.
  4. Enter the required cylinder height.
  5. GstarCAD creates the resulting 3D solid cylinder.
Command: CYL ↵
Specify center point of base or [3P/2P/Ttr/Elliptical]: 0,0,0 ↵
Specify radius of bottom or [Diameter]: 20 ↵
Specify height or [2P/Axis endpoint]: 80 ↵

Key CYLINDER options

The available options provide several ways to control the base, dimensions and direction of the cylinder.

3P
Defines the circular base using three points on its circumference.
2P
Defines the circular base using two specified points.
Ttr
Creates a circular base tangent to two selected objects using a specified radius.
Elliptical
Creates a cylinder with an elliptical rather than circular base.
Diameter
Lets you enter the diameter of the circular base instead of its radius.
2P height
Defines the cylinder height from the distance between two specified points.
Axis endpoint
Defines both the length and direction of the cylinder axis, allowing the cylinder to extend in any 3D direction.

Practical example: create a cylindrical shaft

Suppose you need a shaft with a diameter of 40 mm and a length of 80 mm. Run CYLINDER, specify the base centre and choose Diameter.

Enter 40 for the diameter and 80 for the height. GstarCAD creates a solid cylindrical shaft. You can then combine it with other solids using UNION or use it as cutting geometry with SUBTRACT.

Tip

Use Axis endpoint when the cylinder should not follow the current Z axis. The selected endpoint determines both the direction and length of the cylinder.

All commands Updated 14 October 2026
Continue learning
View all commands

Ready to switch to GstarCAD?

Get personalized advice on licensing, migration, and deployment for your business.

Contact us Buy now

No obligation — reply within 24h

Your Cart

Subtotal

Price does not include local taxes or duties.

Proceed to Checkout

Cookie preferences

Choose which cookies you want to allow. Essential and payment cookies cannot be disabled as they are required for the site to function.

Essential

Required

Core functionality including authentication, shopping cart, and language preferences.

Payment

Required

Required for processing payments securely through Stripe and PayPal.

Analytics

Help us understand how visitors interact with our site to improve the experience.

Marketing

Used to deliver relevant advertisements and measure campaign performance.

Functional

Order attribution and traffic source tracking to help us understand how customers find our store.