TARGET System Variable

Discussion in 'AutoCAD' started by Martin Schmid, Feb 7, 2004.

  1. I have an application... however, a particular drawing has the variable
    TARGET set to something other than 0,0,0 in modelspace, and this throws my
    application off my the exact distance reported by this TARGET value...

    What is this variable? What sets it, and how can it be reset?... it shows
    that it is a Read only variable according to the docs....



    Thanks for any help!
     
    Martin Schmid, Feb 7, 2004
    #1
  2. Martin Schmid

    James Murphy Guest

    That variable has to do with setting the camera view for perspective view in
    3d models. Look into the Dview command and CAmera options

    Murph
     
    James Murphy, Feb 8, 2004
    #2
  3. Martin Schmid

    John Uhden Guest

    Since Target can be a property of a View, maybe you can create a View and
    restore it via SetView.
     
    John Uhden, Feb 8, 2004
    #3
  4. Martin Schmid

    David Bethel Guest

    Martin,

    I've had the same problem in the past. The (trans) function can get all
    screwed up.

    To reset TARGET to 0,0,0

    (defun c:reset_target ()
    (command "_.DVIEW" "" "_PO" '(0 0 0) '(0 0 1) "_X"))

    -David
     
    David Bethel, Feb 8, 2004
    #4
  5. Martin Schmid

    OLD-CADaver Guest

    TARGET is the coordinates for the center of your current view.
     
    OLD-CADaver, Feb 8, 2004
    #5
  6. Martin Schmid

    David Bethel Guest

    Not really.

    Stores the location (as a UCS coordinate) of the target point for the
    current viewport.

    The only way I know of changing the TARGET value is via DVIEW. PLAN and
    ZOOM have no effect on it.

    - David
     
    David Bethel, Feb 8, 2004
    #6
  7. Martin Schmid

    OLD-CADaver Guest

    You're absolutely correct. I should have added "when the view was created".
     
    OLD-CADaver, Feb 9, 2004
    #7
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.