Drawing Sync Help

DWP Drawing Patch

A .dwp file is a plain text file that details changes made to a drawing. The patch includes objects that are updated, deleted, or added (appended).

Drawing patches can be created for your current drawing session, with your previous save, or from history.


DWP DRAWING PATCH

Patch data are drawing exchange group codes and values.

From AutoCAD, a snapshot is also loaded when you create a patch. You can double-click in the patch to select a matching handle in the drawing database.

If you plan to share the patch for import by others, save it. Otherwise close the app without saving when you are finished viewing.

Reference

The purpose of this patch file reference is to help you read a patch and understand the changes made to your drawing. Unless you are experienced with drawing exchange group codes and values, editing is not recommended.

Item type

Each line in a patch file starts with a handle or character code. A handle is a hex sequence (1-9 or A-F) that identifies an object in the drawing database.

From the example shown above: 3D and 1B5  are handles for a layer and a line. The character codes are:

To find an entity in a drawing you can type zoom object (handent "1B5") in the Command line, using the handle from your patch.

Header

; C:\drawings\Elevation-EAST-26050.dwg (ef17640) (drawing)
; C:\drawings\.dx\dxg\Elevation-EAST-26050.dxg (dce438f) (patch)
; C:\drawings\.dx\dxg\Elevation-EAST-a2b18.dxg (e23f1f9) (base)

The lines with (patch) and (base) indicate the drawing database snapshots used to create the patch. The newer snapshot is the patch. The older is the base.

A path that includes .dx indicates a cache file. A value such as (e23f1f9) is a checksum used to warn if the file has changed. A version code -a2b18 exists if the patch was created from history.

The (drawing) can be modified to specify a different output name for a merge.

Update

; update (8) 290 (CIRCLE) 10 10.25,5.75,0.0
291 (INSERT) 10 0.16,0.62,0.0

Objects in the update section include the handle and modified properties.

Delete

; delete (2)
241 (LINE)
243 (LINE)

Handles for deleted objects.

Append

; append (3)
; section=blocks/fogband
3A9 TEXT 5 3A9 330 2A 100 AcDbEntity 8 8 100-2 AcDbText 10 0.15,2.43,0.0 40 0.2 1 FLUSH 50 270.0 41 0.67 51 0.0 100-3 AcDbText
3AA TEXT 5 3AA 330 2A 100 AcDbEntity 8 8 100-2 AcDbText 10 0.54,1.73,0.0 40 0.2 1 FOG 50 270.0 41 0.98 51 0.0 100-3 AcDbText
3AB TEXT 5 3AB 330 2A 100 AcDbEntity 8 8 100-2 AcDbText 10 0.91,1.25,0.0 40 0.2 1 STREAM 50 270.0 41 0.97 51 0.0 100-3 AcDbText

Appended objects include all object properties.

Inline comments for previous values

44B (INSERT) 10 3.3,76.7,0.0 (9.4,76.7,0.0) ( INSERT 5 44B 330 18 100 AcDbEntity 8 5 100-2 AcDbBlockReference 2 URN 10 9.4,76.7,0.0 43 0.0 )

When you select Compare (DXCOMPARE) the patch is commented with previous values. Values within parens (old-value) or following a single left paren ( show data from the base drawing.

Status

; status:success

Success indicates no issues; The base drawing is a previous version.

; status:incompatible handseed 1DBD (base) greater than 1DAF (patch)

The base drawing is not an earlier version.

; status:incompatible 64 incompatible updates

The drawings are unrelated. Objects with a matching handles are not the same type.

Changes (DBMOD)

; 50 changes (dbmod=2105) (dxp=fffffe) (bhd=6C7) (bhs=6CC) (phd=6D6) (phs=6D9)

This line lists the total number of changes. The dxp flag and handles are used to verify merge compatibility. Values are hexidecimal.

DBMOD is an extension of the AutoCAD dbmod system variable. Bitcode (hex) values:

DWP extended:


Drawing Sync ©2025 Code Truck LLC. All rights reserved