Table of Contents

Method SetPageSetup

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SetPageSetup(CadPublishSheet, string, string)

Sets the page setup a sheet is plotted with, as the sheet's Page Setup list: none for the layout's own, the name of a page setup of the sheet's drawing, or a page setup of another drawing.

public string SetPageSetup(CadPublishSheet sheet, string name, string file = "")

Parameters

sheet CadPublishSheet

The sheet.

name string

The page setup's name; empty for the sheet's own.

file string

The drawing the page setup is imported from; empty for one of the sheet's own drawing.

Returns

string

Why it was refused (Page setup not found, Drawing not found, Drawing failed to load: …); null where it was set.

Exceptions

ArgumentNullException

Thrown when the sheet is null.