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


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » ObjectARX(C++)
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


 
 
主题工具 搜索本主题 显示模式
旧 2009-04-16, 04:38 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】[求助]怎样自动标注尺寸

[求助]怎样自动标注尺寸
[求助]怎样自动标注尺寸
不知用何种函数可实现尺寸的自动标注?
请各位多多指教!!!
此外,能否帮我解释一下下面两个函数中各参数的含义,及此函数的用法
acdbaligneddimension(
const acgepoint3d& xline1point,
const acgepoint3d& xline2point,
const acgepoint3d& dimlinepoint,
const char* dimtext = null,
acdbobjectid dimstyle = acdbobjectid::knull);
acdb2lineangulardimension(
const acgepoint3d& xline1start,
const acgepoint3d& xline1end,
const acgepoint3d& xline2start,
const acgepoint3d& xline2end,
const acgepoint3d& arcpoint,
const char* dimtext = null,
acdbobjectid dimstyle = acdbobjectid::knull);
所有的尺寸都是自动标注。但
dimtext = null
我还是不太明白,能否在解释详细一点,谢谢!
所有的尺寸都是自动标注。但
只要下面变量的值是
dimtext = null
即可。
先来一个,acdbaligneddimension()的说明(英文)
acdbaligneddimension(
const acgepoint3d& xline1point,
const acgepoint3d& xline2point,
const acgepoint3d& dimlinepoint,
const char* dimtext = null,
acdbobjectid dimstyle = acdbobjectid::knull);
xline1point input start point (in wcs coordinates) of first extension line
xline2point input start point (in wcs coordinates) of second extension line
dimlinepoint input a point (in wcs coordinates) on dimension line itself
dimtext input text string to use as the dimension annotation
dimstyle input object id of acdbdimstyletablerecord to use
this constructor uses the parameters passed in to initialize the dimension. in addition, the extension line obliquing angle is set to 0.0 and the rest of the acdbdimension, acdbentity, and others, default constructor initializations are performed.
a copy of the dimtext string will be used by the dimension.
the dimtext string will need to contain any desired mtext formatting characters. the substring "<>" may be used anywhere within the string as a marker to indicate that the default text should be displayed there in place of the "<>". it is possible to have more than one set of "<>" in the text string, but only the first set will be interpreted as the default text placeholder.
if dimtext is null, then when the dimension is closed, the dimension text string will be set to an empty string and the default dimension text is used. the default dimension text is an automatically generated text string based on the dimstyle, dimvar settings, and the actual measurement of the angle.
if dimstyle is left as acdbobjectid::knull, then the object id of the current default dimstyle within the autocad editor is used.
acdb2lineangulardimension()函数说明
acdb2lineangulardimension(
const acgepoint3d& xline1start,
const acgepoint3d& xline1end,
const acgepoint3d& xline2start,
const acgepoint3d& xline2end,
const acgepoint3d& arcpoint,
const char* dimtext = null,
acdbobjectid dimstyle = acdbobjectid::knull);
xline1start input start point (in wcs coordinates) of first extension line
xline1end input end point (in wcs coordinates) of first extension line
xline2start input start point (in wcs coordinates) of second extension line
xline2end input end point (in wcs coordinates) of second extension line
arcpoint input a point that will be on the dimension arc
dimtext input text string to use as the dimension annotation
dimstyle input object id of dimension style table record to use as the dimension style
谢谢各位指教!!!
怎样半自动标注尺寸
我想再问一个问题:
怎样半自动标注尺寸,即所标尺寸为null值时的某一倍数?
或者,在尺寸按自动标注后,怎样想办法使其标注数据都扩大为原来的某一倍数?
这个标注很简单,就是用来标注弧度什么的,我们都用过的
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭



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


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多