enum UserInputControls { kGovernedByOrthoMode = 0x0001,//正交模式管理 kNullResponseAccepted = 0x0002,//允许输入空 kDontEchoCancelForCtrlC = 0x0004,//ctrl C 模式不能重复取消 kDontUpdateLastPoint = 0x0008,//不更新最后一点 kNoDwgLimitsChecking = 0x0010,//不检查点限制 kNoZeroResponseAccepted = 0x0020,//不允许输入0 kNoNegativeResponseAccepted = 0x0040,//不允许输入负数 kAccept3dCoordinates = 0x0080,//允许输入3维坐标(默认2维) kAcceptMouseUpAsPoint = 0x0100,//允许鼠标选点 kAnyBlankTerminatesInput = 0x0200,//输入空白终止输入 kInitialBlankTerminatesInput = 0x0400,//初始空白终止输入 kAcceptOtherInputString = 0x0800,//接受非关键字字符串输入 kGovernedByUCSDetect = 0x1000,//ucs管理 kNoZDirectionOrtho = 0x2000,//不允许Z轴正交 kImpliedFaceForUCSChange = 0x4000,//暗示ucs变化 kUseBasePointElevation = 0x8000//将基准点的高程用于淘汰选中获得的点};
AcEdJig::setUserInputControls 函数的定义形式为:
void setUserInputControls(AcEdJig::UserInputControls);
具体用法:
setUserInputControls((UserInputControls)(CMdEdJig::kNullResponseAccepted | CMdEdJig::kAcceptOtherInputString));