ドキュメントの DimStyles コレクションを取得します。
サポートされているプラットフォーム: Windows のみ
追加の注意はありません。
VBA:
Sub Example_DimStyles()
' This example adds a new dimension style.
Dim dimStyle As AcadDimStyle
Set dimStyle = ThisDrawing.DimStyles.Add("TEST")
MsgBox "A new dimension style called " & dimStyle.name & " has been added to the Dimstyles collection.", vbInformation, "Dimstyles Example"
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_DimStyles()
;; This example adds a new dimension style.
(setq acadObj (vlax-get-acad-object))
(setq doc (vla-get-ActiveDocument acadObj))
(setq dimStyle (vla-Add (vla-get-DimStyles doc) "TEST"))
(alert (strcat "A new dimension style called " (vla-get-Name dimStyle) " has been added to the Dimstyles collection."))
)