SolidWorksMakroprogrammierung

Enumeration · SwConst

swLocationLabelText_e-Enumeration

Was im oberen und unteren Teil eines Location Labels in der Zeichnung steht, etwa Blattnummer, Zone oder Ansichtsbuchstabe.

Bibliothek SwConst · 5 Werte · im Code direkt mit Namen verwendbar, zum Beispiel swLocationLabelTextSheet

Syntax

Enum swLocationLabelText_e
    swLocationLabelTextSheet          = 0
    swLocationLabelTextSheetWithLabel = 1
    swLocationLabelTextZone           = 2
    swLocationLabelTextViewLetter     = 3
    swLocationLabelTextText           = 4
End Enum

Werte

KonstanteWertBedeutung
swLocationLabelTextSheet0Dem Namen nach die Blattnummer.
swLocationLabelTextSheetWithLabel1Dem Namen nach die Blattnummer mit vorangestellter Bezeichnung.
swLocationLabelTextZone2Dem Namen nach die Zone auf dem Blatt.
swLocationLabelTextViewLetter3Dem Namen nach der Buchstabe der Ansicht.
swLocationLabelTextText4Dem Namen nach ein eigener Text.

Beispiel

' swModel ist die aktive Zeichnung (ModelDoc2).
Dim bOk As Boolean
bOk = swModel.Extension.SetUserPreferenceInteger(swDetailingLocationLabelUpperText, _
    swDetailingLocationLabel, swLocationLabelTextViewLetter)
bOk = swModel.Extension.SetUserPreferenceInteger(swDetailingLocationLabelLowerText, _
    swDetailingLocationLabel, swLocationLabelTextZone)

Bemerkungen

Die Werte gehören zu den Dokumenteigenschaften für Location Labels unter Beschriftungen, Bereich Text. Den oberen Teil liest und setzt du mit ModelDocExtension.GetUserPreferenceInteger und ModelDocExtension.SetUserPreferenceInteger über swDetailingLocationLabelUpperText, den unteren über swDetailingLocationLabelLowerText, beide mit der Option swDetailingLocationLabel.

Die Hilfe beschreibt die Werte nur mit ihrem Namen. Form und Größe des Rahmens wählst du mit swBalloonStyle_e und swBalloonFit_e (swDetailingLocationLabelStyle, swDetailingLocationLabelFit).

Siehe auch

Englisches Original: swLocationLabelText_e in der SOLIDWORKS API-Hilfe ↗

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