xgr 发表于 2012-4-8 10:05:10

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


(vl-load-com)
(setq AcadObject   (vlax-get-acad-object)
AcadDocument (vla-get-ActiveDocument AcadObject)
mSpace      (vla-get-ModelSpace AcadDocument)
)
;; 建立标注样式
(setq dimStyleSel (vla-get-DimStyles AcadDocument))
(setq newDimStyle (vla-add dimStyleSel str))

建立新的标注样式后怎样设置样式的其他一些属性,最好是用Vla系列函数。
谢谢!

smartstar 发表于 2014-2-11 12:35:24

同问,顶起来!

kkt123 发表于 2015-3-2 08:03:25

同问,顶起来

zlzxtfl 发表于 2016-6-10 13:18:55

vba技术,,好好学习

我爱lisp 发表于 2016-10-18 16:17:23

谁会用vla设置一个建筑标注就好了

fen00 发表于 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.

页: [1]
查看完整版本: 怎样用Vla函数设置标注样式的属性