How to use actxserver create serveral independent COM Object?
1 次查看(过去 30 天)
显示 更早的评论
oMaxwell = actxserver('Ansoft.ElectronicsDesktop')
eg. I want to run this code twice to create two independent application desktop, so that I can open two different Projects.
0 个评论
回答(1 个)
Mario Malic
2022-12-6
Try to save both of the application handles.
oMaxwell1 = actxserver('Ansoft.ElectronicsDesktop');
oMaxwell2 = actxserver('Ansoft.ElectronicsDesktop');
See if you get both instances visible:
oMaxwell1.Visible = true;
oMaxwell2.Visible = true;
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Use COM Objects in MATLAB 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!