几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   ObjectARX(C++) (http://www.dimcax.com/hust/forumdisplay.php?f=34)
-   -   【转帖】[问题] acgitextstyle (http://www.dimcax.com/hust/showthread.php?t=7044)

yang686526 2009-04-16 06:42 PM

【转帖】[问题] acgitextstyle
 
[问题] acgitextstyle
[问题] acgitextstyle
描述:
在一个自定义实体的程序中,我使用了一个文字.文字的生成是在 worlddraw 事件中使用 gemotry().text 生成的.使用了第二种模式.使用 acgitextstyle 进行文字样式赋值.
现状:
一切按想像中进行,能够正确赋上文字样式.
问题:
只要我把arx一下掉.文字不见了,变成了一个点,而重载arx的动作却不能成功.提示说访问冲突.
请问应该如何解决?
if(fromacdbtextstyle(stxtsty, m_styname) != acad::eok)
{
acutprintf(_t("\ncopy文字样式出错,不能生成文字."));
return;
}
stxtsty.loadstylerec();
stxtsty.settextsize(2.5 * m_scale);
mode->geometry().text(inspt, acgevector3d::kzaxis, acgevector3d::kxaxis, m_textstring, m_rectwidth * 0.8, adesk::kfalse, stxtsty);
变量说明:
stxtsty : 将要在worlddraw中使用的文字样式(acgitextstyle)
m_styname: 文字样式名(cstring)
m_rectwidth: 文字宽度 (double)
m_scale: 当前比例 (double)
m_textstring: 文字字符串(cstring)
:55编辑过]


所有的时间均为北京时间。 现在的时间是 07:24 PM.