Here’s a clumsy but valid method to convert WCS coordinates to the coordinates of a named ucs by using only AutoCAD commands and Excel. It was fun using Excel to manipulate the data. No vlisp required.
In addition to the list of points in WCS coordinates you will need the matrix of the UCS. To get the UCS matrix do the following (note, I’m sure there is an easier method with VLISP):
Make the desired UCS current.
Name the current ucs with:
UCS NA S (I’ve given it the name ucs1 in my example).
Make the WCS current with
UCS [Enter] [Enter]
Get the matrix of ucs1:
UCS NA ? ucs1

The matrix has 4 rows and 3 columns. Enter these values into Excel via copy and paste with the x axis as the FIRST row and the origin as the FOURTH row.

The UCS matrix is used to convert UCS coordinates To WCS coordinates. We want to do the opposite so we need to invert the UCS matrix. To invert a matrix it must have the same number of rows and columns. I’ve added a fourth column to the matrix (0 0 0 1) to make it a square matrix (cells B2:E5). Cells F2:I5 use the Excel MINVERSE function to invert the matrix.
Finally, all we need to do to convert extracted x,y,z WCS coordinates to UCS coordinates is to multiply the WCS coordinates and the inverted UCS matrix. Note that a 1 is included as a fourth coordinate for the WCS point. This is required because the UCS matrix has 4 rows.
Don’t worry if you do not follow all of the math outlined above. All you need to do is to list the WCS coordinates in cells B9, C9, and D9 down. Fill down cells F9:H9 as far down as needed for the number of points you have. Since these cells make use of an Excel array functions you must select all three cells when doing the fill-down.
In my example I had a point at x=1, y=2, z=3 in UCS coordinates (10.5946, 4.3371, 6.2618 WCS coordinates). You can see that the conversion from WCS is not exact. This is due to the 4 decimal place rounding I used for the point and the matrix. For better results, set the precision higher with LUPREC.
This process could be done with a VLISP program that makes use of functions to do the conversions but I thought it an interesting challenge to do it with Excel alone.
lee.minardi