Click or drag to resize

DxfDocumentModifyEntities Method (ListEntityObject, NullableVector2, NullableVector2, Double, Double, NullableInt16, String, String)

Modifies the position, rotation and scaling of a list of entities in 2D.

Namespace:  DXFReaderNET
Assembly:  DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax
public void ModifyEntities(
	List<EntityObject> Entities,
	Vector2? BasePoint = null,
	Vector2? Traslation = null,
	double Scale = 1,
	double Rotation = 0,
	short? ACIColor = null,
	string LayerName = "",
	string LineTypeName = ""
)

Parameters

Entities
Type: System.Collections.GenericListEntityObject
A list of entity objects to modify.
BasePoint (Optional)
Type: SystemNullableVector2
A Vector2 containing the base point for scaling and rotation.
Traslation (Optional)
Type: SystemNullableVector2
A Vector2 containing the new traslation point.
Scale (Optional)
Type: SystemDouble
The new scaling factor. Default value=1.
Rotation (Optional)
Type: SystemDouble
The new rotation angle around the z axis in degree.
ACIColor (Optional)
Type: SystemNullableInt16
A number for 0 to 256 corresponding to the new AutoCAD Color Index (0 = ByBlock; 256 = ByLayer).
LayerName (Optional)
Type: SystemString
The new layer name.
LineTypeName (Optional)
Type: SystemString
The new linetype name.
Remarks
All trasformations are about the BasePoint point. This method will change the entities data in the drawing's database.
See Also