老师,有没有办法获取所有的dgnmodel
v8i的我按下面的获取了
ModelIndexCollection modelIndexCol = Session.Instance.GetActiveDgnFile().GetModelIndexCollection(); foreach(var curModelIndex in modelIndexCol) { DgnModel dgnModel = Session.Instance.GetActiveDgnFile().FindLoadedModelById(curModelIndex.Id); }
Answer Verified By: 陈玄 陈
谢谢老师的回答,不过我的文件时没有装载的,我也在另外一个帖子上获得了答案,思路和您提的差不多,也是先获取index在获取Index最后获取DgnModel
communities.bentley.com/.../493137