Method SetOrientation
- Namespace
- GeometryHelper.Dxf
- Assembly
- GeometryHelper.dll
SetOrientation(GeoPoint3, GeoVector3, GeoVector3)
Places the image anew, as AutoCAD's Orientation set: at a corner with its two sides, written as the vectors of
one pixel (11 and 12), each side divided by the pixels along it; the clip boundary, in pixels, goes with the image.
The image of 4 by 3 pixels set at (0, 0, 0) with the sides (80, 0, 0) and (0, 60, 0) has pixels 20 across and 20 up.
The sides need not be square or of one scale, as AutoCAD 2021 takes them.
public void SetOrientation(GeoPoint3 origin, GeoVector3 u, GeoVector3 v)
Parameters
originGeoPoint3The corner the image is placed at.
uGeoVector3The side along its bottom.
vGeoVector3The side up its left, not along
u.
Exceptions
- ArgumentException
Thrown when a point or side is not of finite numbers, a side has no length, or the two run along one line.
- InvalidOperationException
Thrown when the image is erased, or its record gives it no pixels to divide the sides by.