Table of Contents

Method PageSetupIsModel

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

PageSetupIsModel(DxfDatabase, string)

Gets whether a page setup of a drawing was made for model space (flag 1024 of its group 70, AutoCAD's ModelType), the Model that Import Page Setups lists in its Location column; Layout otherwise.

public static bool PageSetupIsModel(DxfDatabase database, string name)

Parameters

database DxfDatabase

The drawing, as Open(string) opens it.

name string

The page setup's name, letters of either case the same.

Returns

bool

True when it is model space's; false for a layout's, or where the drawing has no page setup of the name.

Exceptions

ArgumentNullException

Thrown when the drawing or the name is null.