新创建文档集是通过aaApi_Create*Set()系列接口可以返回SetID,对于已有已经创建好的Set如何得到SetID进而对其进行进一步定制操作呢?
这里总结了四种方法:
方法1:右键flatset得到set的o_itemno,继而得到o_setno
aaApi_SelectDocument(lProjectId , lDocumentId); lSet = aaApi_GetDocumentNumericProperty(DOC_PROP_SETID, 0);
方法2:右键flatset所包含的文档,可能得到包含该文档的多个set
aaApi_SelectSetMasters(lProjectId , lDocumentId); lSet = aaApi_GetSetNumericProperty(SET_PROP_ID , 0);
方法3:右键flatset所包含的文档,可能得到包含该文档的多个set
aaApi_SelectSetByTypeMask(AADMS_STYPEMASK_FLAT , 0 , 0 , 0 , lProjectId , lDocumentId); lSet = aaApi_GetSetNumericProperty(SET_PROP_ID , 0);
方法4:得到全部set,继而遍历自己需要的set: aaApi_SelectAllSets();