Table of Contents

Class CadDsdFile

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

A sheet list file, the .dsd (Drawing Set Description) of AutoCAD's Publish: a text file of the INI kind that keeps the sheets of the Publish dialog and where they go. It is read and written as plain sections, so that what a list holds beyond what this program knows, such as AutoCAD's [PdfOptions], comes back out as it went in. Load(string, bool) and Save(string) turn it into sheets and options.

public sealed class CadDsdFile
Inheritance
CadDsdFile
Inherited Members

Remarks

The file is made of [DWF6Version] and [DWF6MinorVersion]; a [DWF6Sheet:name] for each sheet, with DWG (the drawing's path), Layout (Model or the layout's name), Setup (empty for the sheet's own page setup, else the page setup's name, and name|path where it comes from another drawing), OriginalSheetPath, Has Plot Port and Has3DDWF; [Target] with Type (0 single-sheet DWF, 1 multi-sheet DWF, 2 the plotter named in the page setup, 3 single-sheet DWFx, 4 multi-sheet DWFx, 5 single-sheet PDF, 6 multi-sheet PDF, the values of AutoCAD's SheetType), DWF (the multi-sheet file), OUT (the output folder) and PWD; and [SheetSet Properties], of which NoOfCopies and ViewFile (Open in viewer when done) are read. A file of ASCII letters is written as it is, CRLF lines; one with other letters is written as UTF-16 with its byte order mark. A file is read as UTF-16 or UTF-8 by its byte order mark, else as UTF-8 where that is valid, else as Latin-1.

Properties

Sections

Gets the sections in the order of the file.

Methods

Find(string)

Finds a section by its header, letters of either case the same.

Parse(string)

Reads the text of a sheet list. A line before the first header, and a line that is no key=value, is passed over; a blank line and one that begins with a semicolon are too.

Read(string)

Reads a sheet list file.

ToText()

Gets the text of the list, CRLF lines, the sections in order and a line each.

Write(string)

Writes the list to a file, replacing a file of the name.