SolidWorksMakroprogrammierung

Enumeration · SwConst

swViewOrientationUpAxisFlyout_e-Enumeration

Welche Achse im Auswahlmenü zur Ansichtsausrichtung nach oben zeigt: Y oder Z. Für ModelView.UpAxisFlyout.

Bibliothek SwConst · 2 Werte · im Code direkt mit Namen verwendbar, zum Beispiel swViewOrientationUpAxisFlyout_Y_Up

Syntax

Enum swViewOrientationUpAxisFlyout_e
    swViewOrientationUpAxisFlyout_Y_Up = 0
    swViewOrientationUpAxisFlyout_Z_Up = 1
End Enum

Werte

KonstanteWertBedeutung
swViewOrientationUpAxisFlyout_Y_Up0Y-Achse nach oben.
swViewOrientationUpAxisFlyout_Z_Up1Z-Achse nach oben.

Beispiel

' swModel ist das aktive Dokument (ModelDoc2), ein Teil oder eine Baugruppe.
Dim swModView As SldWorks.ModelView
Set swModView = swModel.ActiveView
If swModView.UpAxisFlyout = swViewOrientationUpAxisFlyout_Y_Up Then
    swModView.UpAxisFlyout = swViewOrientationUpAxisFlyout_Z_Up
End If

Bemerkungen

Du liest und setzt den Wert mit ModelView.UpAxisFlyout der Modellansicht. Die Eigenschaft gibt es ab SOLIDWORKS 2026 SP01.

Die Hilfe beschreibt die Werte nur mit ihrem Namen. Sie sagt nicht, ob sich mit der Einstellung auch die Standardansichten wie Vorne oder Oben ändern.

Verwendet von

Siehe auch

Englisches Original: swViewOrientationUpAxisFlyout_e in der SOLIDWORKS API-Hilfe ↗

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