When copyingclipping and object in a floating viewport that has a UCS to which it is in PLAN view, I sometimes find that when I paste this object into a new dwg, the object is no longer in PLAN view, but rather in the same orientation to the UCS that it was to the WCS of the original dwg. Moving and rotating the UCS is convenient when working in 2D, and essential when working in 3D. You can change the location and orientation of the current UCS by clicking the UCS icon and using its grips, or you can use the options in the UCS command. For example, clicking on the UCS icon displays its grips. Then, click on the square origin grip (1) and click the endpoint of its new location.
The TranslateCoordinates method translates a point or a displacement from one coordinate system to another.
A point argument, called OriginalPoint, can be interpreted as either a 3D point or a 3D displacement vector. This argument is distinguished by the Boolean argument, Disp. If the Disp argument is set to TRUE, the OriginalPoint argument is treated as a displacement vector; otherwise, it is treated as a point. Two more arguments determine which coordinate system the OriginalPoint is from, and to which coordinate system the OriginalPoint is to be converted. The following AutoCAD coordinate systems can be specified in the From and To arguments:
Differentiate Between Ucs And Wcs In Autocad 2018
Change The Ucs In Autocad
Differentiate Between Ucs And Wcs In Autocad 2017
When converting coordinates to or from the OCS you must enter the normal for the OCS in the final argument of the TranslateCoordinates function.
Translate OCS coordinates to WCS coordinates
This example creates a polyline in model space. The first vertex for the polyline is then displayed in both the OCS and WCS coordinates. The conversion from OCS to WCS requires the normal for the OCS be placed in the last argument of the TranslateCoordinates method.