AcGiGeometry::text 自画实体输出文字实例

软件架构师何志丹
void XXX::XX(AcGiWorldDraw* mode,const BJJCad::CDoublePoint& pt1,const BJJCad::CDoublePoint& pt2) //…
AcGePoint3d pos(0.0, 0.0, 0.0);
    AcGeVector3d norm(0.0, 0.0, 1.0);
    AcGeVector3d dir(1.0, 0.2, 0.0);
    TCHAR *pStr = _T(“Test string”);
    int len = _tcslen(pStr);
 
 AcGiTextStyle AsdkStyle;
    mode->geometry().text(pos, norm, dir, pStr, len,
        Adesk::kFalse, AsdkStyle);
 mode->geometry().text(pos, norm, dir,10,-1,0,_T(“12ABD”));
// AcGeVector3d norm(0.0, 0.0, 1.0); 表示文字垂直于Z轴 dir 表示文字方向 10表示 文字高度 -1 表示宽带

声明:本站部分文章及图片源自用户投稿,如本站任何资料有侵权请您尽早请联系jinwei@zod.com.cn进行处理,非常感谢!

上一篇 2017年9月21日
下一篇 2017年9月21日

相关推荐