HVAC
Administrator Guide
DRAW Sketches
:
Assembly Tables and Endpoint Tables
: Common Object
Common Object
The system uses 1 object that does all the work to produce HVAC Sketch Drawings. This is so you do not have to use the form and graphics mode to produce a batch of drawings.
The common object is a Global instance of a hvacSketches object called !!hvacSketch.
The key members are:
!!hvacSketch.createIn
= DBREF (Must be an existing Registry - REGI element)
!!hvacSketch.selectedTemplate
= DBREF (Must be an existing Drawing - DRWG element)
!!hvacSketch.hvacSpool
= DBREF (Must be an existing HVAC Spool -HSPOOL element)
Optional members are:
!!hvacSketch.logFile
= FILE (The Form or User must write and read this file)
!!hvacSketch..drawingPrefix
= STRING (Default is 'DR')
!!hvacSketch..sheetPrefix
= STRING (Default is 'S')
Other Members set and used in the background by the system:
!!hvacSketch..type
= STRING (Will always be 'drawing' or 'drtmpl')
!!hvacSketch..drawing
= DBREF (System records the new drawing)
!!hvacSketch..sheet
= DBREF (System records the new sheet)
!!hvacSketch..backingSheet
= DBREF (System records the backing sheet being used)
!!hvacSketch..mtoHeadings
= ARRAY (Array of strings read from backing sheet MTO table)
!!hvacSketch..assemblyHeadings
= ARRAY (Array of strings read from assembly table)
!!hvacSketch..logData
= ARRAY (Array of comment strings that user or form can read)
Example
!!hvacSketch.createIn
= object DBREF ('/MyRegistry')
!!hvacSketch.selectedTemplate
= object DBREF ('/MyTemplateDrawing')
!!hvacSketch.hvacSpool
= object DBREF ('/MyHvacSpool')
-- Then to create the sketch
!!hvacSpool.apply()
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.