SolidWorksMakroprogrammierung

Enumeration · SwConst

swMotionPlotAxisType_e-Enumeration

Welche Ergebnisgröße einer Bewegungsstudie eine Diagrammachse zeigt, etwa Zeit, Verschiebung, Geschwindigkeit, Kraft oder Energie.

Bibliothek SwConst · 34 Werte · im Code direkt mit Namen verwendbar, zum Beispiel swMotionPlotAxisType_XAXISTIME

Syntax

Enum swMotionPlotAxisType_e
    swMotionPlotAxisType_XAXISTIME              = 0
    swMotionPlotAxisType_XAXISFRAME             = 1
    swMotionPlotAxisType_CM_POSITION            = 2
    swMotionPlotAxisType_PRESSURE_ANGLE         = 3
    swMotionPlotAxisType_CM_VELOCITY            = 4
    swMotionPlotAxisType_CM_ACCELERATION        = 5
    swMotionPlotAxisType_TRANS_DISP             = 6
    swMotionPlotAxisType_TRANS_VELOCITY         = 7
    swMotionPlotAxisType_TRANS_ACCELERATION     = 8
    swMotionPlotAxisType_ANGULAR_DISP           = 9
    swMotionPlotAxisType_ANGULAR_VELOCITY       = 10
    swMotionPlotAxisType_ANGULAR_ACCEL          = 11
    swMotionPlotAxisType_TRANS_MOMENTUM         = 12
    swMotionPlotAxisType_ANGULAR_MOMENTUM       = 13
    swMotionPlotAxisType_REACTION_FORCE         = 14
    swMotionPlotAxisType_REACTION_TORQUE        = 15
    swMotionPlotAxisType_PROJ_ANGLES            = 16
    swMotionPlotAxisType_EULER_ANGLES           = 17
    swMotionPlotAxisType_PITCH                  = 18
    swMotionPlotAxisType_BRYANT_ANGLE           = 19
    swMotionPlotAxisType_RODRIQUEZ_PARAM        = 20
    swMotionPlotAxisType_MOTION_APPLIED_FORCE   = 21
    swMotionPlotAxisType_MOTION_APPLIED_TORQUE  = 22
    swMotionPlotAxisType_FRICTION_FORCE         = 23
    swMotionPlotAxisType_FRICTION_MOMENT        = 24
    swMotionPlotAxisType_KINETIC_ENERGY         = 25
    swMotionPlotAxisType_TRANS_KINETIC_ENERGY   = 26
    swMotionPlotAxisType_ANGULAR_KINETIC_ENERGY = 27
    swMotionPlotAxisType_POTENTIAL_ENERGY_DELTA = 28
    swMotionPlotAxisType_POWER_CONSUMPTION      = 29
    swMotionPlotAxisType_TRACE_PATH             = 30
    swMotionPlotAxisType_CONTACT_FORCE          = 31
    swMotionPlotAxisType_REFLECTED_MASS         = 32
    swMotionPlotAxisType_REFLECTED_INERTIA      = 33
End Enum

Werte

