Table of Contents

Method AssumeOwnershipOf

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

AssumeOwnershipOf(IEnumerable<DxfEntity>)

Moves entities of the drawing into the block, as AutoCAD's AssumeOwnershipOf: each taken out of the block it is in and written at the end of this one, before its ENDBLK, or at the end of the ENTITIES section for model and paper space, its handle kept, this block as its owner and its group 67, and that of each record that follows it (a VERTEX, an ATTRIB, its SEQEND), as the space has it; the same object stands for it.

public void AssumeOwnershipOf(IEnumerable<DxfEntity> entitiesToMove)

Parameters

entitiesToMove IEnumerable<DxfEntity>

The entities, of this block's drawing; one this block holds already stays where it is.

Exceptions

ArgumentNullException

Thrown when the entities, or one of them, are null.

ArgumentException

Thrown when an entity is in no file or another, follows another (a vertex, an attribute), or is an INSERT that would make the block insert itself; nothing is moved then.

InvalidOperationException

Thrown when this block is in no file, or an entity is erased.