Initial Commit of the PDM project (ready for DWS migration)

This commit is contained in:
will
2026-04-20 08:42:38 -05:00
commit dda7b664e7
2721 changed files with 442772 additions and 0 deletions

42
helpers/samples/README.md Normal file
View File

@@ -0,0 +1,42 @@
# Input File Format Reference
The actual input CSVs under `helpers/` are gitignored (they are environment-specific
and often large). These samples document the expected format for each script so you
don't have to guess next time.
All sample files use a minimal set of example rows. **No headers**, **UTF-8** (with or
without BOM). Empty lines are skipped.
## Full-path format
Used by `batch_workflows_paths.py` and any script whose CLI takes `--csv` / `-c` and
operates on files already inside the vault.
- One full Windows vault path per line.
- Path must match what `IEdmVault5.GetFileFromPath` expects — i.e. the real location
inside the vault's local view (e.g. `C:\PDM\<VaultName>\...`).
- Extension-sensitive: `.SLDPRT`, `.SLDDRW`, `.SLDASM`, `.pdf`, etc. all count as
distinct files.
See `sample_full_paths.csv`.
## Part-number format
Used by `batch_copy_tree.py` (and other scripts that resolve files by part/document
number rather than path).
- One part number per line.
- No extension, no path.
- Case and dashes/underscores should match the vault's stored value.
See `sample_part_numbers.csv`.
## Filename-only format
Used by older helpers (e.g. the `Code15*.csv` family) that match by filename across
the vault rather than by full path.
- One filename per line, with extension.
- No directory component.
See `sample_filenames.csv`.

View File

@@ -0,0 +1,4 @@
EXAMPLE-PART.SLDPRT
EXAMPLE-DRAWING.SLDDRW
EXAMPLE-LIBRARY-FEATURE.SLDLFP
EXAMPLE-DOCUMENT.PDF
1 EXAMPLE-PART.SLDPRT
2 EXAMPLE-DRAWING.SLDDRW
3 EXAMPLE-LIBRARY-FEATURE.SLDLFP
4 EXAMPLE-DOCUMENT.PDF

View File

@@ -0,0 +1,5 @@
C:\PDM\Drilling_Test\DWS\Data Subs\EXAMPLE-PART.SLDPRT
C:\PDM\Drilling_Test\DWS\PileDRIVER\825 PileDRIVER\MFG\800-TT-001.SLDPRT
C:\PDM\Drilling_Test\DWS\PileDRIVER\825 PileDRIVER\MFG\800-TT-001.SLDDRW
C:\PDM\Drilling_Test\DWS\Assemblies\EXAMPLE-ASSY.SLDASM
C:\PDM\Drilling_Test\DWS\Drawings\EXAMPLE-DRAWING.pdf
1 C:\PDM\Drilling_Test\DWS\Data Subs\EXAMPLE-PART.SLDPRT
2 C:\PDM\Drilling_Test\DWS\PileDRIVER\825 PileDRIVER\MFG\800-TT-001.SLDPRT
3 C:\PDM\Drilling_Test\DWS\PileDRIVER\825 PileDRIVER\MFG\800-TT-001.SLDDRW
4 C:\PDM\Drilling_Test\DWS\Assemblies\EXAMPLE-ASSY.SLDASM
5 C:\PDM\Drilling_Test\DWS\Drawings\EXAMPLE-DRAWING.pdf

View File

@@ -0,0 +1,6 @@
2-80001010
2-80003568
2-80003962
2-TF-80009889
4-804687-02
6-60181-02
1 2-80001010
2 2-80003568
3 2-80003962
4 2-TF-80009889
5 4-804687-02
6 6-60181-02