Setting the UCS to WCS

By Virupaksha Aithal

Below code shows the procedure to set the UCS TO WCS.

        <CommandMethod("restoreWCS")> _

        Public Sub restoreWCS()

            Dim doc As Document = _

                       Application.DocumentManager.MdiActiveDocument

 

            Dim ed As Editor = doc.Editor

 

            ed.CurrentUserCoordinateSystem = Matrix3d.Identity

            ed.Regen()

        End Sub


Comments

Leave a Reply

Discover more from Autodesk Developer Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading