tid = ''
SectionTemplates = active_workspace.Get(VaultObjectTypes.DocumentTemplate,DataScope.Minimal)
#SectionTemplates = active_workspace.Current.SiteRepository.Get(VaultObjectTypes.DocumentSectionTemplate,DataScope.All)
for SectionTemplate in SectionTemplates:
#MessageBox.Show(SectionTemplate.VaultId.ToString()) 模板ID
#MessageBox.Show(SectionTemplate.Version.ToString()) 模板版本号
#MessageBox.Show(SectionTemplate.Title.ToString()) 模板名称
if SectionTemplate.Title == "方法验证模板-样品配制":
tId = SectionTemplate.VaultId.ToString()
MessageBox.Show(tId.ToString())