Enumeration · SwConst
swLocationLabelText_e-Enumeration
Was im oberen und unteren Teil eines Location Labels in der Zeichnung steht, etwa Blattnummer, Zone oder Ansichtsbuchstabe.
Syntax
Enum swLocationLabelText_e
swLocationLabelTextSheet = 0
swLocationLabelTextSheetWithLabel = 1
swLocationLabelTextZone = 2
swLocationLabelTextViewLetter = 3
swLocationLabelTextText = 4
End EnumWerte
| Konstante | Wert | Bedeutung |
|---|---|---|
swLocationLabelTextSheet | 0 | Dem Namen nach die Blattnummer. |
swLocationLabelTextSheetWithLabel | 1 | Dem Namen nach die Blattnummer mit vorangestellter Bezeichnung. |
swLocationLabelTextZone | 2 | Dem Namen nach die Zone auf dem Blatt. |
swLocationLabelTextViewLetter | 3 | Dem Namen nach der Buchstabe der Ansicht. |
swLocationLabelTextText | 4 | Dem 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.