几何尺寸与公差论坛

 找回密码
 注册
查看: 771|回复: 0

【转帖】pdmwe batch folder unlock - anyone had success

[复制链接]
发表于 2009-4-13 13:22:20 | 显示全部楼层 |阅读模式
pdmwe batch folder unlock - anyone had success?
here's a code snippet that's not working. there doesn't seem to be any example, so it could be way off the mark.
the snippet is intended to check in (unlock) all the files in a pdmwe folder. files were just added & there are no other files in the vault to confuse matters.
dim batchunlock as iedmbatchunlock = login.vault.createutility(edmutility.edmutil_batchunlock)
dim selitem(0) as edmselitem
selitem(0).mlprojid = _vaultmigrationfolder.id
selitem(0).mldocid = 0
batchunlock.addselection(login.vault, selitem)
batchunlock.unlockfiles(handle)
note that "login.vault" is just the vault object & "_vaultmigrationfolder" is the folder object.
anyone have any idea either what's wrong here or what is the right way to do this?
thanks,
tom
answer never mind
it seems i missed a createtree after the addselection. (it should have been obvious...)
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 05:35 , Processed in 0.036902 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表