추가 Windchill 기능 > 제조 공정 관리 > 제품 구조 탐색기(PSE) 사용자 정의 > 모델 서브클래스를 처리하도록 PSE 사용자 정의 > 솔루션 > 사용자 정의 클래스에 대한 복사 위임자 작성 > 복사 위임자 작성
  
복사 위임자 작성
그림에 나온 것처럼 단순히 wt.enterprise.CopyWTPartDelegate를 확장하고 해당 newCopy() 메소드를 무시할 수 있습니다. 이 목적은 모든 사용자 정의 속성(이 예의 경우 myAttr)을 처리하는 것입니다. 다음은 이 메소드가 구현되는 방법을 보여 주는 예입니다.
public final RevisionControlled newCopy( RevisionControlled object
)throws WTException {
//##begin newCopy%461E645C0050f.body preserve=yes
if (object == null) return null;
MyPart new_copy = (MyPart) super.newCopy(object);
MyPart original = (MyPart) object;
String my_attr = original.getMyAttr();
if (my_attr != null) {
try {
new_copy.setMyAttr(original.getMyAttr());
}
catch (WTPropertyVetoException e) {
throw new WTException(e);
}
return new_copy;
//##end newCopy%461E645C0050f.body
}