Example PGM Files 9.3

From SysCAD Documentation
Jump to navigation Jump to search
Warning! Page you're reading is outdated or was archived and very likely is referring to older version of the software. Please navigate to the most recent version instead.

Navigation: PGMs

Tutorial Tutorial Videos Getting Started Modelling Guideline
& Check List
Example Projects Example Reports Example PGM Files

Simple Example PGM Files

Subroutine Examples

Example Model Procedure files

PGM Files using Class and Functions

Using Array and Matrix

Quick Mass balance using Predefined Class: TagSelect

User Defined Class and Functions

Class and Function can be written as part of the main PGM file OR separately in its own file.

  • If the Class or function can be used by multiple PGM or projects, it is best to store the code in a separate file, so it can be re-used easily.
  • Please see Sharing Classes between Projects for more information.

In the following two examples, the Class definition is stored in a separate pgm file, the class pgm file is inserted using the include file syntax when it is required.

In the following examples, the Class is written as part of the PGM code. User may copy the class definition into its own file if required.

Example - For Dynamic Projects