CadDocumentInfo

CadDocumentInfo class

Contains Cad document metadata

public class CadDocumentInfo : DocumentInfo

Properties

Name Description
CreationDate { get; } Implements CreationDate
Format { get; } Implements Format
Height { get; } Height
Item { get; } Implements Item
Layers { get; } Layers in the document
Layouts { get; } Layouts in the document
PagesCount { get; } Implements PagesCount
PropertyNames { get; } Implements PropertyNames
Size { get; } Implements Size
Width { get; } Width

Remarks

PagesCount counts the sheets the drawing offers under the load options it was read with. Without explicit LayoutNames those sheets are model space, which is always plottable and therefore always a sheet, plus every paper-space layout whose stored page setup has a positive width and height, narrowed by LayoutScope. Explicit layout names win outright instead: the sheets are then the supplied names the drawing carries, matched ordinally, with neither the scope nor the page setup screening them. For a DWF the published page set is reported. The one count below one is zero, reported when the requested scope matches no sheet of a drawing that offers one: the metadata still describes the drawing, and zero says the scope selects nothing rather than failing the caller who asked what the drawing holds. A conversion under those same load options does fail. The count is therefore not the size of Layouts, which lists every plot configuration the drawing carries including those no sheet can be published from, and it does not predict how many pages a particular conversion emits.

See Also