www.mxdraw.com
|
设置用户坐标到文档坐标系统的变换矩阵.
static void Mx_SetUcsMatrix(McGeMatrix3d ucsToWcs);
参数 |
说明 |
McGeMatrix3d ucsToWcs |
用户坐标到文档坐标系统的变换矩阵 |
例如:VC COM
IMxDrawMatrix3dPtr ucsToWcs;
ucsToWcs.CreateInstance(__uuidof( MxDrawXLib::MxDrawMatrix3d ));
IMxDrawVector3dPtr vecOffset;
vecOffset.CreateInstance(__uuidof( MxDrawXLib::MxDrawVector3d ));
vecOffset->put_x(-100);
vecOffset->put_y(-200);
vecOffset->put_z(-100);
ucsToWcs->Translation(vecOffset);
IDispatchPtr spRet(m_ocx.CallEx(_T("Mx_SetUcsMatrix"),ucsToWcs),false);
例如: C#
MxDrawMatrix3d ucsMat = new MxDrawMatrix3d(); MxDrawVector3d offset = new MxDrawVector3d(); offset.x = 100; offset.y = 100; ucsMat.Translation(offset); axMxDrawX1.CallEx("Mx_SetUcsMatrix", (object)ucsMat);