codebase="hhctrl.ocx#Version=4,73,8561,0"> codebase="hhctrl.ocx#Version=4,73,8561,0" > codebase="hhctrl.ocx#Version=4,73,8561,0" >
 
  User Coordinate System object

A user-defined coordinate system that determines the orientation of the X, Y, and Z axes in 3D space.

VBA class name:

AcadUCS 

Create using:

UCSs.Add 

Access via:

UCSs.Item
Document.ActiveUCS 

You define a UCS to change the location of the (0, 0, 0) origin point and the orientation of the XY plane and the Z axis. You can locate and orient a UCS anywhere in 3D space, and you can define as many UCSs as you require.

All coordinates in ActiveX Automation are entered in the world coordinate system (WCS). Use the GetUCSMatrix method to return the transformation matrix of a given UCS. Use this transformation matrix to find the equivalent WCS coordinates.

Use the UCSIconOn property to turn the UCS icon on or off for a given viewport.

To make a UCS active, use the ActiveUCS property on the Document object. If changes are made to the active UCS, the new UCS object must be reset as the active UCS for the changes to appear. To reset the active UCS, simply call the ActiveUCS property again with the updated UCS object.

To add a new UCS to the drawing, use the Add method off the UCSs Collection. To edit or query an existing UCS, use the following methods and properties:

Methods

Delete

GetExtensionDictionary

GetUCSMatrix

GetXData

SetXData

Properties

Application

Document

Handle

HasExtensionDictionary

Name

ObjectID

ObjectName

Origin

OwnerID

XVector

YVector  

Events

Modified  

 

   Comments?