Bentley Communities
Site
Search
User
Site
Search
User
Welcome to Bentley Communities
Bentley's Communities
Bentley 中国优先社区
Cancel
Bentley 中国优先社区
◆ 二次开发(MicroStation编程, ProjectWise编程等)
自动刷新
Sign In
Bentley 中国优先社区 requires membership for participation - click to join
State
Verified Answer
Replies
14 replies
Answers
1 answer
Subscribers
77 subscribers
Views
4602 views
Users
0 members are here
自动刷新
Offline
玉懂 邵
over 6 years ago
您好!
我用API新建的文件夹,必须手动刷新,有没有自动刷新的API?
谢谢!
Top Replies
Offline
lijun.ma
Mon, Dec 19 2016 2:14 AM
+1
verified
您可以在新建文件夹后紧接着用接口aaApi_ExpandDscTreeItemByMoniker()主动展开父文件夹,从而实现刷新的效果。 具体做法如下: 得到父文件夹的GUID:aaApi_GetProjectGUIDsByIds; 通过GUID得到Moniker:aaApi_GetProjectMonikersByGuids; 通过Moniker展开父文件夹:aaApi_ExpandDscTreeItemByMoniker…
Offline
Tomas Yang
Wed, Dec 30 2020 5:07 AM
+1
suggested
刷新树 用 aaApi_UpdateProjectWindows 刷新后树会折叠起来 如果想定位到新建的文件夹上可以按顺序调用下面的API aaApi_GetMainDscTree //得到树的句柄 aaApi_ProjectTreeSelectItem //选择新建的文件夹 aaApi_UpdateProjectWindows //刷新树