Click or drag to resize

DxfDocumentModifyEntity Method (EntityObject, NullableVector2, NullableVector2, Double, Double, NullableInt16, String, String)

Modifies the position, rotation and scaling of an entity in 2D.

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

Parameters

Entity
Type: DXFReaderNET.EntitiesEntityObject
The entity 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 entity data in the drawing's database.
See Also