Close

Relief for ODA Team in Ukraine

Learn more
ODA Drawings SDK
OdDbMText::setAttachment Method
Syntax
C++
void setAttachment(AttachmentPoint type);

Sets the type of the attachment point of this MText entity (DXF 71).

Parameters
Description
type
[in] Type of the attachment point.

attachment must be one of the following: 

 

Name
Value
kTopLeft
1
kTopCenter
2
kTopRight
3
kMiddleLeft
4
kMiddleCenter
5
kMiddleRight
6
kBottomLeft
7
kBottomCenter
8
kBottomRight
9

 

setAttachment() keeps the location of this MText entity constant while changing the attachment type, thereby changing the extents of (moving) this MText entity. 

setAttachmentMovingLocation() moves the location of the MText entity while changing the attachment type, thereby maintaining the extents (not moving) this MText entity.

Copyright © 2002-2022. Open Design Alliance All rights reserved.