绘制一个实体,如何把它放到最下面?
MxDraw网页开发|黄洪辉|2018-05-07 10:17
-
回答:
var database = mxOcx.GetDatabase(); var ret = database.GetProp("getMinDrawOrder"); var lMin = ret.AtLong(0); var ret2 = database.GetProp("getMaxDrawOrder"); var lMax = ret2.AtLong(0); var sTemp = mxOcx.DrawImage(0, 0, 0, 0, "D:\\mxcad.jpg"); var ent = database.ObjectIdToObject(sTemp); var res = mxOcx.NewResbuf(); res.AddLong(lMin + 2); ent.SetProp("drawOrder", res); mxOcx.ZoomAll();