明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2474|回复: 5

[ARX]调整AcDbText的对齐样式,怎么找不到函数啊

[复制链接]
发表于 2006-3-26 22:31:00 | 显示全部楼层 |阅读模式
请问,arx中,调整AcDbText的对齐样式,是不是用adjustAlignment函数啊,但是这个函数的参数怎么是一个AcDbDatabase*,我想象中的应该是某个常量(表示是调整,还是左对齐,右对齐啊,等等)吧,让我实在不解,请大家帮我想想办法。
 楼主| 发表于 2006-3-28 18:17:00 | 显示全部楼层

听版主说,一个问题没有人回答,有2,1就是没有把问题说清楚,2就是别人也不知道(或者说起来太麻烦),我自己另外加了一点3,就是问题太没有水平,不值得一问,我想,我的应该时3吧,

但是,一个函数找不到,。。也没有发现相关的例子,实在很poor啊,希望哪位提示一下,简单的两句话,或者相关内容指点指点,不甚感激

发表于 2006-3-29 08:43:00 | 显示全部楼层

这是 HELP 中的说明,也看的不是很懂,望有高手翻译一下吧

virtual Acad::ErrorStatus

adjustAlignment(const AcDbDatabase* pDb = NULL);

pDb Input pointer to database to be used if the text entity is not in a database (this argument is ignored if the text entity is in a database)

Normally when a text entity is closed, the text's position and alignment points are adjusted according to the text's justification settings and the text style. But, if the text entity is embedded in another entity, it will never be closed in which case it won't automatically be adjusted. Or, if the text is added to a transaction before it's first close(), and the graphics are flushed to the screen before the outermost transaction ends, the text will be displayed before the automatic adjustment takes place.

This method allows a way to cause the text to be adjusted on non-database resident text entities or text entities within transactions.

If the text entity is not database resident, then pDb must not be NULL, otherwise Acad::eNoDatabase will be returned. If the text entity is database resident, then the entity's database will be used regardless of the value of pDb.

When this method is called, the database used must also be the current working database (as returned by acdbHostApplicationServices()->workingDatabase()), the text entity must have non-NULL text string data and a valid text style objectId that resides in the database being used, otherwise Acad::eInvalidContext will be returned.

Returns Acad::eOk if successful.

 楼主| 发表于 2006-3-30 21:45:00 | 显示全部楼层
原以为有答案了呢,方知道,跟我差不多啊
发表于 2006-3-30 22:26:00 | 显示全部楼层

设置水平对齐方式:setHorizontalMode

设置垂直对齐方式:setVerticalMode

 楼主| 发表于 2006-3-31 14:37:00 | 显示全部楼层
o,知道了,谢谢啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-11-26 02:03 , Processed in 0.146089 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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