Eigenschaft · SimulationMotorFeatureData
MotionType-Eigenschaft (SimulationMotorFeatureData)
Liest oder setzt die Bewegungsart des Motors, etwa konstant, Sprung, harmonisch, Ausdruck oder Spline.
Syntax
Property MotionType As LongswMotor.MotionType = swSimulationMotorMotion_ConstantWert
Ein Wert aus swSimulationMotorMotionType_e.
Beispiel
' swMotor ist die Definition eines Motors (SimulationMotorFeatureData), etwa aus Feature.GetDefinition.
Select Case swMotor.MotionType
Case swSimulationMotorMotion_Constant: Debug.Print "konstant"
Case swSimulationMotorMotion_Harmonic: Debug.Print "harmonisch"
Case swSimulationMotorMotion_Function: Debug.Print "Ausdruck: " & swMotor.Expression
Case Else: Debug.Print "Bewegungsart " & swMotor.MotionType
End SelectBemerkungen
Ob die Methoden SimulationMotorFeatureData.ConstantSpeedMotor, SimulationMotorFeatureData.DistanceMotor, SimulationMotorFeatureData.OscillatingMotor und SimulationMotorFeatureData.InterpolatedMotor die Bewegungsart mit setzen, sagt die Hilfe nicht. Vermutlich tun sie es.
Siehe auch
Verfügbarkeit
SOLIDWORKS 2009
Englisches Original: ISimulationMotorFeatureData::MotionType in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)
Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.