Methode · Configuration
CopyDisplayStateFromConfiguration-Methode (Configuration)
Kopiert einen Anzeigezustand aus einer anderen Konfiguration in diese.
Syntax
Function CopyDisplayStateFromConfiguration( _
ByVal CopyFromConfig As Configuration, _
ByVal DisplayStateNameToCopy As String _
) As BooleanbErfolg = swConfig.CopyDisplayStateFromConfiguration(swQuelle, "Anzeigezustand-1")Parameter
CopyFromConfigConfigurationByVal- Die Konfiguration, aus der kopiert wird.
DisplayStateNameToCopyStringByVal- Name des Anzeigezustands.
Rückgabewert
True, wenn kopiert, sonst False.
Beispiel
' swConfig ist eine Configuration, etwa aus ConfigurationManager.ActiveConfiguration.
' swModel ist das Dokument.
Dim swQuelle As SldWorks.Configuration
Dim vZ As Variant
Set swQuelle = swModel.GetConfigurationByName("Standard")
vZ = swQuelle.GetDisplayStates
If False = swConfig.CopyDisplayStateFromConfiguration(swQuelle, vZ(0)) Then Debug.Print "Nicht kopiert"Bemerkungen
Die Namen der Anzeigezustände der Quelle liefert Configuration.GetDisplayStates an der Quelle. Der Konfigurationsname im Beispiel ist ein Platzhalter.
Siehe auch
Verfügbarkeit
SOLIDWORKS 2006
Englisches Original: IConfiguration::CopyDisplayStateFromConfiguration in der SOLIDWORKS API-Hilfe ↗ (dort mit dem .NET-Namen)
Fragen zu diesem Befehl oder ein Befehl fehlt? Frag im Discord.