복사

2013-05-09 1 views
1

안녕 친구 C#을 사용 AutoCAD에서 Ctrl + 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 참조하여
+0

지정 된 위치 변경을 갖는 엔티티의 복사본을 만드는 것을 의미합니까? –

+0

ctrl + c를 사용하려는 경우 C#에서는 제대로 작동하지 않습니다. 수동 작업이 가능한 경우 : Autocad 프롬프트에서 copy 명령을 사용하십시오. –

답변

2

통해 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); 
4

당신은 대신 _COPYBASE 명령을 사용해야을 (CTRL- Shift-C가 기본 핫키입니다.)