DxfDocumentModifyEntity Method (EntityObject, NullableVector3, NullableVector3, NullableVector3, NullableVector3, NullableInt16, String, String)
|
Modifies the position, rotation and scaling of an entity.
Namespace:
DXFReaderNET
Assembly:
DXFReaderNET (in DXFReaderNET.dll) Version: 20.10.54
Syntax public void ModifyEntity(
ref EntityObject Entity,
Vector3? BasePoint = null,
Vector3? Traslation = null,
Vector3? Scale = null,
Vector3? Rotation = null,
short? ACIColor = null,
string LayerName = "",
string LineTypeName = ""
)
Public Sub ModifyEntity (
ByRef Entity As EntityObject,
Optional BasePoint As Vector3? = Nothing,
Optional Traslation As Vector3? = Nothing,
Optional Scale As Vector3? = Nothing,
Optional Rotation As Vector3? = Nothing,
Optional ACIColor As Short? = Nothing,
Optional LayerName As String = "",
Optional LineTypeName As String = ""
)
public:
void ModifyEntity(
EntityObject^% Entity,
Nullable<Vector3> BasePoint = nullptr,
Nullable<Vector3> Traslation = nullptr,
Nullable<Vector3> Scale = nullptr,
Nullable<Vector3> Rotation = nullptr,
Nullable<short> ACIColor = nullptr,
String^ LayerName = L"",
String^ LineTypeName = L""
)
member ModifyEntity :
Entity : EntityObject byref *
?BasePoint : Nullable<Vector3> *
?Traslation : Nullable<Vector3> *
?Scale : Nullable<Vector3> *
?Rotation : Nullable<Vector3> *
?ACIColor : Nullable<int16> *
?LayerName : string *
?LineTypeName : string
(* Defaults:
let _BasePoint = defaultArg BasePoint null
let _Traslation = defaultArg Traslation null
let _Scale = defaultArg Scale null
let _Rotation = defaultArg Rotation null
let _ACIColor = defaultArg ACIColor null
let _LayerName = defaultArg LayerName ""
let _LineTypeName = defaultArg LineTypeName ""
*)
-> unit
METHOD ModifyEntity(
Entity REF EntityObject,
BasePoint AS Nullable<Vector3> := NULL,
Traslation AS Nullable<Vector3> := NULL,
Scale AS Nullable<Vector3> := NULL,
Rotation AS Nullable<Vector3> := NULL,
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: SystemNullableVector3
A Vector3 containing the base point for scaling and rotation. - Traslation (Optional)
- Type: SystemNullableVector3
A Vector3 containing the new traslation point. - Scale (Optional)
- Type: SystemNullableVector3
A Vector3 containing new scaling factor on the x, y and z directions. - Rotation (Optional)
- Type: SystemNullableVector3
A Vector3 containing new rotation angles around the x, y and 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