AutoXchange 2024 Technical Documentation

Watermark Parameters

The following parameters define the methods for defining Watermarks to be added to drawings. These parameters work for both SVG and PDF output, but not for Raster output.

Watermark Parameters
WM_CONTENT Content of the watermark
WM_LAYOUT AutoCAD Layout, default is ModelSpace
WM_ANCHOR Handle of line or point to define position
WM_X Horizontal (X) position
WM_Y Vertical (Y) position
WM_ANGLE Text angle (assume radians, append a ’d’ for degrees)
WM_FONTSTYLE TextStyle Font Style to use
WM_COLOR AutoCAD Color Index
WM_RGB Color by RGB values

The basic call for the Customer Watermark: -wm_con=“Plot created on/P$$$sysdate$$$” -wm_layout=plan - wm_anchor=90B23A5 -wm_height=6 -wm_x=10 -wm_y=5 -wm_angle=30d

Note: for parameters listed with [] in the command, the part before the brackets is required, but pretty much anything could be used after the requires part and still work. So - wm_continent would work for Content, since it starts with the required -wm_con.

Note: Parameters and JSON Names are case non-sensitive

Content

PARAMETER WM_CONTENT
Purpose This parameter specifies the contents of the watermark to be displayed. To create a multiple line string then use a line feed, /P, in the string.
Example -WM_CONTENT=“This is a/Pmulti-line watermark”
JSON {“WM_CONTENT”:“This is a/Pmulti-line watermark”}
Usage -WM_CON[TENT]
Use With SVG and PDF Only

Layout

PARAMETER WM_LAYOUT
Purpose This parameter specifies the AutoCAD Layout to place the Watermark in. The default is ModelSpace
Example -WM_LAYOUT=“Paper1”
JSON {“WM_LAYOUT”:“Paper1”}
Usage -WM_LAY[OUT]
Use With SVG and PDF Only

Anchor

PARAMETER WM_ANCHOR
Purpose This parameter specifies the Handle of a line or point to uses to position the watermark. If WM_X and WM_Y are also used, then they define offsets from this anchor element.
Example -WM_ANCHOR=“A1B”
JSON {“WM_ANCHOR”:“B44C”}
Usage -WM_ANC[HOR]
Use With SVG and PDF Only

Horizontal Position

PARAMETER WM_X
Purpose This parameter specifies the horizontal location of the start of the watermark. If the value is followed by % then it specifies the percentage of the width from the left border. If such percentage is negative, then it is from the right border.
Example -WM_X=10%
JSON {“WM_X”:44}
Usage -WM_X
Use With SVG and PDF Only

Vertical Position

PARAMETER WM_Y
Purpose This parameter specifies the vertical location of the start of the watermark. If the value is followed by % then it specifies the percentage of the height from the lower border. If such percentage is negative, then it is from the top border.
Example -WM_Y=10%
JSON {“WM_Y”:44}
Usage -WM_Y
Use With SVG and PDF Only

Angle

PARAMETER WM_ANGLE
Purpose This parameter specifies any rotation angle for the watermark. By default the angle is in radians, but if there is a “d” appended then the value is in degrees. The angle is counterclockwise from the horizontal axis.
Example -WM_ANGLE=10
JSON {“WM_ANGLE”: -45}
Usage -WM_ANG[LE]
Use With SVG and PDF Only

Fontstyle

PARAMETER WM_FONTSTYLE
Purpose This parameter the AutoCAD fontstyle to be used for the text. This does not define a font, but rather a text style.
Example -WM_FONTSTYLE=“MYSTYLE”
JSON {“WM_FONTSTYLE”: “ROMANS”}
Usage -WM_FONT[STYLE]
Use With SVG and PDF Only

Color Index

PARAMETER WM_COLOR
Purpose This parameter the AutoCAD Color Index (0 to 255) to be used for the watermark
Example -WM_COLOR=9
JSON {“WM_COLOR”: “127”}
Usage -WM_COL[OR]
Use With SVG and PDF Only

RGB Color

PARAMETER WM_RGB
Purpose This parameter the Red, Green and Blue (RGB) values for the color. Each value is defined between 0 and 255.
Example -WM_RGB=“0, 255, 127)”
JSON {“WM_RGB”: “(255, 0, 255)”}
Usage -WM_RGB
Use With SVG and PDF Only
Last updated on 13 Jul 2022
Published on 9 Jun 2020