Bentley Communities
Site
Search
User
Site
Search
User
Welcome to Bentley Communities
Bentley's Communities
Bentley 中国优先社区
Cancel
Bentley 中国优先社区
◆ 二次开发(MicroStation编程, ProjectWise编程等)
【MSTN CE C++】如何给参考模型添加EC属性
Sign In
Bentley 中国优先社区 requires membership for participation - click to join
State
Verified Answer
Replies
25 replies
Subscribers
72 subscribers
Views
1372 views
Users
0 members are here
【MSTN CE C++】如何给参考模型添加EC属性
Offline
帅 樊
over 1 year ago
老师好,我现在想要在主模型里给参考模型添加EC属性,有没有什么方法,或者例子,能直接从主模型操作到参考模型的
Top Replies
Offline
HongQiang Guo
Tue, Dec 14 2021 10:30 PM
in reply to
帅 樊
+1
verified
如下是完整的代码,不管参考是不是当前dgn文件中的Model: DgnAttachmentP dgnAtta = *ACTIVEMODEL->GetDgnAttachmentsP()->begin(); if (dgnAtta->GetDgnModelP()->GetDgnFileP() == ISessionMgr::GetActiveDgnFile()) { PersistentElementRefP…