Adds a graphical definition to the specified part.
eOk if successful or the appropriate error code otherwise.