ILength GetPointMatchTolerance(Ntx.File file) { // Define line end point tolerance that matches the resolution of the input NTX file. // ...in the sample NTX file I've got, the resolution is supposedly 0.0001m, but // things like circle center points are frequently different by 0.0002 or so. // So be a bit more permissive as far as search tolerance is concerned. double res = file.Header.XYResolution; //ILength tol = new MicronValue(res); ILength tol = new MicronValue(res * 10); return(tol); }
ILength GetPointMatchTolerance(Ntx.File file) { // Define line end point tolerance that matches the resolution of the input NTX file. // ...in the sample NTX file I've got, the resolution is supposedly 0.0001m, but // things like circle center points are frequently different by 0.0002 or so. // So be a bit more permissive as far as search tolerance is concerned. double res = file.Header.XYResolution; //ILength tol = new MicronValue(res); ILength tol = new MicronValue(res*10); return tol; }