Table of Contents

Class CadPlotStamp

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

The plot stamp of AutoCAD's PLOTSTAMP and -PLOTSTAMP: a few lines of text, the name of the drawing, the layout, the date and time, the login name, the plotter, the sheet and the scale, and two fields of the user's own, put in a corner of the sheet of a plot, and the same words kept in a log file. The commands keep one for a session (PlotStamp) and hand a copy to the settings of each plot while On (PlotStamp); the PDF writer puts it on the page.

public sealed class CadPlotStamp
Inheritance
CadPlotStamp
Inherited Members

Remarks

With AutoCAD's own start-up values, a plot of Plan.dxf, model space, to OpenCAD2D PDF at 1:20 on 9 June 2026 at 14:05:09 is stamped with three lines at the lower left of the printable area, 0.1 inch (2.54 mm) in from both its edges, in letters 0.2 inch (5.08 mm) high: the path of the drawing, 2026-06-09 14:05:09, and OpenCAD2D PDF.

Fields

StartFont

The font AutoCAD starts with: Segoe UI.

StartHeight

The text height AutoCAD starts with, in Units: 0.2.

StartLogFile

The log file AutoCAD starts with: plot.log.

StartOffset

The offset from the corner AutoCAD starts with, along each axis, in Units: 0.1.

Properties

DateAndTime

Gets or sets whether the stamp holds the date and time of the plot; on to start with.

DeviceName

Gets or sets whether the stamp holds the name of the plotter; on to start with.

DrawingName

Gets or sets whether the stamp holds the name of the drawing, with its folder; on to start with.

FontName

Gets or sets the font of the stamp: StartFont to start with.

LayoutName

Gets or sets whether the stamp holds the name of the layout plotted; off to start with.

Location

Gets or sets the corner of the sheet the stamp is put in; the lower left to start with.

LogFile

Gets or sets the log file; a name with no folder is put beside the plot. StartLogFile to start with.

LoginName

Gets or sets whether the stamp holds the login name of the user; off to start with.

OffsetFromPaperBorder

Gets or sets whether the offset is measured from the edge of the sheet; off, it is from the printable area, as it starts.

OffsetX

Gets or sets how far the stamp stands from the sides of the corner along X, in Units: StartOffset to start with.

OffsetY

Gets or sets how far the stamp stands from the sides of the corner along Y, in Units.

On

Gets or sets whether plots are stamped; off to start with.

PaperSize

Gets or sets whether the stamp holds the name of the sheet; off to start with.

PlotScale

Gets or sets whether the stamp holds the plot scale; off to start with.

SingleLine

Gets or sets whether the stamp is one line of fields set apart by two spaces; off, each field is a line, as it starts.

TextHeight

Gets or sets the height of the letters, in Units: StartHeight to start with.

Units

Gets or sets the units of the offset and the text height; inches to start with.

UpsideDown

Gets or sets whether the stamp is turned half round; off to start with.

UserField1

Gets or sets the first field of the user's own; empty for none, as it starts.

UserField2

Gets or sets the second field of the user's own; empty for none, as it starts.

UserFields

Gets or sets the list of the user's own fields the Field 1 and Field 2 lists of Plot Stamp pick from, as its Add / Edit keeps them; empty to start. The list is copied, so that a stamp and its Clone() keep their own.

Vertical

Gets or sets whether the stamp reads up the sheet, a quarter turned, instead of along it; off to start with.

WriteLog

Gets or sets whether each stamp is also written to the log file; on to start with.

Methods

Clone()

Makes a copy that changes apart from this one.

CopyFrom(CadPlotStamp)

Takes every setting of another stamp, as the Plot Stamp dialog's OK gives the session's stamp what it edited in a copy, so that every drawing sharing the stamp sees it.

Footprint(CadPlotPage, double, double)

Where a block of the stamp's size stands on a sheet, as a box in the millimetres of the sheet, Y upward from its lower left corner: in Location's corner of the printable area, or of the whole sheet where OffsetFromPaperBorder, in by the offset on both sides. A Vertical stamp has its width and height changed over, as it lies on the sheet.

Footprint(CadPlotPage, double, double, bool, double)

Where a block of the stamp's size stands on a sheet, as Footprint(CadPlotPage, double, double), the corner taken of the image as plotted, as AutoCAD's help puts it: a plot upside down turns the sheet half round, so that a stamp at the lower left stands at the upper right of the sheet; and the sheet's units given, a sheet of pixels at 96 to the inch (OpenCAD2D PNG and JPG) taking 96 / 25.4 to the millimetre.

Lines(CadDocument, CadSpace, CadPlotSettings, CadPlotPage, DateTime, string)

The words of the stamp for a plot, in the order AutoCAD stamps them: the drawing, the layout, the date and time, the login name, the plotter, the sheet, the scale, then the two fields of the user's own that are not empty. One line where SingleLine, the fields set apart by two spaces; else a line of each.

LoadParameterFile(string)

Reads a plot stamp parameter file into the stamp, as Load of the Plot Stamp dialog: every setting the file holds replaces the stamp's; one it does not hold is kept.

LogLine(IReadOnlyList<string>)

The line the log file takes for a stamp: its fields set apart by two spaces, on a line of their own.

LogPath(string)

The path of the log file for a plot written to a file: LogFile, beside the plot where it names no folder.

SaveParameterFile(string)

Writes the stamp to a plot stamp parameter file, as Save As of the Plot Stamp dialog: the fields, the user's fields with the two picked, the corner, the orientation, the offset, the text height, the units and the log file. The corner and orientation codes are those of AutoCAD's mm.pss for its defaults (location 0 lower left, orientation 1 horizontal), the others in the order of the Location list.

ScaleText(double)

A scale of millimetres of sheet to drawing unit as a ratio: 0.05 is 1:20, 2 is 2:1, to four places.

ToMillimetres(double)

A length in Units in millimetres: 5.08 for 0.2 inch, 2.6458 for 10 pixels.