View top (without zoom)

View top (without zoom)

BB8x
Advocate Advocate
1,374 Views
7 Replies
Message 1 of 8

View top (without zoom)

BB8x
Advocate
Advocate

Hello

 

(defun C:VT () (command "_-VIEW" "Top"))

 

I use this to set top view (speeds me up). Is there a way to add something to this tiny lisp? For now view top zooms out extents when used. Is there a way to keep actual window zoom as it is before view top is commenced?

 

Thank you 

0 Likes
Accepted solutions (1)
1,375 Views
7 Replies
Replies (7)
Message 2 of 8

roland.r71
Collaborator
Collaborator

There was a lisp by @Kent1Cooper, modified by@marko_ribar on cadtutor, to do just that, but it's "unavailable". (maybe they can upload it here, if you ask 'm nicely? 😉)

0 Likes
Message 3 of 8

marko_ribar
Advisor
Advisor
Accepted solution

Thanks for recommandetion...

This is link at cadtutor : https://www.cadtutor.net/forum/topic/62901-zoom-from-view-to-view-without-zooming-out-to-extend/?tab... 

Here is at theswamp (show stuff forum - you must be logged) : http://www.theswamp.org/index.php?topic=52930.msg577565#msg577565 

 

And also you have @Kent1Cooper version here at this forum : https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/views-from-predefined-directions-wit... 

But this last version is from 2009. and I suppose not modified by me...

 

HTH. M.R.

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Message 4 of 8

roland.r71
Collaborator
Collaborator

@marko_ribarThe cadtutor link is the one i found, but it says: unavailable.

If I click it, it says:

Sorry, there is a problem

This attachment is not available. It may have been removed or the person who shared it may not have permission to share it to this location.

Error code: 2C171/1

0 Likes
Message 5 of 8

Kent1Cooper
Consultant
Consultant

In my command set that @marko_ribar linked to, that would be the VOO command, for View, Orthogonal, from Overhead.  If you want its DVIEW-based approach plugged into just your from-the-top command definition, it would be like this:

 

(defun C:VT ()

  (command "_.dview" "" "_points" "none" (getvar 'viewctr) "_none" "@0,0,1" "")
)

Kent Cooper, AIA
Message 6 of 8

marko_ribar
Advisor
Advisor

@roland.r71 wrote:

@marko_ribarThe cadtutor link is the one i found, but it says: unavailable.

If I click it, it says:

Sorry, there is a problem

This attachment is not available. It may have been removed or the person who shared it may not have permission to share it to this location.

Error code: 2C171/1


Sorry to hear that... I'll attach what I have in my library...

Marko Ribar, d.i.a. (graduated engineer of architecture)
0 Likes
Message 7 of 8

Sea-Haven
Mentor
Mentor

Opened link to cadtutor and open lsp no problems. It may be a if not a member ?

0 Likes
Message 8 of 8

roland.r71
Collaborator
Collaborator

That's possible. But I would expect something like:

"Sorry, To download attachments you need to be loged-in.

Don't have an account yet? click here."

0 Likes