www.mxdraw.com
|
判断实体是否被删除
bool Mx_IsErased(IN LONG lId);
参数 |
说明 |
IN LONG lId |
实体的id |
成功返回true
例如:C#代码
MxDrawResbuf param = new MxDrawResbuf(); param.AddObjectId(id); MxDrawResbuf ret = (MxDrawResbuf)axMxDrawX1.CallEx("Mx_IsErased", param); if(ret.AtString(0) == "Ok") { MessageBox.Show("对象被删除"); }
MxDrawResbuf param = new MxDrawResbuf(); param.AddObjectId(ent.ObjectID); MxDrawApplication app = new MxDrawApplication(); MxDrawResbuf ret = (MxDrawResbuf)app.CallEx("Mx_IsErased", param); if (ret.AtString(0) == "Ok") { MessageBox.Show("对象被删除"); } else { MessageBox.Show("对象没有被删除"); }