SolidWorksMakroprogrammierung

Methode · Component2

GetConstrainedStatus-Methode (Component2)

Liefert, ob eine Komponente unter-, voll oder überbestimmt ist.

Syntax

Function GetConstrainedStatus() As Long
nStatus = swComp.GetConstrainedStatus

Rückgabewert

Ein Wert aus swConstrainedStatus_e, etwa swUnderConstrained (2), swFullyConstrained (3) oder swOverConstrained (4).

Beispiel

' swComp ist eine Component2, etwa aus AssemblyDoc.GetComponents.
If swComp.GetConstrainedStatus = swUnderConstrained Then Debug.Print swComp.Name2 & " ist unterbestimmt"

Siehe auch

Verfügbarkeit

SOLIDWORKS 2001Plus

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

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