Method Copy
Copy<T>(IEnumerable<T>, GeoVector2)
Copies objects by a displacement, as COPY does: two lines copied by (0, 50) add two lines 50 above them in the app. Sends the queued changes with it.
public IReadOnlyList<T> Copy<T>(IEnumerable<T> objects, GeoVector2 displacement) where T : DxfEntity
Parameters
objectsIEnumerable<T>Objects read from this drawing.
displacementGeoVector2The displacement of the copies, in the world.
Returns
- IReadOnlyList<T>
Copies of the new objects, each of the type of its source, each with a handle of its own (HandleOf(DxfEntity)), in the order given.
Type Parameters
TThe type of the objects given.
Exceptions
- ArgumentNullException
Thrown when the list is null.
- ArgumentException
Thrown when an object was not read from this drawing.
- ArgumentOutOfRangeException
Thrown when a number is not finite.
- CadRemoteException
Thrown when the app refuses, as Move<T>(IEnumerable<T>, GeoVector2) says. Nothing is applied.