几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   SolidWorks二次开发 (http://www.dimcax.com/hust/forumdisplay.php?f=111)
-   -   【转帖】pdwworks api getspecificdocumen (http://www.dimcax.com/hust/showthread.php?t=4860)

yang686526 2009-04-12 10:02 PM

【转帖】pdwworks api getspecificdocumen
 
pdwworks api getspecificdocument
i'm trying to get a single docuemnt from the vault, where i now its name
useing vb express i run the following (a connection has already been established)
calling the getspecific property method does nothing -no error, and no document return
dim oldpart as pdmworks.pdmwdocument
dim newpart as pdmworks.pdmwdocument
dim prop as pdmworks.pdmwproperty
dim sz as string
on error resume next
oldpart = pdm.getspecificdocument(txtoldpart.text)
if err.number <> 0 then msgbox(err.description)
newpart = pdm.getspecificdocument(txtnewpart.text)
if err.number <> 0 then msgbox(err.description)
msgbox(oldpart.name)
answer oops - i didn't realize .sldprt was part of the name... works fine
quick


所有的时间均为北京时间。 现在的时间是 04:43 AM.