www.mxdraw.com
|
闪烁实体
bool Mx_TwinkeEnt(McDbObjectId id, LONG lCount = -1);
参数 |
说明 |
McDbObjectId id |
被闪烁的实体对象id |
LONG lCount = -1 |
闪烁次数,默认为-1表示不限闪烁次数. |
成功返回true
例如: C# 设置一定次数据闪烁
MxDrawEntity ent = (MxDrawEntity)axMxDrawX1.GetEntity("Test"); if (ent == null) return; MxDrawResbuf param = new MxDrawResbuf(); param.AddObjectId(ent.ObjectID); param.AddLong(6); // 闪烁6次 axMxDrawX1.CallEx("Mx_TwinkeEnt",param);
例如: js代码
var selEnt = mxOcx.NewComObject("IMxDrawUiPrEntity"); selEnt.message = "选择对象"; if (selEnt.go() != 1) return; var ent = selEnt.Entity(); if (ent == null) return; var param = mxOcx.NewResbuf(); param.AddString(ent.Handle); mxOcx.CallEx("Mx_TwinkeEnt",param);