sclkkk 发表于 2011-9-23 11:36:57

请问如何居中并高亮显示一个实体?

已知一个实体ObjectId,如何居中并高亮显示它?

fsxm 发表于 2011-9-23 21:05:13

Zoom后,再SetImpliedSelection

sclkkk 发表于 2011-9-24 09:14:55

fsxm 发表于 2011-9-23 21:05 static/image/common/back.gif
Zoom后,再SetImpliedSelection

具体怎么操作啊,能不能给点代码参考下啊?

sclkkk 发表于 2011-9-24 15:46:54

怎样用ZOOM将实体居中显示啊?

fsxm 发表于 2011-9-26 09:56:02

如何zoom见置顶帖kean专题!

chengw 发表于 2011-9-26 15:06:18

entity.Highlight(); //这个是实体对象的高亮显示
               //entity 已知的实体对象
至于居中,我也不是很清楚。。。嘿嘿。。。。

sclkkk 发表于 2011-9-26 16:24:13

谢谢大家,kean专题基本功能已实现.就是ZOOM后是全屏显示实体,如何让它显示是不改变当前的分辨率啊

yxr_MJTD 发表于 2012-3-15 10:15:39

WdPoint3d startPt = new WdPoint3d(Convert.ToDouble(pesValueRow.Cells.Value), Convert.ToDouble(pesValueRow.Cells.Value), 0);
                     WdPoint3d endPt = new WdPoint3d(Convert.ToDouble(pesValueRow.Cells.Value), Convert.ToDouble(pesValueRow.Cells.Value), 0);
                     string startPtStr = startPt.X.ToString() + "," + startPt.Y.ToString() + ",0";
                     string endPtStr = endPt.X.ToString() + "," + endPt.Y.ToString() + ",0";
                     
                     //ThisDrawing.AcDoc.SendCommand("CMDECHO 0 ");
                     ThisDrawing.AcDoc.SendCommand("zoom w " + startPtStr + " " + endPtStr + " ");
                     //ThisDrawing.AcDoc.SendCommand("CMDECHO 1 ");

guohq 发表于 2012-3-15 17:59:14

SetImpliedSelection 是让对象处于选择状态

mkhsj928 发表于 2012-3-20 13:17:26

(Autodesk.AutoCAD.Interop.AcadApplicationClass as AcadApplicationClass).ZoomCenter(ptCenter.ToArray(), 1);
页: [1] 2
查看完整版本: 请问如何居中并高亮显示一个实体?