Method Append
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
Append(DxfEntity)
Puts an entity last in the group, as AutoCAD's Append, the group written into its reactors.
public void Append(DxfEntity entity)
Parameters
entityDxfEntityThe entity, of the group's drawing and not in the group.
Exceptions
- ArgumentNullException
Thrown when the entity is null.
- ArgumentException
Thrown when the entity is in the group already, as AutoCAD answers eAlreadyInGroup, or is not an entity of the group's drawing: erased, of another file, made in code and not added, or a record that follows another, as a VERTEX.
- InvalidOperationException
Thrown when the group is in no file, or is erased.
Append(IEnumerable<DxfEntity>)
Puts entities last in the group, in their order, as AutoCAD's Append of a collection, in one writing of the
group: for a large group, the way to fill it. One at a time is fine for groups as drawings have them, 8 000 entities in
half a second, but each copies the group's record, so that 32 000 take some 15 seconds where this takes a few hundredths.
public void Append(IEnumerable<DxfEntity> entities)
Parameters
entitiesIEnumerable<DxfEntity>The entities.
Exceptions
- ArgumentNullException
Thrown when the entities or one of them are null.
- ArgumentException
Thrown when one is in the group already or given twice, or is not an entity of the group's drawing; none is put in then.
- InvalidOperationException
Thrown when the group is in no file, or is erased.