I attempt to rename the Model name in the document eplorer by the file name as follows
Dim open1 As New OpenFileDialog()
If open1.ShowDialog() = DialogResult.OK Then
Diagram1.LoadBinary(open1.FileName)
DocumentExplorer1.AttachModel(Diagram1.Model)
Diagram1.Model.Name = Path.GetFileNameWithoutExtension(open1.FileName)
End If
But the model name in the document explorer is always 'Model'
If I use another string "MyModel", the Model.Name becomes "MyModel"
Is there a bug here or I am missing something?