Project Constraints

Each project you create can be set with constraints in the development stages. When these constraints are exceeded the following alert window will appear:

 

 

Contraints are managed with an xml file which has the same name of the project plus the ".Constraints" extension. These files contain default values which can be changed. The purpose of these constraints is to set projects with certain limits to prevent them from becoming too big for the chosen platform they are to be run on.  However, please keep in mind that any value changes made to these contraints may affect project performances.

 

Furthermore, there are some items which consent certain information in the project structure, such as that shown in the Project Explorer Window, to be displayed or hidden.

 

The various attributes in the  ".Constraints" file must be inserted in the right order so that they can be valued correctly. Proceeding this, the ".Constraints" file will be proposed once again with the list of all the attributes that have been set with the default value in the correct order:

 

<?xml version="1.0" encoding="ISO-8859-1" ?>

<Constraints>

<MaxNumVariables>4294967295</MaxNumVariables>

<MaxNumScreens>4294967295</MaxNumScreens>

<MaxNumScripts>4294967295</MaxNumScripts>

<AllowScriptInScreen>1</AllowScriptInScreen>

<AllowILInScreen>1</AllowILInScreen>

<MaxNumScreenObjects>4294967295</MaxNumScreenObjects>

<MaxScreenSizeCx>2147483647</MaxScreenSizeCx>

<MaxScreenSizeCy>2147483647</MaxScreenSizeCy>

<MaxDaysAgeHistoric>65535</MaxDaysAgeHistoric>

<MaxCacheBeforeFlush>32767</MaxCacheBeforeFlush>

<MaxNumberRecordsDL>10000</MaxNumberRecordsDL>

<AllowGradientFill>1</AllowGradientFill>

<EditVariables>1</EditVariables>

<EditDrivers>1</EditDrivers>

<EditStructures>1</EditStructures>

<EditScreens>1</EditScreens>

<EditScripts>1</EditScripts>

<EditShortcuts>1</EditShortcuts>

<EditMenus>1</EditMenus>

<EditParameters>1</EditParameters>

<EditUsers>1</EditUsers>

<EditDLRs>1</EditDLRs>

<EditAlarms>1</EditAlarms>

<EditEvents>1</EditEvents>

<EditSoftLogic>1</EditSoftLogic>

<EditScreenNavigation>1</EditScreenNavigation>

<EditSchedurs>1</EditSchedurs>

<EditScaling>1</EditScaling>

<EditChildProjects>1</EditChildProjects>

<EditNetwork>1</EditNetwork>

<EditOPCDACOM>1</EditOPCDACOM>

<ShowExtendedBrowseTag>0</ShowExtendedBrowseTag>

<AllowBlockProject>1</AllowBlockProject>

 

</Constraints>

 

 

Each attribute means:

 

 

The properties that are not in this file are to be considered active, meaning as if set at 1.  However, those that have been inserted will be managed according to the value entered in the file. Please keep in mind that all the above listed properties may be modified by the programmer and the new settings will be acquired by the project when opened again afterwards  (this means that you will need to close and reopen the project after having modified the  ".Constraints" file).

 

When a child project is created for the same platform of the parent project, it will inherit the same constraints as its parent project.  However, if the child project is created for a different platform, ie. the parent project is Windows 32/64 bit type and child project is WinCE, the child project will inherit the constraints of its platform, therefore the WinCE.constraints, found in the Movicon installation folder.

 

When using the Wizard to create a new project, Movicon will search for an existing ".Constraints" file that has the name of the project to be created. This file is searched for in the Movicon installation folder. When found, it is then copied to the project's destination folder with the project name and ".Constraints" extension.

The files originally created in the installation phase are:

 

Win32.Constraints: file containing the Windows 32/64 bit project constraints

WinCE.Constraints: file containing WinCE project constraints

j2se.Constraints: file containing j2se terminal project constraints

j2me.Constraints: file containing j2me mobile phone project constraints

 

 

See Also