WCS

Discussion in 'AutoCAD' started by Kenneth Hutson, Jan 25, 2005.

  1. Hi Group,
    How do you set to World Coordinate System using VBA?
    Thanks,
    Kenneth Hutson
    San Antonio, TX
     
    Kenneth Hutson, Jan 25, 2005
    #1
  2. Kenneth Hutson

    fantum Guest

    Dim Origin(0 To 2) As Double
    Dim xAxis(0 To 2) As Double
    Dim yAxis(0 To 2) As Double

    xAxis(0) = 1
    yAxis(1) = 1
    ThisDrawing.ActiveUCS = ThisDrawing.UserCoordinateSystems.Add( _
    Origin, xAxis, yAxis, "World")
     
    fantum, Jan 25, 2005
    #2
  3. fantum,
    Thanks for the help. I arrived at a similar solution, although it seems
    strange having to add a UCS which only masquerades as the WCS. My
    perception is that the WCS is an intrinsic coordinate system. After all,
    typing DDUCS displays "World" already. Setting to it through the dialog box
    does not add a UCS. So if it's built in already, it seems there should be a
    way to just make it current.
    Ken Hutson
    San Antonio, TX
     
    Kenneth Hutson, Jan 25, 2005
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.