Message 1 of 5

Not applicable
02-25-2017
11:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, how can i define custom snap points for my custom entity? I'm implementing the "subGetOsnapPoints" method but the snap points doesn't appears when the mouse is closer, here is the implementation:
Acad::ErrorStatus Bolanum::subGetOsnapPoints ( AcDb::OsnapMode osnapMode, int gsSelectionMark, const AcGePoint3d &pickPoint, const AcGePoint3d &lastPoint, const AcGeMatrix3d &viewXform, AcGePoint3dArray &snapPoints, AcDbIntArray &geomIds) const { assertReadEnabled () ; switch(osnapMode) { case AcDb::kOsModeEnd : snapPoints.append(mLinePosition); snapPoints.append(getCircleBorderPoint()); break; } return Acad::eOk; }
Am i missing or doing something wrong? My entity full source is in the attachments as a lisp file.
I'm using ObjectARX 2012 and VS 2010 SP1. My entity is a ARX not an DBX object.
Solved! Go to Solution.