Synchronisation with the Windows Scheduler
- Last UpdatedMar 14, 2024
- 3 minute read
To create a scheduled task for Synchronisation, proceed as follows:
-
In the Control Panel, select the System and Security category, click Administrative Tools, then Computer Management. The Computer Management window then opens.
-
Go to the Task Scheduler node. Click on Create Basic Task.

-
The Create Basic Task Wizard window is then displayed. Complete the Name and Description (optional) fields. Click Next.

-
Select an option to specify when the Synchronisation process is to be run. Click Next.

-
Provide the date, time and recurrence details as required. Click Next.

-
Select the Start a program option. Click Next.

-
Click Browse.

-
Navigate to the P&ID installation folder and select the Console_Synchronization.exe file.

-
In the Add arguments (optional) field, enter the appropriate parameters to apply to the Synchronisation process.

For example, If the user provides the following parameters, then all the drawings in the SAMproject will be synchronised, and the database will be consolidated:
"SAM" "System_Admin_Master" "Admin" "System Admin" "Admin" "" "ALL" "" "TRUE" "" "TRUE"
Parameters
The following example indicates the parameters that can be set:
"SAM" "System_Admin_Master" "Admin" "System Admin" "Admin" "" "ALL" "" "TRUE" "FALSE" "" "PidReports_SAM_AA"
-
Parameter 1: Project Number
Example: SAM
-
Parameter 2: SQL Username
Example: System_Admin_Master
-
Parameter 3: SQL Password
Example: Admin
-
Parameter 4: Project Role
Example: System Admin
-
Parameter 5: Project Role Password
Example: Admin
-
Parameter 6: Target Internal Drawing ID
Example: Empty value "" will process all drawings available at the project, or specify the [Drawing ID].
-
Parameter 7: Target Drawing Name
Example: ALL will process all drawings available at the project, or specify the path name and drawing name "Full Path\File Name".
-
Parameter 8: Selected Target Drawing Revision
Example: Empty Value "" will process all drawings currently in the working state, or specify which drawings to process based on revision "A B C"
-
Parameter 9: Consolidate after synchronization is completed
Example: TRUE or FALSE
-
Parameter 10: Consolidate single drawing defined at the document ID parameter
Example: TRUE or FALSE
-
Parameter 11: Create output XML file and trigger file only when set to TRUE
Example: TRUE or Empty ""
-
Parameter 12: optional parameter; It will target the reports database to synchronize and consolidate the data using the suffix name AA to filter drawings set with design area AA only.
Example: "PidReports_SAM_AA"
-
-
Click Next to view a summary of the specified task details.

-
Click Finish. The scheduled task is added to the Task Scheduler Library.
