Hi, Im attempting to use a finite element analysis program (infolytica Magnet), in conjunction with MAtlab R2011a by using activeX. I dont have much experience with activeX, however, i have found some code from the software distributor (Infolytica), which should allow both programs to communicate with each other. This code should open up the FEA software, and draw a line. code:
MN6 = actxserver ('Magnet.Application'); MN6.Visible = 'true'; % set MagNet constants Consts = invoke(MN6, 'getConstants'); % open new document dev = invoke(MN6, 'newDocument'); % draw a line on the screen invoke(dev, 'newConstructionSliceLine', 3, 0, 5, 2)
error which i receive:
??? No public field Visible exists for class COM.Magnet_Application.
Error in ==> Matlab_server at 2 MN6.Visible = 'true';
Im not sure why this error is coming up. Any help, would be greatly appreciated.