nobody 发表于 2015-4-9 14:00:09

使用分割视图更新模型空间

Regen()和UpdateScreen()似乎不适用于模型空间中的拆分视图。似乎只有当前/激活的视图会重新生成/更新。有人知道如何让其他人也重生/更新吗?
**** Hidden Message *****

Jeff_M 发表于 2015-4-9 14:34:10

这是Tony Tanzillo在2008年AUtodesk论坛上的一篇文章:Document doc=Application.DocumentManager.MdiActiveDocument;。
对象oAcadDoc=doc.AcadDocument;。
oAcadDoc.GetType(),调用成员("Regen",BindingFlags.InvokeMethod,null,oAcadDoc,新对象[]{1 } );。

nobody 发表于 2015-4-9 16:05:07

谢谢!

BlackBox 发表于 2015-4-9 17:35:06

使用COM而不是新的。网曝编辑。命令()和编辑器。CommandAsync()(版本相关,I 'spose)?
http://through-the-interface . typepad . com/through _ the _ interface/2014/03/AutoCAD-2015-calling-commands . html
[编辑] -还有这个最近的线程,由Gile:
干杯

nobody 发表于 2015-4-9 18:52:23

只有当我运行2015 lol

BlackBox 发表于 2015-4-9 21:02:13


这是我缺少的一点关键信息(也许我忽略了它)。
干杯
页: [1]
查看完整版本: 使用分割视图更新模型空间