Use the Harness panel on the 3D Model tab to add pins and the reference designator placeholder to a part. The reference designator and pins are specified while editing the part file or editing the part in place.