明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2182|回复: 0

注记关联

[复制链接]
发表于 2011-10-20 11:19 | 显示全部楼层 |阅读模式

  1.                         //创建标注
  2.                          AlignedDimension acAliDim = new AlignedDimension()
  3.                          {
  4.                              Point3d pMidPt = pt1 + (pt2 - pt1) * 0.5;
  5.                              XLine1Point = pt1,XLine2Point = pt2, DimLinePoint = pMidPt ,
  6.                              Dimsd1 = true,Dimsd2 = true,Dimse1 = true,Dimse2 = true,Dimtad = 0, Dimasz = 0.0001,
  7.                              Dimtxt = height, Dimdsep = '.',//分隔符
  8.                              Dimzin = 1,//显示前导和后导0
  9.                              Dimdec = digNum,//显示精度
  10.                              DimensionStyle = doc.Database.Dimstyle,
  11.                          };
  12.                          .......
  13.                          对齐标注添加到 图上了,但是和pt1和pt2没有关联,移动pt1和pt2注记没有同步更新。请教 如何关联注记。在cad里面操作是自动关联的。

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

本版积分规则

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

GMT+8, 2024-5-19 01:47 , Processed in 0.219986 second(s), 27 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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