Klik op het logo voor hulp op afstand
  
 
 
 
 
 
 
 




The projectpool class


The projectpool class is used to manage open projects in JoPPS. Only one project in the projectpool can be the active project. The active project is the project the user is currently working on - this active project is called the current project. Hierachical overview of the projectpool and related project objects:

_PROJECTPOOL
Container class : holds all open projects.
Do not instanciate but use the POOL variable to use the JoPPS projectpool.
PROJECT
Represents a single open project, holds information concerning the creator of the project, its changed flag, etc.
Atoms (1)
PROJECTDATA
Holds all technical information for a project. Holds the list of assemblies.
ASSEMBLY
Represents a single assembly. An assembly can consist of one or more
frameparts.
FRAMEPART
Represents a framepart. A framepart can hold frameelement, segment and/or frameopening objects.
FRAMEELEMENT
Represents a single frameelement.
SEGMENT
Represents a segment.
FRAMEOPENING
Represents a frameopening. Can point to a filling or a vent definition.
VENTPART
Represents a ventpart. A ventpart can hold ventelement and/or ventopening objects.
VENTELEMENT
Represents a single ventelement.
VENTOPENING
Represents a ventopening. A ventopening always points to a filling. (no nested vents)

(1) Within JoPPS object instances of the class PROJECTDATA, ASSEMBLY, FRAMEPART, FRAMEELEMENT, SEGMENT, FRAMEOPENING, VENTPART, VENTELEMENT or VENTOPENING are called atoms.

Projectpool (holds all open projects)
Project 1
Project 2 (=current)
Project 3
Project 4
Project 5

 
Do not instanciate objects of the _PROJECTPOOL class, the variable POOL can be used to access the
projectpool at all times.
 
The _PROJECTPOOL class is a container holding object instances of the class project. The projectpool maintains a list of all open projects in JoPPS.
 
To use the projectpool one should never instanciate (or free) a _PROJECTPOOL object; access the projectpool via the global POOL variable.
 
One project in the projectpool is called the current project : the project currently selected by the user
in the JoPPS IDE.
 
The projectpool can be used to create new projects, open existing projects, edit and save existing projects and so on.
 
A PROJECT object holds a single PROJECTDATA class object. The PROJECTDATA class is used to hold
project related parameters and all technical data including the different assemblies

Methods
ADD ([Sfn[,Sdesc[,Sparams[,Stype[,StemplateFn]]]]]) : Dndx
 
CLOSE ([Bdiscard]) : Dndx
Closes the current project. The index of the new current project is returned. If Bdiscard is TRUE the project is always closed. A return value of -1 means the projectpool is empty.
NEW ([Sfn[,Sdesc[,Sparams]]]) : Dndx
Creates a new empty project. If specified the project is given the name Sfn and description Sdesc. Sparams is a list of initialization parameters similar to the ProjectNew function.
OPEN ([Sfn]) : Dndx
Opens the specified project (or template) and returns its index in the projectpool. (-1 if failed)
SAVE : B
Saves the current project. Returns TRUE if successful.
SAVEAS ([Sfn]) : B
Saves the current project under a new name. Returns TRUE if successful.
Properties
COUNT : Dcnt
Read-only, returns the number of open projects managed in the JoPPS projectpool.
CURRENT : Dndx
Read-only, returns the index of the current project in the projectpool. A value of -1 means there is no current project. (and thus there are no open projects)
CURRENTPROJECT : Oproject
Read-only, returns the current project object.
PROJECTS [Dndx] : Oproject
Read-only, array holding all open project objects. Dndx ranges from 0 till COUNT-1.

 

 




 |  History  |
 
 

 
 
 
TECHWIN SOFTWARE
De Regenboog 11
B-2800 Mechelen
T +32(0)15 44 64 64
T +31(0)30 899 32 15 Nederland