To add documentation in CADWorx IP, run the command "TRANSDOC" after adding the documentation to the P&ID.