Richard,
For best practice it is a good idea to create a soft type of a document
that will hold your Word documents with defined attributes suited for that
type of document and your business needs.
A. Using the Type and Attribute Manager within Site/Utilities
1. Create a new attribute organizer for your document type.
2. Create the attributes you need for that document type within the organizer.
3. Create the document soft type you will use for the word document.
4. Add the attributes to the new document soft type.
B. Using the OIR administrator download a copy of the OIR for documents
and edit it to fit your requirements for the new document soft type. For
example you can specify numbering, versioning, folder initialization
rules....etc.
1. Create the OIR for the new document soft type.
D. Check if your new document soft type appears in the pull-down for
creating new documents. If so, see if you can create a new one with all
the attributes you defined.
1. Attached your word document as the primary attachment and check it in.
If everything works well at this point then you are ready to bulk load your
word document to this soft type.
E. Example loader - myloadfile.xml - create in
<windchill_dir>/src/loadfiles directory
Put content file mywordfile.doc in <windchill_dir>/loadfiles/content/
directory
You can use the csv to xml to create this file or use PERL to create
one for you in this format.
<nmloader>
<csvbeginwtdocument handler="wt.doc.LoadDoc.beginCreateWTDocument">
<csvname>Washer</csvname>
<csvtitle>Plastic</csvtitle>
<csvnumber>123456-00</csvnumber>
<csvtype>Document</csvtype>
<csvdescription>Hardware</csvdescription>
<csvdepartment>DESIGN</csvdepartment>
<csvsavein>/Default/Hardware</csvsavein>
<csvteamtemplate></csvteamtemplate>
<csvdomain></csvdomain>
<csvlifecycletemplate>Basic</csvlifecycletemplate>
<csvlifecyclestate>Released</csvlifecyclestate>
<csvtypedef>YourSoftypeName</csvtypedef>
<csvversion>A</csvversion>
<csviteration></csviteration>
</csvbeginwtdocument>
<csvibavalue handler="wt.iba.value.service.LoadValue.createIBAValue">
<csvdefinition>Material</csvdefinition>
<csvvalue1>Plastic-x</csvvalue1>
<csvvalue2></csvvalue2>
<csvdependency_id></csvdependency_id>
</csvibavalue>
<csvibavalue handler="wt.iba.value.service.LoadValue.createIBAValue">
<csvdefinition>Vendor</csvdefinition>
<csvvalue1>Vendor-x</csvvalue1>
<csvvalue2></csvvalue2>
<csvdependency_id></csvdependency_id>
</csvibavalue>
<csvibavalue handler="wt.iba.value.service.LoadValue.createIBAValue">
<csvdefinition>Project</csvdefinition>
<csvvalue1>X1</csvvalue1>
<csvvalue2></csvvalue2>
<csvdependency_id></csvdependency_id>
</csvibavalue>
<csvendwtdocument handler="wt.doc.LoadDoc.endCreateWTDocument">
<csvprimarycontentype>ApplicationData</csvprimarycontentype>
<csvpath>mywordfile.doc</csvpath>
<csvformat>doc</csvformat>
<csvcontdesc></csvcontendesc>
<csvparentcontainerpath></csvparentcontainerpath>
</nmloader>
F. Execute Load command in <windchill_dir>/src/loadfiles directory
windchill wt.load.LoadFromFile -u username -p yourpasswd -d myloadfile.xml
-CONT_PATH
\"/wt.inf.container.OrgContainer=YOURORG/wt.pdmlink.PDMLinkProduct=YOURPRODUCT\"
-o mylog.log
Hope this gives you some idea what needs to be done.
Rey