DwgMerge 2026 Technical Documentation

Supported Entities

DwgMerge is designed to designed to merge JSON content into AutoCAD DWG files. The syntax of the definition of content follows the structure of the output as defined in Tailor Made Software data extraction products LinkList 2023 and DwgList 2023.

Sample Entities used in this section

Note: You can download a sample DWG and JSON that can be used as sample input for DwgMerge.

DWG Reference Drawing

The entities that can be added to an AutoCAD DWG file are:

Supported entities

Entities

All entities (unless noted below) have an Entity Header and such fields listed below as necessary.

Entity Header

JSON NameValueJSON Type
TypeEntity TypeString
LayerEntity Layer (string with name of Layer Definition)String
ColorEntity ColorSee Below
HandleEntity HandleUnique 16 Hexadecimal character stringString
LinetypeEntity Line Type (string with name of Line Type Def)String
NormalEntity Normal (object with x, y and z coordinates)Object
Entity Color

The Entity Color can either be an object with a COLORREF definition, a string with ByLayer, ByBlock or an integer from 0 to 256 (as either a string or integer).

Line

JSON NameValueJSON Type
Start_PointStart PointObject with x, y and z coordinates
End_PointEnd PointObject with x, y and z coordinates

– Return to top

Point

JSON NameValueJSON Type
PositionPositionObject with x, y and z coordinates

– Return to top

Polyline

JSON NameValueJSON Type
ClosedClosed FlagBoolean
Constant_WidthConstant WidthDouble
VerticesVerticesObject

– Return to top

Polyline Vertices

JSON NameValueJSON Type
LocationLocationObject with x, y and z coordinates
Segment_TypeSegment TypeString (default is “Line”)
BulgeBulgeDouble (default is 0.0)
Start_WidthStart WidthObject with x, y and z coordinates
End_WidthEnd WidthObject with x, y and z coordinates

– Return to top

Circle

JSON NameValueJSON Type
CenterCenterObject with x, y and z coordinates
RadiusRadiusDouble

– Return to top

Arc

JSON NameValueJSON Type
CenterCenterObject with x, y and z coordinates
RadiusRadiusDouble
Start_AngleStart AngleStarting Angle in radians
End_AngleEnd AngleEnding Angle in radians

– Return to top

Ellipse

JSON NameValueJSON Type
CenterCenterObject with x, y and z coordinates
Major_AxisMajor AxisDouble
Minor_AxisMinor AxisDouble
Radius_RatioRadius RatioDouble (not required)
Start_AngleStart AngleStarting Angle in radians
End_AngleEnd AngleEnding Angle in radians

– Return to top

Text

JSON NameValueJSON Type
Text_HeightText HeightDouble
Text_StringContentsString
ContentsContentsString (alias for “Text_String”)
Text_PositionText PositionObject with x, y and z coordinates
Text_LocationText PositionObject (alias for “Text_Position”)
Text_StyleText StyleString (name of Text Style)
RotationRotationDouble (in radians)
Width_FactorWidth FactorDouble
Mirrored_in_XMirrored in X FlagBoolean (default is false)
Mirrored_in_YMirrored in Y FlagBoolean (default is false)
ObliqueSlantDouble (in radians)
Horizontal_ModeHorizontal ModeInteger (see below)
Vertical_ModeVertical ModeInteger (see below)
Text Horizontal Mode Values

Use the values, not the name.

NameValue
Left0
Center1
Right2
Align3
Mid4
Fit5
Text Vertical Mode Values

Use the values, not the name.

NameValue
Base0
Bottom1
Mid2
Top3

– Return to top

MText

JSON NameValueJSON Type
Text_HeightText HeightDouble
Text_StringContentsString
ContentsContentsString (alias for “Text_String”)
Text_PositionText PositionObject with x, y and z coordinates
Text_LocationText PositionObject (alias for “Text_Position”)
Text_StyleText StyleString (name of Text Style)
DirectionDirectionObject with x, y and z coordinates
RotationRotationDouble (in radians)
HeightHeightDouble
WidthWidthDouble
Line_Spacing_FactorLine SpacingDouble
AttachmentAttachment PointInteger (see below)
Flow_DirectionFlow DirectionInteger (see below)
Show_BordersShow BordersBoolean (default is no borders)
Background_Fill_ModeBackground Fill ModeBoolean (default is no fill)
Line_Spacing_StyleLine Spacing StyleInteger (see below)
Column_TypeColumn TypeInteger (see below)
Column_WidthColumn WidthDouble
Column_Gutter_WidthColumn Gutter WidthDouble
Column_Flow_ReversedColumn Flow ReversedBoolean (default is not reversed)
Attachment Mode Values

