使用C#在Autocad中使用Ctrl + C复制带有基点的实体

时间:2013-05-09 08:53:12

标签: c# autocad

朋友们,

         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.

2 个答案:

答案 0 :(得分:4)

您应该使用_COPYBASE命令(Ctrl-Shift-C是默认的热键)。

答案 1 :(得分:2)

使用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);