Class DxfMInsertBlock
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
A MINSERT of a DXF file, as AutoCAD's MInsertBlock: an INSERT that places its block in an array of
Rows by Columns cells, RowSpacing and ColumnSpacing apart.
public sealed class DxfMInsertBlock : DxfBlockReference
- Inheritance
-
DxfMInsertBlock
- Inherited Members
Remarks
The MINSERT of the block BOLT at (200, 0, 0), turned by 15 degrees, of 2 rows by 3 columns 40 and 25 apart, places six bolts; the spacing runs along the turned axes of the INSERT and is not scaled by its ScaleFactors. It is an INSERT whose group 70 or 71 is above 1, as AutoCAD writes one, and every member of DxfBlockReference reads and sets it as it does an INSERT.
TransformBy(GeoTransform3) scales the spacing as it scales the axes of the array, so that the cells stay where the transformation takes them.
Constructors
- 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.
- 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.
Properties
- ColumnSpacing
Gets or sets how far apart the columns stand (group 44), along the turned x axis, not scaled, as AutoCAD's
ColumnSpacing; nought where the record gives none.
- Columns
Gets or sets how many columns the array has (group 70), as AutoCAD's
Columns; 1 where the record gives none.
- GeometricExtents
Gets the box of the block placed in the MINSERT's first cell, as AutoCAD 2021's
GeometricExtentsof a MINSERT gives it: its MINSERT of a circle of radius 3 at the origin in 3 columns 10 apart by 2 rows 8 apart had the box (-3, -3, 0) to (3, 3, 0), not that of all six. The extents of the drawing still take in every cell.
- RowSpacing
Gets or sets how far apart the rows stand (group 45), along the turned y axis, not scaled, as AutoCAD's
RowSpacing; nought where the record gives none.
- Rows
Gets or sets how many rows the array has (group 71), as AutoCAD's
Rows; 1 where the record gives none.
Methods
- Explode()
Refuses to give the entities of the block in the MINSERT's cells, as AutoCAD 2021's
Exploderefused its MINSERT of a circle in 3 columns by 2 rows and its MINSERT of one cell alike (eNotApplicable), its TreatAsBlockRefForExplode false. ExplodeToOwnerSpace() gives a MINSERT's first cell, as AutoCAD's does.