Hi,
AFAIK you cannot change the current UCS to an unnamed UCS with ActiveX.
You can get the current UCS matrix using the following routine:
;; gc:TMatrixFromTo
;; Returns the 4x4 transformation matrix from a Coordinates System to another one (same args as trans)
;;
;; Arguments
;; from : from coordinates system (integer, vector or ename)
;; to : to coordinates system (integer, vector or ename)
(defun gc:TMatrixFromTo (from to)
(append
(mapcar
(function
(lambda (v o)
(append (trans v from to T) (list o))
)
)
(list '(1. 0. 0.) '(0. 1. 0.) '(0. 0. 1.))
(trans '(0 0 0) to from)
)
(list '(0. 0. 0. 1.))
)
)
To get the current UCS transformation matrix:
(gc:TMatrixFromTo 0 1)
To tranform an entity (vla-object) from WCS to current UCS:
(vla-TransformBy ent (vlax-tmatrix (gc:TMatrixFromTo 0 1)))