Windchill 中查询EPMDocument的附件信息

根据epmdocument文档来查询该文档的附件名称,附件上传路径,附件在电子仓库中的文件名等。

select d.ida2a2, m.cadname,m.documentnumber,d.versionida2versioninfo,d.iterationida2iterationinfo, 
a.filename,a.uploadedfrompath,to_char(f.streamid,'XXXXXXXX') as localfilename
from 
  wcadmin.epmdocument d,
  wcadmin.epmdocumentmaster m,
  wcadmin.HOLDERTOCONTENT h,
  wcadmin.applicationdata a,
  wcadmin.fvitem f 
where   m.ida2a2 = d.ida3masterreference
  and   d.ida2a2 = h.ida3a5
  and   h.ida3b5 = a.ida2a2
  and   a.role = 'SECONDARY'
  and   a.ida3a5 = f.ida2a2


你可能感兴趣的:(windchill)