Methode · Component2
GetRemainingDOFs-Methode (Component2)
Ohne Beschreibung in der Hilfe. Dem Namen nach: liefert die Freiheitsgrade, die einer Komponente noch bleiben.
Syntax
Function GetRemainingDOFs( _
ByRef Rpoint1_status As Long, _
ByRef Rpoint1 As MathPoint, _
ByRef Rdirection1_status As Long, _
ByRef Rdirection1 As MathVector, _
ByRef Rpoint2_status As Long, _
ByRef Rpoint2 As MathPoint, _
ByRef Rdirection2_status As Long, _
ByRef Rdirection2 As MathVector, _
ByRef Tdirection1_status As Long, _
ByRef Tdirection1 As MathVector, _
ByRef Tdirection2_status As Long, _
ByRef Tdirection2 As MathVector _
) As LongnAnzahl = swComp.GetRemainingDOFs(n1, swP1, n2, swR1, n3, swP2, n4, swR2, n5, swT1, n6, swT2)Rückgabewert
Ohne Beschreibung in der Hilfe.
Beispiel
' swComp ist eine Component2, etwa aus AssemblyDoc.GetComponents.
Dim n1 As Long, n2 As Long, n3 As Long, n4 As Long, n5 As Long, n6 As Long
Dim swP1 As SldWorks.MathPoint, swP2 As SldWorks.MathPoint
Dim swR1 As SldWorks.MathVector, swR2 As SldWorks.MathVector, swT1 As SldWorks.MathVector, swT2 As SldWorks.MathVector
Debug.Print swComp.GetRemainingDOFs(n1, swP1, n2, swR1, n3, swP2, n4, swR2, n5, swT1, n6, swT2)Bemerkungen
Die Hilfe nennt nur die Syntax. Den Namen nach stehen R für Drehung (Punkt und Richtung je Achse) und T für Verschiebung (Richtung). Was die Status-Werte und der Rückgabewert bedeuten, ist nicht dokumentiert.
Siehe auch
Verfügbarkeit
In allen aktuellen Versionen vorhanden. Seit wann es den Befehl gibt, nennt die Hilfe nicht.
Englisches Original: IComponent2::GetRemainingDOFs in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)
Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.