DwgMerge 2020 Technical Documentation

Supported Entities

DwgMerge is designed to designed to merge XML or 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 2020 and DwgList 2020.

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

Sample Entities used in this section

Note: You can download the sample DWG used in this sample, and you can access the source-code of the Full XML Reference Sample and Full JSON Reference Sample files used in this section. DWG Reference Drawing

Layers

XML Input Sample - Layers

JSON Input Sample - Layers

Polyline

XML Input Sample - Polyline

JSON Input Sample - Polyline

Line

XML Input Sample - Line

JSON Input Sample - Line

Circle

XML Input Sample - Circle

JSON Input Sample - Circle

Ellipse

XML Input Sample - Ellipse

JSON Input Sample - Ellipse

Spline

XML Input Sample - Spline

JSON Input Sample - Spline

Arc

XML Input Sample - Arc

JSON Input Sample - Arc

Hatch

XML Input Sample - Hatch

JSON Input Sample - Hatch

Text

XML Input Sample - Spline

JSON Input Sample - Spline

MText

XML Input Sample - MText

JSON Input Sample - MText

3DPolyline

XML Input Sample - 3DPolyline

JSON Input Sample - 3DPolyline

Block

XML Input Sample - Block

JSON Input Sample - Block

BlockReference with Attributes

XML Input Sample - BlockReference with Attributes

JSON Input Sample - BlockReference with Attributes

MLine

XML Input Sample - MLine

JSON Input Sample - MLine

Color Method

Colors Methods are defined with the following settings:

kByLayer       0xC0            Color is specified by the layer object on which the object resides.
kByBlock       0xC1            Color is specified by the block reference color.
kByColor       0xC2            Color is specified by an RGB value.
kByACI         0xC3            Color is specified by an index (ACI) of a color palette.
kByPen         0xC4            Color is specified by an index of a pen color table.
kForeground    0xC5            Color is the same as the foreground color.
kByDgnIndex    0xC7            Color is specified by an index of a .dgn color table.
kNone          0xC8            Color is absent (object is clear).

NOTE: In DwgMerge2020, we adjust the 0xCn portion. So DwgMerge2020 will use “3” instead of “0xC3 for Color Index.

For Palettes, please use the references links:

Platform Palette Link
AutoCAD DWG AutoCAD Light Palette
AutoCAD DWG AutoCAD Dark Palette
MicroStation DGN DGN Palette *) not used with linklist2020 and dwglist2020
AutoDesk DWF DWF Palette *) not used with linklist2020 and dwglist2020

JSON Input Sample - Color Method

Full XML Reference Sample

Full JSON Reference Sample

Last updated on 30 Jan 2021
Published on 17 Jul 2020