Functions | |
bool | mdlSnap_isActive () |
Determine whether there is an element currently snapped (either via Tentative point or AccuSnap). More... | |
SnapPathCP | mdlSnap_getCurrent () |
Get the current snap path (either via Tentative point or AccuSnap), if one exists. More... | |
DgnModelRefP | mdlSnap_getCurrModelRef () |
Get the modelRef for the current DgnPlatform::SnapPath, if one exists. More... | |
UInt32 | mdlSnap_getCurrHeaderFilePos () |
Get the filePos of the header of the currently snapped element. More... | |
UInt32 | mdlSnap_getCurrElemFilePos () |
Get the file position of the currently snapped element. More... | |
DPoint3dCP | mdlSnap_getPoint () |
Get the current snap point (either Tentative point or AccuSnap). More... | |
int | mdlSnap_getView () |
Get the view number of the current snap. More... | |
Point2d const * | mdlSnap_getScreenPoint () |
Get the point in screen coordinates of the current snap. More... | |
UInt32 mdlSnap_getCurrElemFilePos | ( | ) |
Get the file position of the currently snapped element.
SnapPathCP mdlSnap_getCurrent | ( | ) |
Get the current snap path (either via Tentative point or AccuSnap), if one exists.
UInt32 mdlSnap_getCurrHeaderFilePos | ( | ) |
Get the filePos of the header of the currently snapped element.
DgnModelRefP mdlSnap_getCurrModelRef | ( | ) |
Get the modelRef for the current DgnPlatform::SnapPath, if one exists.
DPoint3dCP mdlSnap_getPoint | ( | ) |
Get the current snap point (either Tentative point or AccuSnap).
Point2d const* mdlSnap_getScreenPoint | ( | ) |
Get the point in screen coordinates of the current snap.
int mdlSnap_getView | ( | ) |
Get the view number of the current snap.
bool mdlSnap_isActive | ( | ) |
Determine whether there is an element currently snapped (either via Tentative point or AccuSnap).
Snapping is the process of finding exact locations on existing elements using various Snap Modes that determine which and how elements are considered.
MicroStation provides two ways for users to snap to existing elements: the Tentative Point, and AccuSnap. Tentative Point snaps to elements only in direct response to a request from the user, whereas AccuSnap snaps whenever the cursor passes over an element. For the most part, these two mechanisms are equivalent. However, these functions provide mechanisms for telling if there is a Snap currently active and if so, whether it was generated by a Tentative Point or by AccuSnap.