KonstanteWertBedeutung
swMotionPlotAxisType_XAXISTIME0Dem Namen nach für die x-Achse: Zeit.
swMotionPlotAxisType_XAXISFRAME1Dem Namen nach für die x-Achse: Bildnummer (Frame) der Studie.
swMotionPlotAxisType_CM_POSITION2Lage des Massenmittelpunkts.
swMotionPlotAxisType_PRESSURE_ANGLE3Dem Namen nach der Druckwinkel.
swMotionPlotAxisType_CM_VELOCITY4Geschwindigkeit des Massenmittelpunkts.
swMotionPlotAxisType_CM_ACCELERATION5Beschleunigung des Massenmittelpunkts.
swMotionPlotAxisType_TRANS_DISP6Lineare Verschiebung.
swMotionPlotAxisType_TRANS_VELOCITY7Lineare Geschwindigkeit.
swMotionPlotAxisType_TRANS_ACCELERATION8Lineare Beschleunigung.
swMotionPlotAxisType_ANGULAR_DISP9Winkelverschiebung.
swMotionPlotAxisType_ANGULAR_VELOCITY10Winkelgeschwindigkeit.
swMotionPlotAxisType_ANGULAR_ACCEL11Winkelbeschleunigung.
swMotionPlotAxisType_TRANS_MOMENTUM12Impuls.
swMotionPlotAxisType_ANGULAR_MOMENTUM13Drehimpuls.
swMotionPlotAxisType_REACTION_FORCE14Reaktionskraft.
swMotionPlotAxisType_REACTION_TORQUE15Reaktionsmoment.
swMotionPlotAxisType_PROJ_ANGLES16Projizierte Winkel.
swMotionPlotAxisType_EULER_ANGLES17Eulerwinkel.
swMotionPlotAxisType_PITCH18Dem Namen nach Nick-, Gier- und Rollwinkel (Pitch, Yaw, Roll).
swMotionPlotAxisType_BRYANT_ANGLE19Bryant-Winkel.
swMotionPlotAxisType_RODRIQUEZ_PARAM20Rodrigues-Parameter. Der Name ist in der API so geschrieben (RODRIQUEZ).
swMotionPlotAxisType_MOTION_APPLIED_FORCE21Dem Namen nach die aufgebrachte Kraft.
swMotionPlotAxisType_MOTION_APPLIED_TORQUE22Dem Namen nach das aufgebrachte Drehmoment.
swMotionPlotAxisType_FRICTION_FORCE23Reibkraft.
swMotionPlotAxisType_FRICTION_MOMENT24Reibmoment.
swMotionPlotAxisType_KINETIC_ENERGY25Kinetische Energie.
swMotionPlotAxisType_TRANS_KINETIC_ENERGY26Kinetische Energie der Translation.
swMotionPlotAxisType_ANGULAR_KINETIC_ENERGY27Kinetische Energie der Rotation.
swMotionPlotAxisType_POTENTIAL_ENERGY_DELTA28Änderung der potenziellen Energie.
swMotionPlotAxisType_POWER_CONSUMPTION29Leistungsaufnahme.
swMotionPlotAxisType_TRACE_PATH30Dem Namen nach die Bahnkurve eines Punkts.
swMotionPlotAxisType_CONTACT_FORCE31Kontaktkraft.
swMotionPlotAxisType_REFLECTED_MASS32Dem Namen nach die reduzierte (auf den Antrieb bezogene) Masse.
swMotionPlotAxisType_REFLECTED_INERTIA33Dem Namen nach das reduzierte (auf den Antrieb bezogene) Trägheitsmoment.

Beispiel

' swErgebnisse ist ein CosmosMotionStudyResults, die Ergebnisse einer berechneten Bewegungsstudie.
' vFlaechen enthält die ausgewählten Flächen als Array.
Dim swDiagramm As SldWorks.MotionPlotFeatureData
Dim swXAchse As SldWorks.MotionPlotAxisFeatureData, swYAchse As SldWorks.MotionPlotAxisFeatureData
Dim swFeat As SldWorks.Feature
Set swDiagramm = swErgebnisse.CreatePlotFeatureData()
Set swXAchse = swErgebnisse.CreatePlotXAxisFeatureData()
Set swYAchse = swErgebnisse.CreatePlotYAxisFeatureData()
swYAchse.Type = swMotionPlotAxisType_TRANS_DISP
swYAchse.Component = swMotionPlotAxisComponent_X
swYAchse.Entities = vFlaechen
Set swFeat = swErgebnisse.InsertPlotFeature(swDiagramm, swXAchse, swYAchse)

Bemerkungen

Du setzt den Wert mit MotionPlotAxisFeatureData.Type auf den Achsendaten eines Diagramms. Bei vektoriellen Größen wie Verschiebung oder Geschwindigkeit wählst du mit MotionPlotAxisFeatureData.Component zusätzlich die Komponente, zum Beispiel x, y, z oder den Betrag aus swMotionPlotAxisComponent_e.

Die Achsendaten und das Diagramm-Feature legst du mit den Befehlen von CosmosMotionStudyResults aus der Bibliothek der Bewegungsstudien (SwMotionStudy) an, nicht aus der SldWorks-Bibliothek.

Die Hilfe beschreibt die Werte nur mit ihrem Namen. Sie sagt nicht, welche Größen für welche Art von Bewegungsstudie und welche Elemente zulässig sind.

Verwendet von

Siehe auch

Englisches Original: swMotionPlotAxisType_e in der SOLIDWORKS API-Hilfe ↗

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