GstarCAD command

TRIM command

Command
TRIM
Alias
TR
Tool group
Modify
Level
Beginner

What does TRIM do?

TRIM removes unwanted portions of drawing objects by cutting them back to one or more boundary edges. It is commonly used to clean up intersecting geometry, shorten construction lines and finish corners without manually redrawing objects. In GstarCAD, the command can trim objects such as lines, arcs, circles, unclosed polylines and rays.

How to use the command

  1. Type TRIM or its shortcut TR, then press Enter.
  2. Select one or more objects to use as cutting edges, then press Enter. You can also press Enter immediately to use all suitable objects as boundaries.
  3. Select the portion of the object that you want to remove.
  4. Continue selecting additional portions if required, then press Enter to finish.
Command: TR ↵
Select objects or <select all>: select cutting edge ↵
Select object to trim or shift-select to extend: select unwanted segment ↵
Select object to trim or shift-select to extend: Enter

Key TRIM options

These options help you work faster when several objects need to be edited.

Fence
Lets you define a fence path and trim multiple objects crossed by that path.
Crossing
Uses a crossing selection so that objects inside or crossed by the selection area can be processed.
Shift-select to extend
Hold Shift while selecting an object to temporarily extend it instead of trimming it.

Practical example: clean up a wall intersection

Suppose a horizontal wall line is 4250 mm long but should stop at a vertical wall boundary at 4000 mm. Start TRIM, select the vertical wall line as the cutting edge and press Enter. Then click the 250 mm portion of the horizontal line that extends past the boundary. GstarCAD removes the excess segment while keeping the remaining wall line ending exactly at the selected boundary.

Tip

When working in a complex drawing, select only the cutting edges you actually need instead of using every object as a boundary. You can also hold Shift while trimming to temporarily switch to extending.

All commands Updated 25 September 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.