C++
int acedOsnap( const ads_point pt, const ACHAR * mode, ads_point result );
File
acedads.h
Description
Finds a point by means of object snap.
Applies the specified Object Snap modes to find the closest point to a reference point.
The APERTURE system variable determines the allowable proximity of a selected point to an entity when using Object Snap.
If acedOsnap() can find a point, it returns RTNORM; otherwise, it returns an error code.
Parameters
Parameters | Description |
---|---|
pt | Three-dimensional reference point |
mode | Mode applied by Object Snap; one or more comma-separated Object Snap identifiers, spelled as they are at the AutoCAD prompt line (abbreviations are allowed) |
Returns
Resulting closest three-dimensional point