Table of Contents

Property CanonicalMediaName

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

CanonicalMediaName

Gets or sets the name of the sheet as the plotter calls it (group 4), as AutoCAD's CanonicalMediaName, such as ISO_full_bleed_A3_(420.00_x_297.00_MM); empty where it has none.

public string CanonicalMediaName { get; set; }

Property Value

string

Set, as AutoCAD's PlotSettingsValidator.SetCanonicalMediaName sets it, to a name that ends in the size of the sheet in millimetres, width then height, as AutoCAD names the sheets of no plotter: the ISO sheets ISO_A0_(1189.00_x_841.00_MM), ISO_A1_(841.00_x_594.00_MM), ISO_A2_(594.00_x_420.00_MM), ISO_A3_(420.00_x_297.00_MM) and ISO_A4_(297.00_x_210.00_MM) on their sides, and ISO_A0_(841.00_x_1189.00_MM) to ISO_A4_(210.00_x_297.00_MM) upright; a sheet of a size of its own as ezdxf's page_setup names one, ezdxf_(1000.00_x_500.00_MM). The name is written as group 4 and its size as PlotPaperSize (44 and 45): a layout set to ISO_A2_(594.00_x_420.00_MM) has a sheet 594 by 420. The margins, the plot's origin and its turn are kept, and a layout's Limits made the sheet about its plotted area again. The name it has changes nothing.

Exceptions

ArgumentNullException

Thrown when the name set is null.

ArgumentException

Thrown when the name set does not end in a size in millimetres above nought, as (594.00_x_420.00_MM), after letters, digits, , . and -; or the margins leave no room on a sheet of that size.

InvalidOperationException

Thrown when the settings are in no drawing, as a layout made in code before it is added, or are erased.