Specialized Administration > Tailoring Business Objects > Object Initialization Rules Administration > Working with Object Initialization Rules > Object Numbering and Versioning > Object Numbering > Numbering Scheme Examples
  
Numbering Scheme Examples
The following XML sets the number attribute for a document to use the sequence generated by WTDOCUMENTID_seq and preceded by the constant "REF-", where the length of the number is 10 characters and the padding character is 0:
<AttributeValues objType="wt.doc.WTDocument">
<!-- set the number to a generated number -->
<AttrValue id="number"
algorithm="com.ptc.windchill.enterprise.revisionControlled.server.impl.NumberGenerator">
<Arg>REF-</Arg>
<Arg>{GEN:wt.enterprise.SequenceGenerator:WTDOCUMENTID_seq:10:0}</Arg>
</AttrValue>
</AttributeValues>
The following XML turns off the autonumbering of documents that was set in the parent context of either a product or library context so that documents are manually numbered in the current context:
<AttributeValues objType="wt.doc.WTDocument">
<!-- turn off auto-numbering -->
<AttrConstraint id="number"
algorithm="com.ptc.core.rule.server.impl.GatherAttributeConstraints">
</AttrConstraint>
</AttributeValues>
For additional examples, see Creating Numbering Scheme Rule Content.