Method Replace
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
Replace(DxfEntity, DxfEntity)
Puts an entity in the place of one of the group, as AutoCAD's Replace; nothing where the two are the same.
public void Replace(DxfEntity oldEntity, DxfEntity newEntity)
Parameters
oldEntityDxfEntityThe entity of the group.
newEntityDxfEntityThe entity that takes its place, of the group's drawing and not in the group.
Exceptions
- ArgumentNullException
Thrown when an entity is null.
- ArgumentException
Thrown when the old entity is not in the group, or the new one is in it already or is not an entity of the group's drawing.
- InvalidOperationException
Thrown when the group is in no file, or is erased.