网页CAD控件如何镜像一个实体?
MxDraw网页开发|冯美娟|2019-05-13 10:54
-
回答:
JS代码镜像一个实体:
var
lineid= mxOcx.DrawLine(0, 0, 100, 0);
var
pt1 = mxOcx.NewPoint();
pt1.x = -200;
pt1.y = -200;
var
pt2 = mxOcx.NewPoint();
pt2.x = 200;
pt2.y = 200;
var
database = mxOcx.GetDatabase();
var
ent = database.ObjectIdToObject(lineid);
ent.Mirror(pt1,pt2);