阅读:1803回复:0
无法获取Scene的IApplication,求助。。。
需要在SceneControl中添加 Select By Draped Envelope 拖框选择功能,查了下,需要使用Icommandbar等等
但是涉及到需要Document对象,得从IApplication获取,而尝试了N久,都无法获取,在OnCreate(object Hook), 使用 Hook as IApplication 也无济于事 public void OnCreate(object Hook) { if (Hook == null) return; try { m_hookHelper = new HookHelper(); m_hookHelper.Hook = Hook; m_app = Hook as IApplication; if (m_hookHelper.ActiveView == null) m_hookHelper = null; } catch { m_hookHelper = null; } if (m_hookHelper == null) bEnable = false; else bEnable = true; } AE 版本10.1 |
||||||