www.mxdraw.com
|
返回当前图纸的最小外包矩形框
[id(138), helpstring("method GetMcDbDatabaseBound")] VARIANT_BOOL GetMcDbDatabaseBound(DOUBLE* pLbx, DOUBLE* pLby, DOUBLE* pRtx, DOUBLE* pRty);
参数 |
说明 |
DOUBLE* pLbx |
返回最小外包矩形框左下角X值 |
DOUBLE* pLby |
返回最小外包矩形框左下角Y值 |
DOUBLE* pRtx |
返回最小外包矩形框右上角X值 |
DOUBLE* pRty |
返回最小外包矩形框右上角Y值 |
例如: JS调用方法
var pRet =mxOcx.Call("Mx_GetMcDbDatabaseBound", ""); if (pRet.AtString(0) == "Ok") { alert( "LBx:" + pRet.AtDouble(1) + "LBy:" + pRet.AtDouble(2) + "Rtx:" + pRet.AtDouble(3) + "Rty:" + pRet.AtDouble(4)); } else { alert("调用失败"); }