.Net 与 AutoCad 的接口 - 如何进行选择
如何选择绘图中的所有对象?
与 But 相关的东西
AcadSelectionSet select = _acadCurrentDocument.SelectionSets.Add("my");
select.Select(AcSelect.acSelectionSetAll);
无法使其发挥作用。
How to select all object within the drawing?
Sometthing related to
AcadSelectionSet select = _acadCurrentDocument.SelectionSets.Add("my");
select.Select(AcSelect.acSelectionSetAll);
But cannot make it working.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在真实的 .NET AutoCAD API 中(正在处理中,而不是像您的示例中那样的 C#/COM):
In real .NET AutoCAD API (in process, not C#/COM like in your exemple):
如果您想在独立的可执行文件中进行选择,AutoCAD COM Interop 就是您所尝试的方法。您可能需要了解 AutoCAD 是否已打开以及它是否是您喜欢的版本。
如有必要,您可能还需要激活 AutoCAD 窗口。
If you'd like to do the selection in a standalone executable, the AutoCAD COM Interop is the way to go as you were trying. You may need to if the AutoCAD has been open or not and if it's the version you like.
You may need to activate the AutoCAD window too if necessary.