ModelByName

SystemModelManager COM nesnesinin ModelByName metodu: Ekipman modelinin (SystemModel) adını döndürür.

Ekipman modelinin (SystemModel) adını döndürür.

ISystemModel

OrtamKullanılabilirlik
Engineering StudioKullanılabilir
Service EngineKullanılmaz
VBAKullanılabilir
VSTAKullanılabilir

bsName as BSTR

VBA

                  Private Sub SystemModelManager()
Dim zSystemModelManager As SystemModelManager
Dim zProject As Project
Dim zName As String
Dim zSymModGuid As SystemModel

Stop
Set zProject = MyWorkspace.ActiveDocument
'Equipment Model ( System Model) only exist in the global project.
If Not zProject.IsGlobal Then

Exit Sub
End If
'Get the Equipment Model
Set zSystemModelManager = zProject.SystemModelManager
Debug.Print ("Number of System Models : " & zSystemModelManager.count)
'SystemModel (First node in the Equipment Model)
Debug.Print (zSystemModelManager.Item(0).DynProperties("Name"))
Debug.Print (zSystemModelManager.Item(0).DynProperties("Guid"))
zName = zSystemModelManager.Item(0).DynProperties("Name")
'Get the SystemModel by Name
Set zSymModGuid = zSystemModelManager.ModelByName(zName)
If Not zSymModGuid Is Nothing Then

Debug.Print (zSymModGuid.DynProperties("Name"))
Else

Debug.Print ("NOTHING")
End If

End Sub
Bu sayfa, COPA-DATA zenon 16 çevrimiçi yardımının Türkçe çevirisidir. Menü ve ayar adları, programdaki gibi bulmanız için İngilizce bırakılmıştır.