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 = ""
)
Public Sub ModifyEntities (
Entities As List(Of 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 ModifyEntities(
List<EntityObject^>^ Entities,
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 ModifyEntities :
Entities : List<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 ModifyEntities(
Entities AS List<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
- 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