CAD use GetAllAppName read all the names (web version)

The main use of Function:

 

MxDrawEntity :: GetAllAppName

 

All extended data names obtained as detailed below:

 

parameter Explanation

[out, retval] IMxDrawResbuf** ppRet

Returns the name of the array extended data IMxDrawResbuf

 

js code to achieve the following:

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function  GetAllAppName() {
 
     var  selEnt = mxOcx.NewComObject( "IMxDrawUiPrEntity" );
     selEnt.message =  "选择需要读取的对象" ;
     if  (selEnt.go() != 1)
         return ;
     var  ent = selEnt.Entity();
     if  (ent ==  null )
         return ;
     //得到所有扩展数据名称
     var  val = ent.GetAllAppName();
     if  (val ==  null ) {
         return ;
     }
     for ( var  i = 0;i < val.Count; i++ ){
         //返回链表中的指定位置字符串变量值
         alert(val.AtString(i));
     }
 
}

Guess you like

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