P# Exercises

Start learning how to write P# scripts

P# is a domain specific scripting language, designed for engineers without much of a development background in the oil and gas industry.  PetroVisor‘s P# Editor is like a sandbox unless specifically set, nothing will be written back into the database.  An extensive on-screen help is available just by hitting the F1 key.

When starting a new P# script, a builder will help guide the user to the basic items needed to build a script, call a header.

  • Scope
  • Entity Set
  • Signals that are needed for the script

  • Calculations are performed in columns which are grouped in tables
  • Running a script does not store changes on the database
  • Running with saving does