Table of Contents

Method SetAttachmentMovingLocation

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

SetAttachmentMovingLocation(DxfAttachmentPoint)

Holds the MTEXT by another of its points where it stands, as AutoCAD's SetAttachmentMovingLocation: its Attachment set and its Location moved to that point of its box, so that the words stay where they are. The box is as wide as the group 41 (Width, but a column's before R2018 for an MTEXT in columns), the ActualWidth where the MTEXT does not wrap, and ActualHeight high, as the file writes them, along its Direction and up from it in its plane: the MTEXT 40 wide held at its top left at (20, 40, 0), held at its top centre, stands at (40, 40, 0). An annotative MTEXT's box is as wide as the context it is read at says (Width), and its location and attachment are written as Location and Attachment write them, as AutoCAD 2021 writes them: the MTEXT read at (14, 44) at 1:1, 30 wide and held by its middle, held by its middle left, stands at (1.01, 36.5), its context of 1:2 left as it was (check D35c).

public void SetAttachmentMovingLocation(DxfAttachmentPoint value)

Parameters

value DxfAttachmentPoint

The point to hold it by, one of the nine of an MTEXT.

Exceptions

ArgumentOutOfRangeException

Thrown when the point is not one an MTEXT has, 1 to 9.

InvalidOperationException

Thrown when the MTEXT is erased, or the move needs a width or height the file does not give: an MTEXT with no width (41) and no width of its words (42), or no height of its words (43).