www.mxdraw.com
内容索引主面
前一个向上下一个
_DMxDrawXEvents::CustomEntity_getOsnapPoints 方法

返回自定义实体捕捉点

IDL
[id(9)]
void CustomEntity_getOsnapPoints(IDispatch* pCustomEntity, LONG lOsnapMode, DOUBLE dPickPointX, DOUBLE dPickPointY, DOUBLE dLastPointX, DOUBLE dLastPointY, DOUBLE* pSnapPointsX, DOUBLE* pSnapPointsY, LONG* pOk);
参数 
说明 
IDispatch* pCustomEntity 
IMxDrawCustomEntity对象 
LONG lOsnapMode 
捕捉模式, 
DOUBLE dPickPointX 
当前光标点X 
DOUBLE dPickPointY 
当前光标点Y 
DOUBLE dLastPointX 
上一次光标点X 
DOUBLE dLastPointY 
上一次光标点Y 
DOUBLE* pSnapPointsX 
返回捕捉点X 
DOUBLE* pSnapPointsY 
返回捕捉点Y 
LONG* pOk 
返回值,成功回 1. 

例如: lOsnapMode 取值

                    enum OsnapMode         { kOsModeEnd          = 1,
                                             kOsModeMid          = 2,
                                             kOsModeCen          = 3,
                                             kOsModeNode         = 4,
                                             kOsModeQuad         = 5, 
                                             kOsModeIns          = 7,
                                             kOsModePerp         = 8,
                                             kOsModeTan          = 9,
                                             kOsModeNear         = 10,
                                             kOsModeInt          = 11
                    };
Copyright (c) 2010. All rights reserved.
你认为该帮助怎么样? 发送反馈信息!