Methode · Face2
GetNextFace-Methode (Face2)
Liefert die nächste Fläche eines Körpers.
Syntax
Function GetNextFace() As ObjectSet swFace = swFace.GetNextFaceRückgabewert
Die nächste Fläche, oder Nothing am Ende.
Beispiel
' swFace ist eine Fläche (Face2), etwa aus Body2.GetFaces oder der Auswahl.
' swBody ist ein Körper.
Dim n As Long
Set swFace = swBody.GetFirstFace
Do While Not swFace Is Nothing
If swFace.GetSurface.IsPlane Then n = n + 1
Set swFace = swFace.GetNextFace
Loop
Debug.Print n & " ebene Flächen"Kürzer geht es mit Body2.GetFaces.
Siehe auch
Verfügbarkeit
SOLIDWORKS 2001Plus
Englisches Original: IFace2::GetNextFace in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)
Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.