.NET
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Find Rotation Angle of the current View
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I'm looking to find the current rotation of my view in modelspace.
This isn't the ucs directionm but any arbitrary view i'm using.
For example using 3dorbit to rotate around an object.
I want to match some temp graphics to align flat to my view.
EDIT:
I see there is a VIEWDIR variable. so that may be what I need

“We don’t have a snowball’s chance in a blast furnace of surviving this attack unless every one of our units gets into the fight right now!”
Re: Find Rotation Angle of the current View
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Just a shot in the dark
GetSystemVariable("ucsxdir") maybe
~'J'~
C6309D9E0751D165D0934D0621DFF27919
Re: Find Rotation Angle of the current View
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
ucsxdir gives me the angle of the ucs and not the angle of the view as I am currently looking at it.
Thank You for the effort. It's appreciated.

“We don’t have a snowball’s chance in a blast furnace of surviving this attack unless every one of our units gets into the fight right now!”
Re: Find Rotation Angle of the current View
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
public Vector3d get_ViewDirection(); Declaring Type: Autodesk.AutoCAD.DatabaseServices.Viewport Assembly: Acdbmgd, Version=18.2.0.0
class keyThumper<T> : Lazy<T>; another Swamper
I do not endorse the social media app links below![]()
Re: Find Rotation Angle of the current View
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Can you give a code sample on how to access it. I'm not finding any examples.

“We don’t have a snowball’s chance in a blast furnace of surviving this attack unless every one of our units gets into the fight right now!”
Re: Find Rotation Angle of the current View
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
This may have some info
class keyThumper<T> : Lazy<T>; another Swamper
I do not endorse the social media app links below![]()
Re: Find Rotation Angle of the current View
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I found the answer here
http://usa.autodesk.com/adsk/servlet/index?id=1816
in lesson 8

“We don’t have a snowball’s chance in a blast furnace of surviving this attack unless every one of our units gets into the fight right now!”

