• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

display windows in the model space

lattu

Guest
they asked me a question to which I couldn't answer and turn it to you: is there any way to view in the model space what displays a certain window in the paper space? I also wonder if the windows have an id of recognition
Thank you.
 
in mechanical create in the model space a window that will have its counterpart in the paper space; the latter will, with appropriate confirmation, change of the first while the opposite is not possible. with the simple autocad I don't think you can

the second question I cannot answer
 
you mean a sign like window edge but reported in the model?
in reality there is a path "maccheronica",: go to the double-clickhk layout in the window and draw a rectangle until the window allows you.
Get out of model space, return to paper and then go into model, you find the approximate window.

via lisp the window is a defined object, so if you can get the reference points, but I have never served to do so, so I should first deepen to give you some code.

the configuration (the corners) of the windows is recallable via lisp through (vport)
 
you mean a sign like window edge but reported in the model?
in reality there is a path "maccheronica",: go to the double-clickhk layout in the window and draw a rectangle until the window allows you.
Get out of model space, return to paper and then go into model, you find the approximate window.

via lisp the window is a defined object, so if you can get the reference points, but I have never served to do so, so I should first deepen to give you some code.

the configuration (the corners) of the windows is recallable via lisp through (vport)
I had thought about it but I happen to have a case in which I have to change often different windows, but knowing already in the model space what will go to view and do it by hand becomes quite slender. if you find a shortcut would be ideal
 
Just use the space change command. in the paper space draws the rectangles of the windows (details right on the windows without making any approximation) then with the command changes space bring them back into the model space. will be properly scaled. the limits will match perfectly with those of the layouts.

there is also a second possibility (although perhaps it is not exactly what you ask). I guess you'll have to make changes and get into the windows with double-click. generally this way of working is claustrophobic and pushes you to return to the model space (not to mention that you usually forget to block the display of the window and change the display scale as well).
But it is no longer necessary (I have not known how long to tell the truth). you can enter each window by widening it to full screen and automatically blocking the scale to that set (the block is automatic). One way is to click not inside the window but on its edge (double click). If you want to use the icons on the bottom right that have the arrows that in one case enter a rectangle and in the other exit. in practice you are reported in the model space but with the window parameters (comfort when using layer settings other than global ones).
 
space change (chspace in English) I did not know it, and it can actually be useful.
 
chspace I know it even if I rarely use it and malvolentieri, however it still requires manual tracking of every single window, importing the contours and does not update the profile in case the windows are changed.
the lisp was suggested but unfortunately I do not know where to start to create the code.
In the meantime, the colleague is resigning to the "ripassini" :biggrin:
 
However, if you want to save yourself a bit of effort, try to see here:https://forums.autodesk.com/t5/autocad-forum/showing-viewports-outlines-in-model-space/td-p/2049289in practice they have already written the lisp that creates the rectangle and carries it in the model space. better than nothing.
the lisp was thought for a system in English so the unrecognized commands will be corrected (usually just put the undertone to make it work).
thanks, it is definitely a starting base, which should also be implemented to display irregular windows.
attached the original lisp
 

Attachments

very good crystal, that's exactly what we were looking for, it's perfect as it is.
it is not necessary to automate the research because it can happen that they need 3 or even only 1.

ps: the attached lisp is set for commands in English View attachment VPOutlineV1-2.lsp
 
they asked me a question to which I couldn't answer and turn it to you: is there any way to view in the model space what displays a certain window in the paper space? I also wonder if the windows have an id of recognition
Thank you.
as you were doing so many years ago when there was no paper space, you do a nice rectangle in scale compared to drawing
 
as you were doing so many years ago when there was no paper space, you do a nice rectangle in scale compared to drawing
Maybe Lattu was looking for something less "amanuense".
the good thing is that your reply intervenes sharply (imho) to found solution.. .
If it was a football game, I would expect a yellow:biggrin:
 
Maybe Lattu was looking for something less "amanuense".
the good thing is that your reply intervenes sharply (imho) to found solution.. .
If it was a football game, I would expect a yellow:biggrin:
exaggerated, a lisp for everything
 
lisp makes sense if you repeat the same features many times.
If you have to do it three times, do the rectangle before you write the code.
but if it is a recurring operation, the time spent writing the code repays the time remarried.
for those who can do it.. .
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top