Implement Calculation - Intergraph Smart Electrical - Help - Hexagon

Intergraph Smart Electrical Help

Language
English
Product
Intergraph Smart Electrical
Search by Category
Help
Smart Electrical Version
10
  1. Create a C# project with type DLL.

  2. On the project Properties dialog box, type a project name.

  3. Create a reference to the file located in <Smart Electrical Installation Path>\bin\SpelCustomUIInf.dll, for example: "C:\Program Files (x86)\SmartPlant\Electrical\bin\SpelCustomUIInf.dll".

  4. Create a reference to the file located in <Smart Electrical Installation Path>\bin\ISPClientData3V2.dll, for example: "C:\Program Files (x86)\SmartPlant\Electrical\bin\ISPClientData3V2.dll".

  5. Create a class containing your code.

    Calculation implements the interface ISPELCalculate, which contains the DoCalculate method (SpelCustomUIInf reference).

  6. Compile the C# project, locate the .DLL file and place it in the required folder <Smart Electrical Installation Path>\bin\>.

  7. Open the Data Dictionary Manager (Data Dictionary Manager.exe) and select Database Tables PPM All Outputs Graphic.

  8. Select the required item (for example, Plant Item) and double-click the required property of that item (for example, Name)

    SHARED Tip You need to have an understanding of the database table structure in order to decide which item and property to select.

  9. Beside Calculation ID, type a ProgID, which is usually made up of <C# Project name>.<Class name>. For example, if the C# Project name is CustomCalculation and the class name is MotorCalculation.cs, the ProgID you type is CustomCalculation.MotorCalculation.

  10. Run Smart Electrical to check that the code works (make sure that you are connected to the correct plant).