iCAx开思网
标题:
怎样在Windchill创建WTDocument
[打印本页]
作者:
eee13
时间:
2006-9-8 18:01
标题:
怎样在Windchill创建WTDocument
求助:哪位高手知道在Windchill中怎样通过代码实现创建一个WTDocument并且挂接有文件
谢谢!!!
作者:
cad1
时间:
2006-9-15 13:39
能否写的更详细一点。你是指开发还是应用
作者:
cad1
时间:
2006-9-15 13:40
能否写的更详细一点。你是指开发还是应用
作者:
fluo2004
时间:
2006-9-16 14:18
private static WTDocument createDocument(Persistable persistable, String directory, String filesname, String partnumber) throws WTException, PropertyVetoException, IOException {
boolean flag = false;
WTPart part = (WTPart) persistable;
WTDocument document = getDocument(partnumber, part.getVersionIdentifier().getValue(), "1");
if (document == null) {
document = WTDocument.newWTDocument();
//int j = IXBVersionHelper.getVersionIndex(part.getVersionIdentifier().getValue());
Hashtable table = new Hashtable();
table.put("name", part.getName() + "´òÓ¡Îĵµ");
table.put("number", partnumber);
table.put("type", "Document");
table.put("version", part.getVersionIdentifier().getValue());
table.put("iteration", "1");
table.put("title", part.getName() + "´òÓ¡Îĵµ");
table.put("department", "DESIGN");
table.put("lifecycletemplate", "Default");
table.put("lifecyclestate", "RELEASED");
//table.put("domain","/Administrator");
String partPath = part.getFolderPath();
partPath = partPath.substring(0,partPath.lastIndexOf("/"));
table.put("saveIn", partPath);
Hashtable table1 = new Hashtable();
Vector vector = new Vector();
document = createDocumentObject(table, table1, vector, true);
//document = (WTDocument) VersionControlHelper.service.newVersion(document, VersionIdentifier.newVersionIdentifier(IXBVersionHelper.getVersionSeries(j)), IterationIdentifier.newIterationIdentifier("1"));
document = (WTDocument) PersistenceHelper.manager.save(document);
}
ApplicationData appData = ApplicationData.newApplicationData(document);
//System.out.println("filesname---------"+filesname);
appData.setFileName(filesname);
FileInputStream in = new FileInputStream(directory + "/" + filesname);
appData.setRole(ContentRoleType.PRIMARY);
appData = ContentServerHelper.service.updateContent(document, appData, directory + "/" + filesname);
return document;
}
作者:
pozitec
时间:
2006-11-6 17:54
请问,有哪位高人能解决以下问题,本人将不甚感激,!!
我们公司使用Windchill7.0 系统,在操作系统WINDOWS2000上可以进“产品信息管理器”
但在WIN XP PRO 上却进不了“产品信息管理器”,请问如何设置??
欢迎光临 iCAx开思网 (https://www.icax.org/)
Powered by Discuz! X3.3