Enterprise Administration > Windchill Data Loading > Creating Load Methods > Creating New Methods for Loading > Creating a Document Class
  
Creating a Document Class
PTC supports two types of customization of the document class: a type and a subtype.
If you add a subtype or global attributes to WTDocument, the existing load methods do not require any customization. However, if you add a type customization to WTDocument, a new load method is required.
To customize wt.doc.LoadDoc to work with new modeled subclasses of WTDocument, search LoadDoc for the factory method that creates the new instance of the Document.
The statement is as follows:
document = WTDocument.newWTDocument in the constructDocument method
Change this statement to handle the new modeled class. You must also search for the applyHardAttributes method and add the setting of any modeled attributes.
* 
wt.doc.LoadDoc can handle loading out-of-sequence iterations and versions. For information about the beginCreateWTDocument class, see the JavaDoc.