Methode · SimulationMotorFeatureData
InterpolatedMotor-Methode (SimulationMotorFeatureData)
Stellt den Motor auf Datenpunkte und legt fest, welche Größe sie vorgeben und wie interpoliert wird.
Syntax
Sub InterpolatedMotor( _
ByVal DriveType As Long, _
ByVal InterpolationScheme As Long _
)swMotor.InterpolatedMotor swSimulationMotorDrive_Velocity, 1Parameter
DriveTypeLongByVal- Die vorgegebene Größe als Wert aus
swSimulationMotorDriveType_e. InterpolationSchemeLongByVal- Das Interpolationsverfahren als Zahl (siehe Bemerkungen).
Beispiel
' swMotor ist eine neue Motor-Definition (SimulationMotorFeatureData) aus MotionStudy.CreateDefinition.
swMotor.InterpolatedMotor swSimulationMotorDrive_Velocity, 1
If False = swMotor.LoadSplineData("C:\Daten\Geschwindigkeit.csv") Then Debug.Print "Datei nicht geladen"Bemerkungen
So macht es das Hilfebeispiel „Create Linear Motor Feature“. Welche Zahl für InterpolationScheme welches Verfahren ist, sagt die Hilfe nicht, eine Enumeration nennt sie nicht. Die beiden Werte kannst du auch einzeln mit SimulationMotorFeatureData.DriveType und SimulationMotorFeatureData.InterpolationScheme lesen und setzen.
Die Methode stellt SimulationMotorFeatureData.MotionType auf den Wert 4 (swSimulationMotorMotion_Spline), auch wenn SimulationMotorFeatureData.LoadSplineData danach scheitert.
Siehe auch
Verfügbarkeit
SOLIDWORKS 2009
Englisches Original: ISimulationMotorFeatureData::InterpolatedMotor in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)
Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.