THIS IS AN EXPERIMENTAL PROJECT.
Please bear with me
Use this as a productivity tool and not as part of the official process.
This project has two main goals in mind:
-
Save me some time while working on the PCN process and avoid tedious and manual processes.
-
I find that programming is one of my favourites (kind of) hobbies to kill some personal time. Plus, as a software engineering student, this is just another project I am working on to get better and to learn new things.
Because of these two reasons, you may find one or two bugs with the program. If you do, feel free to report the issues you encounter so I can work on the patches.
Sometimes it is required to create local directories to store multiple templates for the parts affected by a Part Change Notification. This workflow consist in manually create a directory with the name of the PCN case number, then for every single affected part in the PCN case, one sould create a PCN template file (usually an Excel document).
There is a chance to find a PCN case with a large number of affected parts, so this process just becomes inefficient and tedious, without mentioning the amount of time you should spend on this over and over again.
In order to improve the time of invested in a single case, I have created this program that automatically do this for you.
The program will create a PCN structure for you inside the Documents directory
and automatically place the PCN_template.xlsx
file (for CEs) inside the new
PCN case directory.
Should look something like this:
Documents/
├─ PCN/
│ ├─ PCN_template.xlsx
│ ├─ PCN00002/
│ │ ├─ affected_part1.xlsx
│ ├─ PCN00001/
│ │ ├─ affected_part1.xlsx
│ │ ├─ affected_part2.xlsx
│ │ ├─ affected_part3.xlsx
- The program will first check your Documents directory for a subdirectory called "PCN". This is where all the PCN subdirectories will be created.
- On Windows:
C:\Users\<username>\Documents\PCN
. - On Linux:
$HOME/Documents/PCN
.
If this PCN directory does not exist, the program will ask you if you want to create it. As of now, this is the PATH I chosed for everything to be stored in, so if you decide to not create the directory, then the program will exit.
-
The program will then ask you for the PCN case number. This is usually something like "PCNXXXXXX". You can call it whatever you like, but this is usually the most eficient way to identify a case. If the PCN case already exist, then the program will print an error message and won't create the new directory. Instead, it will ask you again for a valid PCN case number.
-
After successfully creating the PCN case, it will ask you to enter a list of affected parts. Now, it is important to point-out that the list should be in a comma-separated format. Should look like something like this:
RES1234, RES2345, RES3454
Don't worry about the whitespaces, it will handle them automatically. The program will ask you again for this input if it finds a duplicate in the list.
- As seen on the structure shown above, it is recommended to have a
PCN_template.xlsx
file for CEs insideC:\Users\<username>\Documents\PCN
. This is because the program will look for this file and make a copy of the file for every single affected inside the PCN case. It also renames each file as the affected part number.
You can now work on the PCNs that should be ready to upload once finished
- Do not exit when the PCN case number is duplicated. Instead, prompt to enter it again.
- Include the
PCN_template.xlsx
file along with the installation and place it inside the PCN directory.