SolidWorksMakroprogrammierung

Methode · Feature

GetTexture-Methode (Feature)

Liefert die Textur eines Features in einer Konfiguration.

Syntax

Function GetTexture( _
   ByVal Config_name As String _
) As Texture
Set swTextur = swFeat.GetTexture(sKonfig)

Parameter

Config_nameStringByVal
Name der Konfiguration.

Rückgabewert

Die Texture, oder Nothing, wenn keine Textur aufgebracht ist.

Beispiel

' swFeat ist ein Feature, etwa aus SelectionMgr.GetSelectedObject6 oder ModelDoc2.FirstFeature.
' swModel ist das Dokument.
If Not swFeat.GetTexture(swModel.ConfigurationManager.ActiveConfiguration.Name) Is Nothing Then Debug.Print "Mit Textur"

Siehe auch

Verfügbarkeit

SOLIDWORKS 2005

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

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