SolidWorksMakroprogrammierung

Enumeration · SwConst

swDofStatus_e-Enumeration

Zustände eines Freiheitsgrads (DOF), etwa statisch, frei oder momentan. Die Hilfe nennt nur die Namen und keinen Befehl.

Bibliothek SwConst · 7 Werte · im Code direkt mit Namen verwendbar, zum Beispiel swDofStatus_Unused

Syntax

Enum swDofStatus_e
    swDofStatus_Unused              = 0
    swDofStatus_Static              = 1
    swDofStatus_StaticNormal        = 2
    swDofStatus_Free                = 3
    swDofStatus_FreeNormal          = 4
    swDofStatus_Instantaneous       = 5
    swDofStatus_InstantaneousNormal = 6
End Enum

Werte

KonstanteWertBedeutung
swDofStatus_Unused0Dem Namen nach nicht verwendet.
swDofStatus_Static1Dem Namen nach statisch, der Freiheitsgrad ist also festgelegt.
swDofStatus_StaticNormal2Dem Namen nach statisch, als Variante „Normal“. Die Hilfe sagt nicht, was „Normal“ hier bedeutet.
swDofStatus_Free3Dem Namen nach frei, der Freiheitsgrad ist also nicht festgelegt.
swDofStatus_FreeNormal4Dem Namen nach frei, als Variante „Normal“.
swDofStatus_Instantaneous5Dem Namen nach momentan (instantaneous).
swDofStatus_InstantaneousNormal6Dem Namen nach momentan, als Variante „Normal“.

Beispiel

' nStatus ist ein Wert aus swDofStatus_e.
Select Case nStatus
    Case swDofStatus_Static, swDofStatus_StaticNormal
        Debug.Print "Statisch"
    Case swDofStatus_Free, swDofStatus_FreeNormal
        Debug.Print "Frei"
    Case swDofStatus_Instantaneous, swDofStatus_InstantaneousNormal
        Debug.Print "Momentan"
End Select

Bemerkungen

Die Hilfe beschreibt die Werte nur mit ihrem Namen und nennt keinen Befehl, der sie liefert oder erwartet. Dem Namen nach geht es um Freiheitsgrade (degrees of freedom). Die Hilfe sagt nicht, wo die Werte vorkommen.

Ebenfalls ohne Befehl und ohne Beschreibung ist swRemainingDofs_e für verbleibende Freiheitsgrade.

Siehe auch

Englisches Original: swDofStatus_e in der SOLIDWORKS API-Hilfe ↗

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