Author Topic: Dview - Setting camera position and Target without "command"?  (Read 156 times)

0 Members and 1 Guest are viewing this topic.

Peter2

  • Bull Frog
  • Posts: 465
Dview - Setting camera position and Target without "command"?
« on: October 13, 2017, 06:19:26 am »
The current view (_DVIEW) has a camera-position and target - see picture.

It is easy to modify it with "command-s":

Code - Auto/Visual Lisp: [Select]
  1. (command-s "_-dview" "" "_point" "66,77,88" "33,44,55"  "")

I hoped to avoid "command-s", but the sysvar "TARGET" is read-only, and I could not find the other values.

Any ideas to make it without "command-s" in a reasonable way?
Peter

AutoCAD 2016 - 2018 German (so some technical terms will be badly retranslated to English)
Civil 3D 2017 - 2018

David Bethel

  • Swamp Rat
  • Posts: 621
Re: Dview - Setting camera position and Target without "command"?
« Reply #1 on: October 13, 2017, 06:47:07 am »
You might be able to (entmake) a VIEW Table definition.  But then it would take a ( command ) call to restore it.  It would also take very talented and knowledgeable dview expert.  -David

Code: [Select]
          Table Name - (0 . VIEW)
            Item Name - (2 . 1)
                 Flag - (70 . 0)
          View Height - (40 . 168.901)
          View Center - (10 0.0 0.0)
           View Width - (41 . 360.135)
       View Direction - (11 380.436 496.623 193.311)
          View Target - (12 -1.61006 -1.40429 30.7763)
         Lense Length - (42 . 100.0)
     Front Clip Plane - (43 . -49.9995)
      Rear Clip Plane - (44 . -49.9995)
                Twist - (50 . 0.0)
            View Mode - (71 . 1)
 

From R13
R12 Dos - A2K

Peter2

  • Bull Frog
  • Posts: 465
Re: Dview - Setting camera position and Target without "command"?
« Reply #2 on: October 13, 2017, 09:19:36 am »
Thanks for the info, David.

I think I will stay with command ....
Peter

AutoCAD 2016 - 2018 German (so some technical terms will be badly retranslated to English)
Civil 3D 2017 - 2018