Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

b16f8732 6d62 16f4 42ee 01ffce09e0ce

haplokuon edited this page May 6, 2023 · 1 revision

TransformAttributes Method

netDxf 3.0.0 Library

Recalculate the attributes position, normal, rotation, height, width, width factor, oblique angle, backwards, and upside down properties from the transformation state of the insertion.

Definition

Namespace: netDxf.Entities
Assembly: netDxf (in netDxf.dll) Version: 3.0.0

C#

public void TransformAttributes()

VB

Public Sub TransformAttributes

C++

public:
void TransformAttributes()

F#

member TransformAttributes : unit -> unit 

Remarks

Making changes to the insert position, rotation, normal, and/or scale; when changing the block origin and/or units; or even the document insertion units will require this method to be called manually.
The attributes position, normal, rotation, text height, width factor, and oblique angle values includes the transformations applied to the insertion, if required this method will calculate the proper values according to the ones defined by the attribute definition.
All the attribute values can be changed manually independently to its definition, but, usually, you will want them to be transformed with the insert based on the local values defined by the attribute definition.
This method only applies to attributes that have a definition, some DXF files might generate attributes that have no definition in the block.

See Also

Reference

Insert Class
netDxf.Entities Namespace

Clone this wiki locally