找回密码
 立即注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

查看: 425|回复: 5

[求助]:请问如何删除或修改一个标注?

[复制链接]
发表于 2003-5-20 17:31:23 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
如题。

把图1的标注(dim1)改为其他的字符譬如图2(new dim)
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
 楼主| 发表于 2003-5-20 17:32:24 | 显示全部楼层
图2
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2003-5-20 19:09:47 | 显示全部楼层
yuning
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2003-5-21 15:44:12 | 显示全部楼层
楼上的,这个我也知道,我想领用程序来修改,如何实现呢?
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

发表于 2003-5-22 13:46:34 | 显示全部楼层
打开标注实体后用
Acad::ErrorStatus
setDimensionText(

    const char* text);

text        Input text string to use for dimension

This function sets the dimension to use a copy of text as the user-supplied dimension annotation text string. This string will need to contain any desired multiline text formatting characters.
This function returns a copy of the user-supplied dimension annotation text string (including any multiline text formatting characters).
If the default text is the only text in the dimension, provide this function with an empty string (for example, 灯). If the dimension contains user-defined text along with the defualt text, provide this function with the default text denoted with angle brackets (for example, 典his is the default text <>&#12539;. If the dimension contains no text, for example using the &#12539;&#12539;syntax), provide the &#12539;&#12539; Finally if the text is user defined, but there is no default text, provide only the user-defined text to this function.

To set the dimension to use only the default text in the block table record, call this function with text==NULL. Then when the dimension is closed, the dimension text string will be set to an empty string and the default text will be used.
The annotation text string is used for DXF group code 1.
This function returns Acad::eOk.

获取text用
char*

dimensionText() const;

This function returns a copy of the user-supplied dimension annotation text string (including any multiline text formatting characters).
If the default text is the only text in the dimension, this function will return an empty string (for example, 灯). If the dimension contains user-defined text along with the defualt text, this function will return the text with the default text denoted with angle brackets (for example, 典his is the default text <>&#12539;. If the dimension contains no text, for example using the &#12539;&#12539;syntax), it will return the &#12539;&#12539; Finally, if the text is user defined but there is no default text, only the user-defined text is returned.

Call AcDbDimension::measurement() to obtain the default measurement and computed text.
Alternately, to identify the substring in the block table record is, you can look at the AcDbText entity within the block table record (the object ID for this block table record can be obtained via AcDbDimension::dimBlockId()).
The caller of this function is responsible for deallocating the memory used by the returned text string using the C++ delete[] operator.

The annotation text string is used for DXF group code 1.
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2003-5-26 10:59:22 | 显示全部楼层
谢谢楼上的,不过我如何才能获得一个标注实体呢?
论坛插件加载方法
发帖求助前要善用【论坛搜索】功能,那里可能会有你要找的答案;
如果你在论坛求助问题,并且已经从坛友或者管理的回复中解决了问题,请把帖子标题加上【已解决】;
如何回报帮助你解决问题的坛友,一个好办法就是给对方加【D豆】,加分不会扣除自己的积分,做一个热心并受欢迎的人!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|申请友链|Archiver|手机版|小黑屋|辽公网安备|晓东CAD家园 ( 辽ICP备15016793号 )

GMT+8, 2024-9-20 22:58 , Processed in 0.175754 second(s), 41 queries , Gzip On.

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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