Table of Contents

Constructor DxfMInsertBlock

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

DxfMInsertBlock()

Initializes a MINSERT of no block of one cell at the origin, as AutoCAD's new MInsertBlock(), in no file; give it its block before it is added to a drawing.

public DxfMInsertBlock()

DxfMInsertBlock(GeoPoint3, DxfBlockTableRecord, short, short, double, double)

Initializes a MINSERT of a block, as AutoCAD's new MInsertBlock(position, blockTableRecord, columns, rows, colSpacing, rowSpacing): not turned, scaled by 1, on layer 0, in no file until it is added to a block of the drawing the block is of.

public DxfMInsertBlock(GeoPoint3 position, DxfBlockTableRecord blockTableRecord, short columns, short rows, double colSpacing, double rowSpacing)

Parameters

position GeoPoint3

The insertion point of the first cell, in world coordinates.

blockTableRecord DxfBlockTableRecord

The block it places, of a drawing.

columns short

How many columns, 1 or more.

rows short

How many rows, 1 or more.

colSpacing double

How far apart the columns stand, along the turned x axis.

rowSpacing double

How far apart the rows stand, along the turned y axis.

Exceptions

ArgumentNullException

Thrown when the block is null.

ArgumentException

Thrown when a coordinate is not a finite number, or the block is a layout.

ArgumentOutOfRangeException

Thrown when a count is below 1 or a spacing is not a finite number.