Since the Apple Pencil is apparently a little fragile I created a case to store mine in. I've left a bit of space inside the tube. I did this so I could add some felt as padding.
I've included two versions of the lid, with and without the apple logo. I've also included two versions of the bottom. The split version is helpful for anyone who might want to add a fabric lining. It allows you to apply super glue to keep the lining in place.
gcodes are for Flashforge Dreamer
I used ABS with my prints so I could sand them down and dip them in an acetone bath. Afterwards I put a few coats of white glossy spray paint on them to better match the pencil.
For the padding I cut out a rectangle of felt and wrapped it in satin. I used some felt glue secure the satin to the felt. I rolled up this combination of fabrics and super glued it to the bottom of the longer tube. I also took a tiny square of felt (about half a centimeter for both dimensions) and super glued it where the tip of the pencil would rest inside the top of the case.
The rolled up satin and felt. I recommend a thin felt, too thick and the cap might get stuck.