04.12.2012 Views

Windchill System Administrator's Guide

Windchill System Administrator's Guide

Windchill System Administrator's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

public String getDocName()<br />

{<br />

return m_docName;<br />

}<br />

/** set the EPMDocument name for the model **/<br />

public void setDocName(String docname)<br />

{<br />

m_docName = docname;<br />

}<br />

/** set the EPMDocument number for the model **/<br />

public void setDocNumber(String docnumber)<br />

{<br />

m_docNumber = docnumber;<br />

}<br />

/** get the EPMDocument number for the model **/<br />

public String getDocNumber()<br />

{<br />

return m_docNumber;<br />

}<br />

/** get the Pro/E designated parameters for the model. These<br />

are name-value pairs indexed by the name **/<br />

public HashMap getParameters()<br />

{<br />

return m_parameters;<br />

}<br />

/** set the Pro/E designated parameters for the model. These<br />

are currently ignored **/<br />

public void setParameters(HashMap params)<br />

{<br />

m_parameters= params;<br />

}<br />

}<br />

2. In the new class, implement the business logic for naming and numbering<br />

EPMDocument in the method:<br />

public void validateDocumentIdentifier(DocIdentifier<br />

docIdentifier)<br />

– The DocumentIdentifier object has the EPMDocument name, number,<br />

and Pro/ENGINEER designated parameters information for the<br />

EPMDocument that will be created by the Upload Service.<br />

Use the DocIdentifier.getModelName() to get the CAD Name of the<br />

EPMDocument that this DocIdentifier object represents.<br />

– The Pro/ENGINEER designated parameters may be used to provide a hint<br />

for EPMDocument numbering/naming.<br />

Use DocIdentifier.getParameters() to get the associated parameters.<br />

Use the “set” methods on the DocIdentifier to set the new name, number,<br />

and parameter values. The upload service uses these suggestions if they<br />

are feasible.<br />

10-14 <strong>Windchill</strong> <strong>System</strong> Administrator’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!