怎样用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系列函数。
谢谢!
同问,顶起来! 同问,顶起来 vba技术,,好好学习 谁会用vla设置一个建筑标注就好了 这个,有人知道吗?
找了半天的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]