SolidWorksMakroprogrammierung

Eigenschaft · AutoBalloonOptions

Layout-Eigenschaft (AutoBalloonOptions)

Liest oder setzt, wie die Positionsnummern um die Zeichenansicht angeordnet werden, etwa im Rechteck oder an der Unterkante.

Syntax

Property Layout As Long
swOptionen.Layout = swDetailingBalloonLayout_Square

Wert

Ein Wert aus swBalloonLayoutType_e, etwa swDetailingBalloonLayout_Square (im Rechteck) oder swDetailingBalloonLayout_Bottom (an der Unterkante). Mit -1 gilt die Vorgabe des Dokuments.

Beispiel

' swModel ist die Zeichnung (ModelDoc2), swOptionen sind ihre Einstellungen für automatische Positionsnummern (AutoBalloonOptions).
Debug.Print "Vorgabe des Dokuments: " & _
    swModel.Extension.GetUserPreferenceInteger(swDetailingAutoBalloonLayout, swDetailingNoOptionSpecified)
swOptionen.Layout = swDetailingBalloonLayout_Circle

Bemerkungen

Die Vorgabe des Dokuments liest und setzt du mit ModelDocExtension.GetUserPreferenceInteger und ModelDocExtension.SetUserPreferenceInteger, mit swDetailingAutoBalloonLayout und der Option swDetailingNoOptionSpecified. Die Übersicht der Dokumenteigenschaften (swUserPreferenceIntegerValue_e) nennt als Option stattdessen swDetailingBalloon.

Bei swDetailingBalloonLayout_Circle gilt AutoBalloonOptions.InsertMagneticLine nicht.

Siehe auch

Verfügbarkeit

SOLIDWORKS 2012

Englisches Original: IAutoBalloonOptions::Layout in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)

Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.