SolidWorksMakroprogrammierung

Methode · SimulationMotorFeatureData

ConstantSpeedMotor-Methode (SimulationMotorFeatureData)

Stellt den Motor auf eine konstante Drehzahl.

Syntax

Sub ConstantSpeedMotor( _
   ByVal Speed As Double _
)
swMotor.ConstantSpeedMotor 60

Parameter

SpeedDoubleByVal
Die Drehzahl, nach Angabe der Hilfe in U/min.

Beispiel

' swModel ist die Baugruppe (ModelDoc2), swFeat ein Motor-Feature (Feature).
Dim swMotor As SldWorks.SimulationMotorFeatureData
Set swMotor = swFeat.GetDefinition
swMotor.ConstantSpeedMotor 30                ' 30 U/min
If False = swFeat.ModifyDefinition(swMotor, swModel, Nothing) Then Debug.Print "Ändern fehlgeschlagen"

Bemerkungen

Welche Einheit bei einem Linearmotor gilt, sagt die Hilfe nicht. Vermutlich stellt die Methode auch SimulationMotorFeatureData.MotionType auf swSimulationMotorMotion_Constant.

Siehe auch

Verfügbarkeit

SOLIDWORKS 2009

Englisches Original: ISimulationMotorFeatureData::ConstantSpeedMotor in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)

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