Firewall
Newbie level 3
I'm trying to make a CST model from within matlab. Here's the code I have so far:
so far so good; it makes the CST file. However, something weird happens: it made the model, the metal box is there, but it didn't update the history list (it's blank). So, if I either update the history list or run a matlab command like
the box disappears.
Anyone knows why the history list isn't getting updated when using this interface?
Code:
cst = actxserver('CSTStudio.application');
mws = cst.invoke('NewMWS');
brick=invoke(mws,'Brick');
invoke(brick, 'Reset');
invoke(brick, 'Name', 'brick1');
invoke(brick, 'Component','component1');
invoke(brick, 'Material', 'PEC');
invoke(brick, 'Xrange', '0', '2');
invoke(brick, 'Yrange', '0', '3');
invoke(brick, 'Zrange', '0', '5');
invoke(brick, 'Create');
release(brick);
mws.invoke('saveas','TEST.cst','false');
so far so good; it makes the CST file. However, something weird happens: it made the model, the metal box is there, but it didn't update the history list (it's blank). So, if I either update the history list or run a matlab command like
Code:
mws.invoke('rebuild')
Anyone knows why the history list isn't getting updated when using this interface?