SolidWorksMakroprogrammierung

Enumeration · SwConst

swSimulationMotorDriveType_e-Enumeration

Welche Größe ein Motor in einer Bewegungsstudie vorgibt: Weg, Geschwindigkeit oder Beschleunigung. Für SimulationMotorFeatureData.DriveType und InterpolatedMotor.

Bibliothek SwConst · 3 Werte · im Code direkt mit Namen verwendbar, zum Beispiel swSimulationMotorDrive_Displacement

Syntax

Enum swSimulationMotorDriveType_e
    swSimulationMotorDrive_Displacement = 0
    swSimulationMotorDrive_Velocity     = 1
    swSimulationMotorDrive_Acceleration = 2
End Enum

Werte

KonstanteWertBedeutung
swSimulationMotorDrive_Displacement0Weg (Verschiebung bzw. Drehwinkel).
swSimulationMotorDrive_Velocity1Geschwindigkeit.
swSimulationMotorDrive_Acceleration2Beschleunigung.

Beispiel

' swMotor ist eine SimulationMotorFeatureData, etwa aus MotionStudy.CreateDefinition.
Dim bOk As Boolean
swMotor.InterpolatedMotor swSimulationMotorDrive_Velocity, 1
bOk = swMotor.LoadSplineData("C:\Daten\Geschwindigkeit.csv")

Bemerkungen

Du setzt den Wert mit SimulationMotorFeatureData.DriveType oder zusammen mit dem Interpolationsverfahren über SimulationMotorFeatureData.InterpolatedMotor. Dem Namen nach gibt er an, ob die Datenpunkte eines interpolierten Motors den Weg, die Geschwindigkeit oder die Beschleunigung beschreiben.

Die Hilfe beschreibt die Werte nur mit ihrem Namen und nennt keine Konstanten für das Interpolationsverfahren.

Verwendet von

Siehe auch

Englisches Original: swSimulationMotorDriveType_e in der SOLIDWORKS API-Hilfe ↗

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