Ekipman modelinin (SystemModel) adını döndürür.
ISystemModel
| Ortam | Kullanılabilirlik |
|---|---|
| Engineering Studio | Kullanılabilir |
| Service Engine | Kullanılmaz |
| VBA | Kullanılabilir |
| VSTA | Kullanı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 SubBu konuda sorunuz mu var?SGE AI bu sayfaya ve ilgili yardım konularına dayanarak yanıtlar.
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.