オブジェクト、グループ オブジェクト、または画層の印刷スタイル名を指定します。
サポートされているプラットフォーム: Windows のみ
VBA:
object.PlotStyleName
タイプ: すべての図形オブジェクト、AttributeReference、Dimension、Group、Layer、MLeaderLeader、SubDMeshEdge、SubDMeshFace、SubDMeshVertex、SubEntity、SubEntSolidEdge、SubEntSolidFace、SubEntSolidNode、SubEntSolidVertex
このプロパティが適用されるオブジェクト。
読み込み専用: いいえ(書き込み専用の Group オブジェクトを除く)
タイプ: 文字列
オブジェクトの印刷スタイル名。
追加の注意はありません。
VBA:
Sub Example_PlotStyleName()
    ' This example creates a circle in model space and then
    ' finds the current PlotStyleName for the circle.
   
    Dim circleObj As AcadCircle
    Dim centerPoint(0 To 2) As Double
    Dim radius As Double
    
    ' Define the circle
    centerPoint(0) = 0#: centerPoint(1) = 0#: centerPoint(2) = 0#
    radius = 5#
    
    ' Create the Circle object in model space
    Set circleObj = ThisDrawing.ModelSpace.AddCircle(centerPoint, radius)
    ZoomAll
    
    ' Find the PlotStyleName for the circle
    MsgBox "The current PlotStyleName for the circle is " & circleObj.PlotStyleName
        
End Sub
Visual LISP:
(vl-load-com)
(defun c:Example_PlotStyleName()
    ;; This example creates a circle in model space and then
    ;; finds the current PlotStyleName for the circle.
    (setq acadObj (vlax-get-acad-object))
    (setq doc (vla-get-ActiveDocument acadObj))
  
    ;; Define the circle
    (setq centerPoint (vlax-3d-point 0 0 0)  
          radius 5)
    
    ;; Create the Circle object in model space
    (setq modelSpace (vla-get-ModelSpace doc))
    (setq circleObj (vla-AddCircle modelSpace centerPoint radius))
    (vla-ZoomAll acadObj)
    
    ;; Find the PlotStyleName for the circle
    (alert (strcat "The current PlotStyleName for the circle is " (vla-get-PlotStyleName circleObj)))
)