I am tasked with automatically creating named orthogonal named views around an object. So far I have successfully created a "3-dimensional box" around the object which is really just 6 rectangular 3d polylines. I am then creating the named views by supplying the view 2 of the points of the polyline. A lower left point and a upper right point. (both points defined in current ucs) So far the only view that is working correctly is the top view which makes sense because i have not done any ucs transformations. The question that I have is that before i create any of the other views do i need to change my ucs to that view direction and then transform my points that define that view into the current ucs? I am a little bit confused about how to create a view programmatically that is perpendicular to the current space.
I am following the article found at this location
[size=78%]http://adndevblog.typepad.com/autocad/2013/03/settingcreating-a-named-view-with-associated-ucs.html[/size] but i find that they do not do a good job of explaining what they are doing or why they are doing something. They just throw the code at you.