import{aH as O,d as n,aI as A,z as M,n as p,aJ as c,t as m,b as D,v as z,aK as U}from"./index-D68iA7pN.js";async function v(){let a=new O;a.setMessage(n("396")+n("120")+":"),a.setUserInputControls(A.kNoZeroResponseAccepted|A.kNoNegativeResponseAccepted);let l=await a.go();if(l==null)return;a.setMessage(n("396")+n("121")+":");let f=await a.go();if(f==null)return;let s=await M.getCorner(n("396")+n("448"));if(!s)return;let i=s.pt2.x-s.pt1.x,o=s.pt2.y-s.pt1.y,x=await M.userSelect(n("167")+n("449")),e=M.getMcDbEntitysBoundingBox(x);if(!e)return;let t=new p;i>0?t.x=e.minPt.x:t.x=e.maxPt.x,o>0?t.y=e.minPt.y:t.y=e.maxPt.y,b({iColNum:f,iRowNum:l,dColOffset:i,dRowOffset:o,aryId:x,dAng:0})}const b=a=>{const{iRowNum:l=0,iColNum:f=0,dColOffset:s=0,dRowOffset:i=0,aryId:o=[],dAng:x=0}=a;let e=M.getMcDbEntitysBoundingBox(o);if(!e)return;let t=new p;s>0?t.x=e.minPt.x:t.x=e.maxPt.x,i>0?t.y=e.minPt.y:t.y=e.maxPt.y;let g=new c().setToRotation(x*Math.PI/180,m.kZAxis,t),P=5e4,C=0;for(let y=0;yP)){z.acutPrintf(n("450")+P+n("451")+` `);return}}U()}}};export{v as M,b as r};