AutoCAD Civil 3D General Discussion

AutoCAD Civil 3D General Discussion

Reply
*Expert Elite*
Neilw
Posts: 2,253
Registered: ‎09-04-2006
Message 11 of 28 (411 Views)

Re: Rotating the View of a Drawing

10-11-2012 08:17 AM in reply to: dankoss

I find the Align Space tool in the Express tools works nicely for aligning viewports to model space lines or picked points. Basically it is a macro that automates the process of applying a DVIEW TWIST. Be aware that it will also scale the viewport to fit your picks, but once you get the view rotated it is easy to reset the scale.

Neil Wilson (a.k.a. neilw)
Infrastructure Suite/C3D 2013, LDT 2004, Power Civil v8i SS1
WIN 7 64 PRO
HP Pavillion h8xt, i7 2600, 12 GB
RADEON 6450, 1 GB
http://www.sec-landmgt.com
Valued Contributor
rick.hberg
Posts: 71
Registered: ‎06-27-2011
Message 12 of 28 (404 Views)

Re: Rotating the View of a Drawing

10-11-2012 08:34 AM in reply to: dankoss

Save the lisp file to some location of your choosing.  From there, there are many ways to load....one is:

 

type APPLOAD. Then you can browse to the file and press Load. This loads it in the active drawing.

In the same dialog, if you do like the routine and want it to auto-load for you in each drawing...pick the Contents button by the briefcase, then pick Add, and browse to the file again.

 

The commands - for the RVIEW.lsp (with UCS to View) the command is RVIEW

for RVIEW2 (UCS to World) the command is RVIEW2

 

Civil 3D 2011
Windows 7 x64
*Expert Elite*
BrianHailey
Posts: 2,791
Registered: ‎04-27-2005
Message 13 of 28 (380 Views)

Re: Rotating the View of a Drawing

10-11-2012 03:54 PM in reply to: dankoss

Set VPROTATEASSOC to 0, rotate the viewport.

Set VPROTATEASSOC to 1, rotate the viewport back.

Done.

 

http://screencast.com/t/76Z4957XG 

Brian Hailey
CAD-1.com
My Blog
*Expert Elite*
Neilw
Posts: 2,253
Registered: ‎09-04-2006
Message 14 of 28 (372 Views)

Re: Rotating the View of a Drawing

10-11-2012 04:54 PM in reply to: dankoss

Unless I am missing something you shouldn't need a LISP routine for this. You already have one with the Express tools.

 

http://screencast.com/t/aWvsawyY

Neil Wilson (a.k.a. neilw)
Infrastructure Suite/C3D 2013, LDT 2004, Power Civil v8i SS1
WIN 7 64 PRO
HP Pavillion h8xt, i7 2600, 12 GB
RADEON 6450, 1 GB
http://www.sec-landmgt.com
Valued Contributor
rick.hberg
Posts: 71
Registered: ‎06-27-2011
Message 15 of 28 (362 Views)

Re: Rotating the View of a Drawing

10-11-2012 06:31 PM in reply to: dankoss

I agree that you don't need a lisp routine to rotate the view - it's purely user preference.

 

To just rotate the view in the viewport (or in Model space), RVIEW is much faster - type RVIEW and pick two points - done.  Want to get the view back to World - type RVIEW and pick W - done.  Want to specify an angle to rotate the view - type RVIEW and enter the angle - done.  I just don't like the multi-step procedures of the other installed options.

 

But sure, other commands are out there...mvsetup is pretty nice to line up plan and profile viewports....and if you wanted to rotate the physical viewport with the view - then definitely vprotateassoc is the way to go.  Totally user preference is all I'm sayin'

:smileyhappy:

Civil 3D 2011
Windows 7 x64
*Expert Elite*
antoniovinci
Posts: 1,660
Registered: ‎06-03-2011
Message 16 of 28 (349 Views)

Re: Rotating the View of a Drawing

10-12-2012 02:03 AM in reply to: rick.hberg

rick.hberg wrote:

RVIEW is much faster


It's faster, but misleading, as every routine based on UCS commands.

As stated by Allen, the only right solution in the model space is _DVIEW => _TWIST

*Expert Elite*
AllenJessup
Posts: 5,872
Registered: ‎05-21-2003
Message 17 of 28 (338 Views)

Re: Rotating the View of a Drawing

10-12-2012 05:00 AM in reply to: dankoss

Actually. The whole thing would be much simpler if AutoCAD would let you set the VIEWTWIST from the command line. I'm attaching an old lisp that will set the Snapangle parallel to the rotated view.

 

Allen

Valued Contributor
rick.hberg
Posts: 71
Registered: ‎06-27-2011
Message 18 of 28 (335 Views)

Re: Rotating the View of a Drawing

10-12-2012 05:04 AM in reply to: Neilw

Antonio, you're right (I was thinking inside the box - how we do it here)...

RView forces UCS to View

RView2 forces UCS to World

RView3 never gives UCS any thought...(attached).

 

Thanks for the critique...

Civil 3D 2011
Windows 7 x64
*Expert Elite*
AllenJessup
Posts: 5,872
Registered: ‎05-21-2003
Message 19 of 28 (326 Views)

Re: Rotating the View of a Drawing

10-12-2012 05:24 AM in reply to: rick.hberg

Rick,

 

That looks promising since it doesn't use a UCS. I had to add (vl-load-com) after the local variables to get it to run. I'd say that if your going to use a lisp to set the viewtwist that this would be the best one to use.

 

Allen

*Expert Elite*
AllenJessup
Posts: 5,872
Registered: ‎05-21-2003
Message 20 of 28 (324 Views)

Re: Rotating the View of a Drawing

10-12-2012 05:25 AM in reply to: BrianHailey

Nice trick!

 

Allen

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.