js中代码实现说明:
// 与用户交互,在图上选择一个实体标签:多行,AtString,mxOcx,网页,param,ent,ret,var,CAD From: https://blog.51cto.com/u_10455293/5732395
var ent = mxOcx.GetEntity("选择多行文字:");
if(ent == null)
{
// 用户取消了选择.
return;
}
var param = mxOcx.NewResbuf();
param.AddObjectId(ent.ObjectID);
var ret = mxOcx.CallEx("Mx_GetMTextContent", param);
if(ret.AtString(0) == "Ok")
{
alert(ret.AtString(1));
}