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
positionGeoPoint3The insertion point of the first cell, in world coordinates.
blockTableRecordDxfBlockTableRecordThe block it places, of a drawing.
columnsshortHow many columns, 1 or more.
rowsshortHow many rows, 1 or more.
colSpacingdoubleHow far apart the columns stand, along the turned x axis.
rowSpacingdoubleHow 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.