Use the values, not the name.

NameValue
Top Left1
Top Center2
Top Right3
Middle Left4
Middle Center5
Middle Right6
Bottom Left7
Bottom Center8
Bottom Right9
Base Left10
Base Center11
Base Right12
Base Align13
Bottom Align14
Middle Align15
Top Align16
Base Fit17
Bottom Fit18
Middle Fit19
Top Fit20
Base Mid21
Bottom Mid22
Middle Mid23
Top Mid24
Flow Direction Values

Use the values, not the name.

NameValue
Left to Right1 (default)
Right to Left2
Top to Bottom3
Bottom to Top4
By Style5
Line Spacing Style

Use the values, not the name.

NameValue
At Least1
Exactly2
Column Type

Use the values, not the name.

NameValue
No Columns0 (Default)
Static Columns1
Dynamic Columns2

– Return to top

Solid

JSON NameValueJSON Type
VerticesVerticesArray of Objects
Solid Vertex
JSON NameValueJSON Type
VertexVertexObject with x, y and z coordinates

– Return to top

2D Polyline

JSON NameValueJSON Type
ClosedClosed FlagBoolean (Default is not closed)
VerticesVerticesArray of Objects
2D Polyline Vertex
JSON NameValueJSON Type
VertexVertexObject with x and y coordinates

– Return to top

3D Polyline

JSON NameValueJSON Type
ClosedClosed FlagBoolean (Default is not closed)
VerticesVerticesArray of Objects
3D Polyline Vertex
JSON NameValueJSON Type
VertexVertexObject with x, y and z coordinates

– Return to top

Spline

JSON NameValueJSON Type
Has_Fit_DataFit Data FlagBoolean (Default is no Fit Data)
RationalRational FlagBoolean (Default is not rational)
PeriodicPeriodic FlagBoolean (Default is not periodic)
ClosedClosed FlagBoolean (Default is not closed)
DegreeDegreeInteger
Fit_ToleranceFit ToleranceDouble
Control_Point_ToleranceControl Point ToleranceDouble
Knot_ToleranceKnot ToleranceDouble
Fit_PointsVerticesArray of Objects
Control_PointsVerticesArray of Objects
KnotsVerticesArray of Doubles
WeightsVerticesArray of Doubles
Tangents_ExistTangents Exist FlagBoolean (Default is no tangents)
Start_TangentStart TangentObject with x, y and z vector
End_TangentEnd TangentObject with x, y and z vector
Spline Vertex

The same definition is used for Fit Points and Control Points

JSON NameValueJSON Type
PointPointObject with x, y and z coordinates
Spline Values

The same definition is used for Knots and Weights

JSON NameValueJSON Type
ValueValueDouble

– Return to top

Dimension

All dimensions share the following parameters. Some of the specific dimension types, like Aligned and Rotated Dimensions, have extra parameters that are outlined in their sections below.

