The paper considers methods of controlling the process of electrodynamic structure simulation in the ANSYS Electronics Desktop software (previously known as ANSYS HFSS). The MATLAB software was leading the computation. In order to transmit data to the ANSYS Electronics Desktop software we employed the Microsoft Component Object Model technology, which makes it possible to combine software components into executables. We used simulation of a planar aperture phased antenna array to show the possibilities and limitations in controlling the ANSYS HFSS software subsequently outputting data to a text file and importing the latter into MATLAB for further computation. We present simulation results for a phased antenna array generated by the ANSYS Electronics Desktop software according to the array model compiled in MATLAB