-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathCTextUtil.cpp
More file actions
31 lines (24 loc) · 784 Bytes
/
CTextUtil.cpp
File metadata and controls
31 lines (24 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#include "stdafx.h"
#include "CTextUtil.h"
#include "CDwgDatebaseUtil.h"
CTextUtil::CTextUtil()
{
}
CTextUtil::~CTextUtil()
{
}
AcDbObjectId CTextUtil::addText(const AcGePoint3d & InsertPoint, const TCHAR * text, AcDbObjectId stytle, double height, double rotation)
{
AcDbText *pText = new AcDbText(InsertPoint, text, stytle, height, rotation);
return CDwgDatebaseUtil::PostToModelSpace(pText);
}
AcDbObjectId CTextUtil::addMText(const AcGePoint3d & InsertPoint, const TCHAR * text, AcDbObjectId stytle, double height, double width)
{
AcDbMText *pMText = new AcDbMText();
pMText->setLocation(InsertPoint);
pMText->setTextStyle(stytle);
pMText->setContents(text);
pMText->setHeight(height);
pMText->setWidth(width);
return CDwgDatebaseUtil::PostToModelSpace(pMText);
}