public void scale1() { Point3d center = new Point3d(0, 0, 0); ObjectId objectId = InteractionUtil.getEntityId("\n 选择要移动的对象"); objectId.QOpenForWrite(x => x.scale(center, 2)); }
public void move3() { Point3d basePt = new Point3d(0, 0, 0); Point3d targetPt = new Point3d(100, 100, 0); ObjectId objectId = InteractionUtil.getEntityId("\n 选择要移动的对象"); objectId.QOpenForWrite(x => x.moveByPoint3d(basePt, targetPt)); }
public void move2() { Point3d basePt = new Point3d(0, 0, 0); Point3d targetPt = new Point3d(100, 100, 0); Vector3d vec = targetPt - basePt; ObjectId objectId = InteractionUtil.getEntityId("\n 选择要移动的对象"); objectId.QOpenForWrite(x => x.moveByVector3d(vec)); }
public void mirror2() { Point3d basePt = new Point3d(0, 0, 0); Point3d targetPt = new Point3d(100, 100, 0); Line3d line3d = new Line3d(basePt, targetPt); ObjectId objectId = InteractionUtil.getEntityId("\n 选择要镜像的对象"); objectId.QOpenForWrite(x => x.mirrorByLine3d(line3d)); }
public void explode1() { ObjectId objectId = InteractionUtil.getEntityId("\n 选择要更炸开的对象"); if (objectId == ObjectId.Null) { return; } ObjectId[] objectIds = GoatExplodeUtil.Explode(objectId); GoatMessageUtil.msg(objectIds.Length.ToString()); }
public void line1() { var entityId = InteractionUtil.getEntityId("\nSpecify a Line", typeof(Line)); }
public void color2() { ObjectId objectId = InteractionUtil.getEntityId("\n 选择要更改颜色的对象"); objectId.QOpenForWrite(1, Constant.entityColor); }
public void delete2() { ObjectId objectId = InteractionUtil.getEntityId("\n 选择要删除的对象"); objectId.QOpenForWrite(Constant.actionErase); }