明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1825|回复: 2

[求助]文字类的编辑

[复制链接]
发表于 2003-4-22 11:54 | 显示全部楼层 |阅读模式
请问:
    我写了一些文字实体,现在想改变他们的对齐方式,用下面的方法实现对吗?我调试过,文字没有出现在屏幕上,

    …………
   AcDbText *text;
   text=new AcDbText(pos,str,AcDbObjectId::kNull,fontheight*scale,0);
   text->adjustAlignment(acdbHostApplicationServices()->workingDatabase());
   text->upgradeOpen();
   text->setVerticalMode(AcDb::kTextVertMid);
   text->setHorizontalMode(AcDb::kTextMid);
   AcDbObjectId objId=add_to_db(text);
   text->close();

   …………
发表于 2003-4-22 15:08 | 显示全部楼层

你没有将文字加入图形中

 楼主| 发表于 2003-4-23 14:18 | 显示全部楼层

ok

the problem is resolved, i forgot set the text's position
thank you
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-5-20 13:41 , Processed in 0.201389 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表