JSON NameValueJSON TypeUsage
Dimension_StyleDimension StyleStringname of entry in Dimension Style table
DimStyleDimension StyleAlias to Dimension_Style
Text_PositionText PositionObject with x,y, and z coordinates
Dim_Block_PositionDimension Block PositionObject with x,y, and z coordinates
Is_Default_Text_PositionDefault Text Position FlagBoolean
Dimension_TextDimension TextString
Text_RotationText RotationDouble in radians
Text_AttachmentText AttachmentInteger
Text_Line_Spacing_FactorText Line Spacing FactorDouble
Horizontal_RotationHorizontal RotationDouble in radians
Dim_Block_RotationDimension Block RotationDouble in radians
Dim_Block_ScaleDimension Block ScaleDouble
DimscaleDimension ScaleDouble
DimgapDimension GapDouble
Background_Text_ColorBackground Text ColorColor
Dimension_LinetypeDimension LinetypeStringName of LineType
First_Extension_Line_LinetypeFirst Extension Line LinetypeStringName of LineType
Second_Extension_Line_LinetypeSecond Extension Line LinetypeStringName of LineType
Extension_Line_Fixed_LengthExtension Line LengthDouble
Arrow_First_Is_FlippedArrow First Is Flipped FlagBoolean
Arrow_Second_Is_FlippedArrow Second Is Flipped FlagBoolean
Text_Defined_WidthText WidthDouble
Text_Defined_HeightText HeightDouble
DimadecDimadecIntegerNumber of decimal places in angular dimensions
DimaltDimaltBooleanControls the display of alternate measurements
DimaltdDimaltdIntegerNumber of decimal places in alternate measurements
DimaltfDimaltfDoubleDistance multiplier for alternate measurements
DimrndDimrndDoubleSpecifies the rounding of alternate measurements
DimalttdDimalttdIntegerSpecifies the number of decimal places in tolerance values in alternate measurements
DimalttzDimalttzIntegerControls zero suppression in tolerance values in alternate measurements
DimaltuDimaltuInteger[Controls the formatting for alternate units](#Dimension-Alternate -Unit-Format)
DimaltzDimaltzIntegerControls zero suppression in alternate measurements
DimapostDimapostStringSpecifies a prefix and/or suffix for the alternate measurements text in dimensions. DIMAPOST is in the form prefix<>suffix. The ‘<>’ in DIMAPOST is replaced by the alternate measurements text.
DimaszDimaszDoubleSpecifies the size of dimension and leader arrowheads
DimatfitDimatfitIntegerSpecifies how arrows and text are placed when they do not fit within the extension lines of dimensions
DimaunitDimaunitIntegerSpecifies the formatting for units in angular dimensions
DimazinDimazinIntegerControls zero suppression in angular dimensions
DimBlockDimBlockStringDimension Block Name
DimblkDimblkStringArrow Head Block Name
Dimblk1Dimblk1StringFirst arrowhead block when DIMSAH is true
Dimblk2Dimblk2StringSecond arrowhead block when DIMSAH is true
DimcenDimcenDoubleControls the generation of arc and circle center marks and lines
DimdecDimdecIntegerSpecifies the number of decimal places in primary units
DimdleDimdleDoubleSpecifies the distance dimension lines extend beyond extension lines
DimdliDimdliDoubleSpecifies distance between dimension lines for baseline dimensions
DimdsepDimdsepIntegerSpecifies the decimal separator (’.’ or ‘,’)
DimexeDimexeDoubleSpecifies the distance extension lines extend beyond dimension lines
DimexoDimexoDoubleSpecifies the distance extensions are offset from their origin points
DimfracDimfracIntegerSpecifies the fraction format when DIMLUNIT is 4 or 5
DimgapDimgapDoubleSpecifies the gap between dimension text and dimension lines
DimjustDimjustIntegerSpecifies the dimension text horizontal position
DimlfacDimlfacDoubleSpecifies the distance multiplier for measurements in dimensions
DimlimDimlimBooleanControls the display of dimension limits
DimlunitDimlunitIntegerControls the formatting for units in non-angular dimensions
DimlwdDimlwdIntegerSpecifies the lineweight for dimension lines
DimlweDimlweIntegerSpecifies the lineweight for extension lines
DimpostDimpostStringSpecifies a prefix and/or suffix for the measurement text in dimensions. DIMPOST is in the form prefix<>suffix. The ‘<>’ in DIMPOST is replaced by the alternate measurements text.
DimsahDimsahBooleanControls the generation of separate arrowheads for dimension lines
DimscaleDimscaleDoubleScale factor applied to all dimension variables that regulate sizes, offsets, and distances
Dimsd1Dimsd1BooleanControls the suppression of the first dimension line and arrowhead
Dimsd2Dimsd2BooleanControls the suppression of the second dimension line and arrowhead
Dimse1Dimse1BooleanControls the suppression of the first extension line
Dimse2Dimse2BooleanControls the suppression of the second extension line
DimsoxdDimsoxdBooleanControls the suppression of dimension lines outside the extension lines
DimtadDimtadIntegerSpecifies the dimension text vertical position
DimtdecDimtdecIntegerSpecifies the number of decimal places in tolerance values for primary units
DimtfacDimtfacDoubleSpecifies, as a factor of DIMTXT, the size of tolerance and fraction text
DimtihDimtihBooleanControls the orientation of dimension text inside the extension lines
DimtixDimtixBooleanControls the placement of dimension text inside the extension lines
DimtmDimtmDoubleSpecifies the negative of the lower tolerance limit
DimtmoveDimtmoveIntegerControls the updating of associative dimension objects while dragging
DimtoflDimtoflBooleanControls the drawing of dimension lines between extension lines when text is outside the dimension lines
DimtohDimtohBooleanControls the orientation of dimension text outside the extension lines
DimtolDimtolBooleanControls the generation of tolerance text in dimensions
DimtoljDimtoljIntegerControls the vertical justification of tolerance values with respect to the nominal dimension text
DimtpDimtpDoubleSpecifies the upper tolerance limit
DimtszDimtszDoubleSpecifies the size of architectural tics
DimtxstyDimtxstyStringDimension Text Style
DimtvpDimtvpDoubleSpecifies, as a factor of DIMTXT, the vertical distance of the middle of the dimension text with respect to the dimension line
DimtxtDimtxtDoubleSpecifies the size of the dimension text
DimtzinDimtzinIntegerControls zero suppression in tolerance values in linear dimensions
DimuptDimuptBooleanControls the movement of user-positioned text when dimension lines are moved
DimzinDimzinIntegerControls zero suppression in linear dimensions
DimfxlDimfxlDoubleSpecifies the fixed length of extension lines
DimfxlonDimfxlonBooleanControls the generation of fixed-length extension lines
DimjogangDimjogangDoubleSpecifies the jog angle of dimension lines in jogged radius dimensions
DimtfillDimtfillIntegerSpecifies the background fill of dimension text
DimarcsymDimarcsymIntegerSpecifies the placement of arc symbols in arc length dimensions
DimltypeDimltypeStringSpecifies the linetype of dimension lines
Dimltex1Dimltex1StringSpecifies the linetype of first extension lines
Dimltex2Dimltex2StringSpecifies the linetype of second extension lines
DimtxtdirectionDimtxtdirectionBooleanControls the text direction
DimmzfDimmzfDouble
DimmzsDimmzsString
DimaltmzfDimaltmzfDouble
DimaltmzsDimaltmzsString
Dimension Alternate Unit Format
ValueDescription
1Scientific
2Decimal
3Engineering
4Architectural (stacked)
5Fractional (stacked)
6Architectural
7Fractional
8Microsoft Windows Desktop
Dimension Unit Format
ValueDescription
1Scientific
2Decimal
3Engineering
4Architectural (stacked)
5Fractional (stacked)
6Microsoft Windows Desktop
Dimension Zero Suppression
ValueDescription
0Suppress zero feet and exactly zero inches
1Include zero feet and exactly zero inches
2Include zero feet and suppress exactly zero inches
3Suppress zero feet and include exactly zero inches
4Suppress leading decimal zeros
8Suppress trailing decimal zeros
12Suppress leading and trailing decimal zeros
Angular Dimension Zero Suppression
ValueDescription
0Display leading and trailing decimal zeros
1Suppress leading decimal zeros
2Suppress trailing decimal zeros
3Suppress leading and trailing decimal zeros
Dimension Arrows Don’t Fit
ValueDescription
0Moves text and arrows outside extension lines
1Moves arrows, then text, outside extension lines. When DIMTMOVE is 1, a leader is added to moved text
2Moves text, then arrows, outside extension lines
3Moves text or arrows for best fit
Angular Dimension Units
ValueDescription
0Decimal Degrees
1Degrees-Minutes-Seconds
2Gradians
3Radians
4Surveyor’s Units
Fraction Unit Format
ValueDescription
0Horizontal Stacked
1Diagonal Stacked
2Not Stacked
Dimension Text Horizontal Position
ValueDescription
0Centered above the dimension line
1By the first extension line
2By the second extension line
3Above the dimension line, parallel to the first extension line
4Above the dimension line, parallel to the second extension line
Dimension Text Vertical Position
ValueDescription
0Centered about the dimension line
1Above the dimension line, unless DIMTIH==1 and the dimension line is not horizontal
2Side of the dimension line farthest from the defining points
3JIS standard
4Text below the dimension line
Update While Dragging
ValueDescription
0Moving dimension text moves the dimension line
1Moving dimension text adds a leader
2Moving dimension text does not add a leader
Vertical Justification of Tolerance Values
ValueDescription
0Bottom
1Middle
2Top
Background Fill of Dimension Text
ValueDescription
0No fill
1Drawing background color
2Color specified by DIMTFILLCLR
Arc Symbol Placement
ValueDescription
0Before the dimension text
1Above the dimension text
2Not displayed

– Return to top

Last updated on 23 Jan 2026
Published on 17 Jul 2020