GstarCAD command

OCMP command

Compare CAD objects or DWG files, highlight geometric differences and display or export the results using GstarCAD Graphic Compare.

Command
OCMP
Alias
—
Tool group
Utilities
Level
Advanced

What does OCMP do?

The OCMP command opens the Graphic Compare tool in GstarCAD. It compares selected drawing objects or geometry from two DWG files and highlights differences using configurable colours and properties. Unlike standard drawing comparison, Graphic Compare can show detailed geometric changes directly in the current workspace, making it especially useful when reviewing modified objects.

How to use the command

  1. Type OCMP and press Enter, or select Express > Drawing Tools > Graphic Compare.
  2. In the Graphic Compare dialog box, choose whether to compare selected objects or two drawing files.
  3. For object comparison, click Select base objects and base point, select the original geometry and specify its base point.
  4. Click Select compare objects and base point, then select the revised geometry and its base point.
  5. Under Output Drawing, choose Insert current document or Export to a file.
  6. Use Output settings to configure the comparison colours, layers and linetypes.
  7. Confirm the settings and, when inserting into the current drawing, specify the location for the comparison result.
Command: OCMP ↵
Graphic Compare: Select Objects
Select base objects and base point: select original geometry and base point
Select compare objects and base point: select revised geometry and base point
Output Drawing: Insert current document
Output settings: configure comparison properties
Insertion point: pick a location

Key OCMP options

The Graphic Compare dialog box provides several ways to select, compare and display drawing geometry.

Select Objects
Compares two sets of drawing objects using their specified base points.
Specify File
Allows you to choose two DWG files as the base and comparison drawings.
Insert current document
Places the comparison result directly into the current drawing workspace.
Export to a file
Saves the compared geometry to a separate drawing file.
Output settings
Configures visual properties, including layer, colour and linetype, to distinguish geometric differences.

Practical example: comparing modified mechanical parts

Imagine a mechanical drawing containing two versions of a mounting plate. The original plate measures 200 × 120 mm, while the revised version includes a repositioned mounting hole and a longer slot.

Start OCMP and select the original geometry as the base object set. Select the revised geometry as the comparison set, using corresponding base points for alignment.

Choose Insert current document and configure the output colours. GstarCAD displays the comparison in your drawing, helping you identify the altered hole position and slot geometry without examining every line manually.

Tip

When comparing selected objects, choose matching base points to align both geometry sets accurately. Use contrasting output colours to make small geometric changes easier to identify.

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