|
[code]前面介绍了自定义实体的全部创建过程,但是实际上程序最后尽管编译成功,但运行总是有问题,下面就我发现的问题进行解答
方法/步骤
virtual Acad::ErrorStatus subGetOsnapPoints (
AcDb::OsnapMode osnapMode,
Adesk::GsMarker gsSelectionMark,
const AcGePoint3d & pickPoint,
const AcGePoint3d & lastPoint,
const AcGeMatrix3d & viewXform,
AcGePoint3dArray & snapPoints,
AcDbIntArray & geomIds) const ;
中参数 Adesk::GsMarker gsSelectionMark
CAD嵌入工具栏原本生成的是
int gsSelectionMark
这会导致 无法捕捉点无法找到。
2
Acad::ErrorStatus MyCustomEntity::subGetGripPoints (
AcGePoint3dArray &gripPoints, AcDbIntArray &osnapModes, AcDbIntArray &geomIds
) const
中,函数结尾我们并没有 return (Acad::eOk);
实际运行中 夹点也无法显示。[/code] |
|