Method SetUcs
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetUcs(GeoPoint3, GeoVector3, GeoVector3)
Gives the viewport a user coordinate system of its own, as AutoCAD's SetUcs of an origin and two axes: they
are written as given, the system named by none (345 and 346 taken out) and along no axis (79 of 0).
public void SetUcs(GeoPoint3 origin, GeoVector3 x, GeoVector3 y)
Parameters
originGeoPoint3The origin.
xGeoVector3The axis x.
yGeoVector3The axis y, not along the axis x.
Exceptions
- ArgumentException
Thrown when a point or axis is not of finite numbers, or the axes are of no length or along one line.
- InvalidOperationException
Thrown when the viewport is erased, or is of a file older than R2000.
SetUcs(DxfOrthographicView)
Gives the viewport the user coordinate system of a view along an axis, as AutoCAD's SetUcs of an
OrthographicView: about the world's origin, its plane that of the view, top (x along x, y along y), bottom (x,
-y), front (x, z), back (-x, z), left (-y, z) or right (y, z); its view written (79), its base the world (346 taken out).
public void SetUcs(DxfOrthographicView view)
Parameters
viewDxfOrthographicViewThe view.
Exceptions
- ArgumentOutOfRangeException
Thrown when the view is not one of the six along an axis.
- InvalidOperationException
Thrown when the viewport is erased, or is of a file older than R2000.