SolidWorksMakroprogrammierung

Eigenschaft · MotionPlotAxisFeatureData

Type-Eigenschaft (MotionPlotAxisFeatureData)

Liest oder setzt, welche Ergebnisgröße die Achse zeigt, etwa Zeit, Verschiebung, Geschwindigkeit oder Kraft.

Syntax

Property Type As Long
swYAchse.Type = swMotionPlotAxisType_TRANS_VELOCITY

Wert

Ein Wert aus swMotionPlotAxisType_e, etwa swMotionPlotAxisType_TRANS_DISP (6) für die lineare Verschiebung, swMotionPlotAxisType_TRANS_VELOCITY (7) für die lineare Geschwindigkeit oder swMotionPlotAxisType_REACTION_FORCE (14) für die Reaktionskraft. Für die x-Achse gibt es dem Namen nach swMotionPlotAxisType_XAXISTIME (0) für die Zeit und swMotionPlotAxisType_XAXISFRAME (1) für die Bildnummer.

Beispiel

' swYAchse sind die Daten einer y-Achse (MotionPlotAxisFeatureData), etwa aus
' CosmosMotionStudyResults.CreatePlotYAxisFeatureData.
swYAchse.Type = swMotionPlotAxisType_TRANS_VELOCITY
swYAchse.Component = swMotionPlotAxisComponent_Y
Debug.Print "Ergebnisgröße: " & swYAchse.Type

Bemerkungen

Die Hilfe nennt den Wert „type of plot“, die Art des Diagramms. Er gehört aber zu einer Achse: Das Hilfebeispiel „Create Plots and Get Values“ setzt ihn an zwei y-Achsen auf swMotionPlotAxisType_TRANS_DISP und swMotionPlotAxisType_TRANS_VELOCITY und legt so ein Diagramm der Verschiebung und eines der Geschwindigkeit an. An der x-Achse setzt es nichts. Welcher Wert dann gilt, sagt die Hilfe nicht, vermutlich die Zeit.

Bei vektoriellen Größen wählst du mit MotionPlotAxisFeatureData.Component zusätzlich die Komponente.

Siehe auch

Verfügbarkeit

SOLIDWORKS 2011

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

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