UCS problem

Discussion in 'AutoCAD' started by The Hunter, Aug 29, 2004.

  1. The Hunter

    The Hunter Guest

    I want to get the origin of the current ucs point.

    I coded this:

    GetOffset = ThisDrawing.ActiveUCS.Origin

    This will return the origin point for a few times, but after a while it does not work good. I have to go into Tools->Named UCS... and delete all the UCS's that appear for no reason.

    For Example
    _Active1
    _Active2
    _Active3

    Why do these UCS's come and is there a better way to get the current ucs's orign?
     
    The Hunter, Aug 29, 2004
    #1
  2. Does your code move the UCS around? Do you manually change the UCS around
    between runs? If you use the UCS command to make a new UCS by moving or
    rotating the current one, it will save another _Active UCS.

    What do you mean when you say "it does not work good"? Does it run slower?
    Or does it give you a wrong answer for the Origin's coordinates?

    James
     
    James Belshan, Sep 1, 2004
    #2
  3. The Hunter

    The Hunter Guest

    Does your code move the UCS around? No.

    Do you manually change the UCS around between runs? Yes.

    If you use the UCS command to make a new UCS by moving or rotating the current one, it will save another _Active UCS.
    I don't move the ucs around while running the program.


    What do you mean when you say "it does not work good"?
    It seems that autocad gets confused and gets the wrong UCS, and sometimes if i delete all the _ACTIVEx it will start reading the right ucs( the active one)

    Does it run slower? No
    Or does it give you a wrong answer for the Origin's coordinates? Sometimes yes for no reason that i can see
     
    The Hunter, Sep 2, 2004
    #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.