This part is a revision of Air Filter (compressor) by poire, thank you: https://www.thingiverse.com/thing:2802825
Threaded attachment broke off the original filter, needing replacement.
From poire's model, I took off the threaded portion and added the appropriate size for the Harbor Freight Central Pneumatic 40400 air compressor. The threads measure 19.2 mm (0.756 inches) outer diameter, with 1.5 mm thread pitch. Could not figure out what formal screw size this is.
Made the threads using this library by marcaxi, thank you: https://www.thingiverse.com/thing:31363
Printed the other half of the original filter design by poire and noticed that they do not fit together well at the joining lip. Consider printing the other half (not in this design) at 2% size reduction in those two cartesian directions to see if it will fit.
Printed at 0.3 mm layer height with vertical supports. Used PETG, sure that anything will work.
The old filter I replaced had a wing nut for 10-32 threads. Used a 1.5 inch 10-32 screw for the replacement.