Methode · Feature
SetBodiesToKeep-Methode (Feature)
Legt fest, welche Körper ein Feature behält, das mehrere Körper erzeugt, etwa ein Schnitt.
Syntax
Sub SetBodiesToKeep( _
ByVal AllBodies As Boolean, _
ByVal BodiesToKeep As Variant, _
ByVal ConfigOption As Long, _
ByVal ConfigNames As Variant _
)swFeat.SetBodiesToKeep True, Empty, swAllConfiguration, EmptyParameter
AllBodiesBooleanByValTrue: alle Körper behalten.BodiesToKeepVariantByVal- Array mit den
Body2-Objekten, die bleiben sollen, wenn nicht alle. ConfigOptionLongByVal- Für welche Konfigurationen, ein Wert aus
swInConfigurationOpts_e. ConfigNamesVariantByVal- Array mit Namen von Konfigurationen, sonst
Empty.
Beispiel
' swFeat ist ein Schnitt, der das Teil in mehrere Körper zerlegt.
swFeat.SetBodiesToKeep True, Empty, swAllConfiguration, EmptySiehe auch
Verfügbarkeit
SOLIDWORKS 2008
Englisches Original: IFeature::SetBodiesToKeep in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)
Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.