How to set the flashing CAD entities in a Web page?

The main use of Function:


MxDrawXCustomFunction::Mx_TwinkeEnt


Flashing entity. Details are as follows:


parameter Explanation

McDbObjectId id

The flashing entity object id

LONG lCount = -1

Number of flashes, the default number of flashes are not limited to -1


js used as follows:


1
2
3
4
5
6
7
8
9
10
11
12
13
14
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);
param.AddLong(6); // 闪烁6次
 
mxOcx.CallEx( "Mx_TwinkeEnt" ,param);

Guess you like

Origin www.cnblogs.com/yzy0224/p/10979241.html