Table of Contents

Method SplitAs

Namespace
OpenCAD2D
Assembly
OpenCAD2D.Core.dll

SplitAs(string, bool)

Applies a standard configuration of the Viewports dialog to the whole drawing area (Apply to: Display) or to the current tile (Apply to: Current Viewport); Single with Display keeps the current tile alone, with Current Viewport changes nothing. One undo step.

public string SplitAs(string name, bool whole)

Parameters

name string

A name of StandardNames.

whole bool

Whether the whole drawing area is split.

Returns

string

Null where done or nothing to do, else what AutoCAD says.

Exceptions

ArgumentException

Thrown when the name is none of StandardNames.

SplitAs(string, bool, IReadOnlyList<string>)

Applies a standard configuration as SplitAs(string, bool), each new tile showing the model view its entry of the views names, as the Viewports dialog's Change view to gives it: the view's centre, its width and height fitted into the tile's shape. An entry that is null, Current or no model view of the drawing keeps the view the tile was split from; Single with a view shows it in the tile kept. One undo step.

public string SplitAs(string name, bool whole, IReadOnlyList<string> views)

Parameters

name string

A name of StandardNames.

whole bool

Whether the whole drawing area is split.

views IReadOnlyList<string>

The view of each new tile, in the order of PiecesOf(string); null for none.

Returns

string

Null where done or nothing to do, else what AutoCAD says.

Exceptions

ArgumentException

Thrown when the name is none of StandardNames.