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.12.2
Syntaxpublic void ModifyEntity(
	EntityObject Entity,
	Vector2? BasePoint = null,
	Vector2? Traslation = null,
	double Scale = 1,
	double Rotation = 0,
	short? ACIColor = null,
	string LayerName = "",
	string LineTypeName = ""
)
Public Sub ModifyEntity ( 
	Entity As EntityObject,
	Optional BasePoint As Vector2? = Nothing,
	Optional Traslation As Vector2? = Nothing,
	Optional Scale As Double = 1,
	Optional Rotation As Double = 0,
	Optional ACIColor As Short? = Nothing,
	Optional LayerName As String = "",
	Optional LineTypeName As String = ""
)
public:
void ModifyEntity(
	EntityObject^ Entity, 
	Nullable<Vector2> BasePoint = nullptr, 
	Nullable<Vector2> Traslation = nullptr, 
	double Scale = 1, 
	double Rotation = 0, 
	Nullable<short> ACIColor = nullptr, 
	String^ LayerName = L"", 
	String^ LineTypeName = L""
)
member ModifyEntity : 
        Entity : EntityObject * 
        ?BasePoint : Nullable<Vector2> * 
        ?Traslation : Nullable<Vector2> * 
        ?Scale : float * 
        ?Rotation : float * 
        ?ACIColor : Nullable<int16> * 
        ?LayerName : string * 
        ?LineTypeName : string 
(* Defaults:
        let _BasePoint = defaultArg BasePoint null
        let _Traslation = defaultArg Traslation null
        let _Scale = defaultArg Scale 1
        let _Rotation = defaultArg Rotation 0
        let _ACIColor = defaultArg ACIColor null
        let _LayerName = defaultArg LayerName ""
        let _LineTypeName = defaultArg LineTypeName ""
*)
-> unit 
 METHOD ModifyEntity(
	Entity AS EntityObject,
	BasePoint AS Nullable<Vector2> := NULL,
	Traslation AS Nullable<Vector2> := NULL,
	Scale AS REAL8 := 1,
	Rotation AS REAL8 := 0,
	ACIColor AS Nullable<SHORT> := NULL,
	LayerName AS STRING := "",
	LineTypeName AS STRING := ""
) AS VOID
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. 
RemarksAll trasformations are about the BasePoint point. This method will change the entity data in the drawing's database.
See Also