乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 90|回复: 7

[求助]怎样自动标注尺寸

[复制链接]

6

主题

10

帖子

2

银币

初来乍到

Rank: 1

铜币
34
发表于 2002-7-17 20:06:00 | 显示全部楼层 |阅读模式
不知用何种函数可实现尺寸的自动标注?
请各位多多指教!!!
此外,能否帮我解释一下下面两个函数中各参数的含义,及此函数的用法
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);
回复

使用道具 举报

16

主题

74

帖子

8

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
138
发表于 2002-7-17 20:17:00 | 显示全部楼层
dimText = NULL
回复

使用道具 举报

16

主题

74

帖子

8

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
138
发表于 2002-7-17 20:30:00 | 显示全部楼层
只要下面变量的值是
dimText = NULL
即可。
回复

使用道具 举报

14

主题

230

帖子

5

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
286
发表于 2002-7-18 08:34:00 | 显示全部楼层
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.
回复

使用道具 举报

14

主题

230

帖子

5

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
286
发表于 2002-7-18 08:36:00 | 显示全部楼层
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
回复

使用道具 举报

6

主题

10

帖子

2

银币

初来乍到

Rank: 1

铜币
34
发表于 2002-8-18 00:34:00 | 显示全部楼层
我想再问一个问题:
  怎样半自动标注尺寸,即所标尺寸为NULL值时的某一倍数?
  或者,在尺寸按自动标注后,怎样想办法使其标注数据都扩大为原来的某一倍数?
回复

使用道具 举报

5

主题

25

帖子

1

银币

初来乍到

Rank: 1

铜币
45
发表于 2005-12-20 12:12:00 | 显示全部楼层
这个标注很简单,就是用来标注弧度什么的,我们都用过的
回复

使用道具 举报

2

主题

87

帖子

3

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
95
发表于 2011-7-30 16:30:00 | 显示全部楼层
我也要得到帮助
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-2-5 14:41 , Processed in 0.333998 second(s), 68 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表