Bentley Communities
Site
Search
User
Site
Search
User
Welcome to Bentley Communities
Bentley's Communities
Bentley 中国优先社区
Cancel
Bentley 中国优先社区
Sign In
Bentley 中国优先社区 requires membership for participation - click to join
All tags
二次开发
MSCE C#
Sorry, but there are no more tags available to filter with.
【MSCE C#】请问如何读取某个dgnFile的工作空间及工作集
霄男 宿
如题,请问如何读取某个dgnFile的工作空间和工作集,该dgnFile并非ActiveFile,可能是通过DgnDocument读取到的DgnFile,如下所示的代码,故无法使用WorkSpaceManager.ActiveWorkSet来获取。 DgnDocument dgnDoc = DgnDocument.CreateForLocalFile(path); DgnFileOwner dgnFileOwner = DgnFile.Create(dgnDoc, dgnFileOpenMode…
Answered
11 months ago
Bentley 中国优先社区
◆ 二次开发(MicroStation编程, ProjectWise编程等)
【MSCE C++/C#】有关从参考的文件中获取到的元素dgnModelRef的问题
霄男 宿
我通过如下两种方式获取参考文件中的元素: 第一种:先在软件中,将参考文件中的某个元素添加到SelectionSetManager(全局的选择集)中,然后在代码中读取选择集获得这个元素。这样拿到的元素其DgnModelRef属性为一个dgnAttachment,如图所示。 第二种:通过代码dgmModel下的GetDgnAttachments(),获取当前model的某个特定的参考对象,然后通过 DgnAttachment对象的GetDgnModel()方法获取到参考的dgnModel,再通过DgnModel下的FindElementById…
Answered
over 2 years ago
Bentley 中国优先社区
◆ 二次开发(MicroStation编程, ProjectWise编程等)
View related content from anywhere
More
Cancel