明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 3305|回复: 5

怎样用Vla函数设置标注样式的属性

[复制链接]
发表于 2012-4-8 10:05:10 | 显示全部楼层 |阅读模式

  1. (vl-load-com)
  2.   (setq AcadObject   (vlax-get-acad-object)
  3. AcadDocument (vla-get-ActiveDocument AcadObject)
  4. mSpace      (vla-get-ModelSpace AcadDocument)
  5.   )
  6.   ;; 建立标注样式
  7.   (setq dimStyleSel (vla-get-DimStyles AcadDocument))
  8.   (setq newDimStyle (vla-add dimStyleSel str))

建立新的标注样式后怎样设置样式的其他一些属性,最好是用Vla系列函数。
谢谢!
"觉得好,就打赏"
还没有人打赏,支持一下
发表于 2014-2-11 12:35:24 | 显示全部楼层
同问,顶起来!
发表于 2015-3-2 08:03:25 | 显示全部楼层
同问,顶起来
发表于 2016-6-10 13:18:55 | 显示全部楼层
vba技术,,好好学习
发表于 2016-10-18 16:17:23 | 显示全部楼层
谁会用vla设置一个建筑标注就好了
发表于 2021-11-11 15:47:19 | 显示全部楼层
这个,有人知道吗?

找了半天的help,找到这一段
Dimensions created via the AutoCAD user interface are created with the active dimension style plus all document overrides. Dimensions created via ActiveX are created with the active dimension style only. To have the dimensions created via ActiveX take on the document overrides, use the CopyFrom method to copy the dimension style from the document to the active dimension style. This process will copy all existing overrides into the active dimension style.

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

本版积分规则

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

GMT+8, 2025-5-17 09:10 , Processed in 0.137894 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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