几何尺寸与公差论坛------致力于产品几何量公差标准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)
-   -   【转帖】determine if user is logged into pdmworks vaul (http://www.dimcax.com/hust/showthread.php?t=5257)

yang686526 2009-04-13 10:18 AM

【转帖】determine if user is logged into pdmworks vaul
 
determine if user is logged into pdmworks vault
is there a way (through the api) to determine if a user is currently logged into a pdmworks vault?
i have a sw add-in that i want to use to refresh the local cache only on vaults that the user has logged into.
tia,
eric
traditional flint ridge greeting:
it's not much of a house, but we've got one heckuva basement!
directly through pdm/sw api, no. there may be a way through the registry or windows protected storage or the likes if you can get the info about where pdmw stores current session info.
if pdmworks enterprise, try this:
if not vault.isloggedin then
pdmwevault = mvault
if pdmwevault <> nothing then
vault.loginauto(pdmwevault, 0)
end if
end if
jeff
quick


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