|
发表于 2009-11-1 17:22:00
|
显示全部楼层
以前写的代码,另外,Vector3D这个参数设置为Vector3d.ZAxis没问题,但只能在2010版本用SetFrom[code]
[CommandMethod("ts3")]
public static void tt3()
{
Document doc = Application.DocumentManager.MdiActiveDocument;
Editor ed = doc.Editor;
Database db = doc.Database;
using (Transaction tr = db.TransactionManager.StartTransaction())
{
Wipeout w = new Wipeout();
w.Orientation = new CoordinateSystem3d(new Point3d(100, 100, 0), Vector3d.XAxis, Vector3d.YAxis);
List pnts = new List();
pnts.Add(new Point3d(100, 100, 0));
pnts.Add(new Point3d(800, 100, 0));
pnts.Add(new Point3d(800, 600, 0));
pnts.Add(new Point3d(100, 600, 0));
pnts.Add(new Point3d(100, 100, 0));
Matrix3d mat = w.PixelToModelTransform.Inverse();
Point2dCollection vers = new Point2dCollection();
for (int i = 0; i 谢谢!着急就用_WipeOut代替了!
就是下句没用,所以不对!
Matrix3d mat = w.PixelToModelTransform.Inverse();
顺便提一下,做完消隐,用DrawOrderTable.MoveToTop把消隐的文字置上!
希望对同行朋友有帮助!也是对负责任的版主的支持!
|
|