- UID
- 527501
- 积分
- 151
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2006-12-9
- 最后登录
- 1970-1-1
|
发表于 2019-3-19 20:44:08
|
显示全部楼层
本帖最后由 edata 于 2019-3-19 21:15 编辑
前天有个网友刚好问到我这个问题,就是用的这个源码,我发现高版本(CAD2008及其以上版本开始)更改了一个函数的参数类型
monitorInputPoint的const AcArray<int>& gsSelectionMark,和const AcArray<int>& keyPointGetSelectionMark,中的int类型均改为了Adesk::GsMarker,否则无法触发反应器,
我记得自定义实体中也有几处改成了Adesk::GsMarker的地方,我记得好像是捕捉的函数参数。
- #if _MSC_VER>1400
- Acad::ErrorStatus CEntInfoTipHandler::monitorInputPoint(
- bool& bAppendToTooltipStr,
- TCHAR*& pAdditionalTooltipString,
- AcGiViewportDraw* pDrawContext,
- AcApDocument* pDocument,
- bool pointComputed,
- int history,
- const AcGePoint3d& lastPoint,
- const AcGePoint3d& rawPoint,
- const AcGePoint3d& grippedPoint,
- const AcGePoint3d& cartesianSnappedPoint,
- const AcGePoint3d& osnappedPoint,
- AcDb::OsnapMask osnapMask,
- const AcArray<AcDbCustomOsnapMode*>& customOsnapModes,
- AcDb::OsnapMask osnapOverrides,
- const AcArray<AcDbCustomOsnapMode*>& customOsnapOverrides,
- const AcArray<AcDbObjectId>& apertureEntities,
- const AcArray< AcDbObjectIdArray,
- AcArrayObjectCopyReallocator< AcDbObjectIdArray > >& nestedApertureEntities,
- const AcArray<Adesk::GsMarker>& gsSelectionMark,
- const AcArray<AcDbObjectId>& keyPointEntities,
- const AcArray< AcDbObjectIdArray,
- AcArrayObjectCopyReallocator< AcDbObjectIdArray > >& nestedKeyPointEntities,
- const AcArray<Adesk::GsMarker>& keyPointGsSelectionMark,
- const AcArray<AcGeCurve3d*>& alignmentPaths,
- const AcGePoint3d& computedPoint,
- const TCHAR* pTooltipString)
- #else
- Acad::ErrorStatus CEntInfoTipHandler::monitorInputPoint(
- bool& bAppendToTooltipStr,
- TCHAR*& pAdditionalTooltipString,
- AcGiViewportDraw* pDrawContext,
- AcApDocument* pDocument,
- bool pointComputed,
- int history,
- const AcGePoint3d& lastPoint,
- const AcGePoint3d& rawPoint,
- const AcGePoint3d& grippedPoint,
- const AcGePoint3d& cartesianSnappedPoint,
- const AcGePoint3d& osnappedPoint,
- AcDb::OsnapMask osnapMask,
- const AcArray<AcDbCustomOsnapMode*>& customOsnapModes,
- AcDb::OsnapMask osnapOverrides,
- const AcArray<AcDbCustomOsnapMode*>& customOsnapOverrides,
- const AcArray<AcDbObjectId>& apertureEntities,
- const AcArray< AcDbObjectIdArray,
- AcArrayObjectCopyReallocator< AcDbObjectIdArray > >& nestedApertureEntities,
- const AcArray<int>& gsSelectionMark,
- const AcArray<AcDbObjectId>& keyPointEntities,
- const AcArray< AcDbObjectIdArray,
- AcArrayObjectCopyReallocator< AcDbObjectIdArray > >& nestedKeyPointEntities,
- const AcArray<int>& keyPointGsSelectionMark,
- const AcArray<AcGeCurve3d*>& alignmentPaths,
- const AcGePoint3d& computedPoint,
- const TCHAR* pTooltipString)
- #endif
|
|