复制与在AutoCAD中使用Ctrl + C,使用C#
问题描述:
喜的朋友基点的实体,复制与在AutoCAD中使用Ctrl + C,使用C#
I have some trouble while copy the entities using Ctrl+C in autocad. While i press ctrl + C it just copy to clipboard in autocad and it's take base point as 0,0,0.But i need to copy the entities with our specified base point. Is there any other way to do this.
使用
Autodesk.Autocad.Interop.Common
参考
答
通过C#:
double[] BasePoint = new double[] { 0, 0, 0}; //or any point you like
double[] DesiredPoint = new double[] { 45,234,2345} ;//or any point you like
IAcadEntity Ent = AGivenEntity.Copy();
Ent.Move(BasePoint, DesiredPoint);
答
您应该使用_COPYBASE命令来代替(按Ctrl - Shift-C是默认的热键)。
你的意思是创建一个具有指定位移的实体的副本? – 2013-05-09 21:30:34
如果你正在尝试ctrl + c,你不是在C#中做的,对吗? 如果可以完成手动操作:在Autocad提示符下使用复制命令。 – 2013-05-09 21:31:55