Namespaces |
| Namespace | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| EMInvent.InventSim | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| EMInvent.InventSim.COMServer | This document contains detailed description of InventSim COM interface. The application offers a set of classes that expose its functionality through Common Object Model interface. This allow the application to be used as a COM automation server by other applications. COM API architecture All classes and interfaces are located in EMInvent.InventSim.COMServer namespace. In order to create InventSim server the main application class needs to be instantiated by using ProgID of InventSim "EMInvent.InventSim.App". How you create an Automation server depends on the controller you are using. Consult your controller's documentation for this information. The App class gives application's level functionality such as managing projects, accessing application options and starting simulations. InventSim can have multiple projects opened at once. Currently edited project can be accessed by ActiveProject property. This property gives the reference to IProject object which groups all project's level data i.e. simulated structures, variables, materials, simulation options etc. Please see IProject description for more information. Passing physical quantities Many of the project parameters other than just boolean values or numbers. These include positions and physical quantities such as length, angle, voltage etc. In order to keep API simple, InventSim does not provide classes for managing positions or physical quantities. Instead, to pass such quantities via COM interface string form is used. The string consists of two parts:
separated by a space. For example, to set length of 5 millimeters, pass "5 mm" string as a parameter value. Unit symbol can be omitted in which case default unit will be used (as defined in application/project settings). Values of some of the parameters can be specified using previously defined variables. In such a case the variable name is used instead of numerical value. The list of all supported quantities as well as units, in alphabetical order, is shown below.
Positions in 2D and 3D space must be passed as string their components (two and three respectively) separated by semicolons ";". Positions can be defined in different coordinate systems specified below. In order to pass position in particular coordinate system, unit symbols should be used for each position component. List of components for 2D and 3D coordinate systems are shown below.
| |||||||||||||||||||||||||||||||||||||||||||||||||||||
| EMInvent.InventSim.Materials | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| EMInvent.InventSim.Presentation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| EMInvent.InventSim.Simulator |