Jump to content

Recommended Posts

Posted

Hello, I created a routine that allows me to create two horizontal windows but one of them is inaccessible.

As I can fix this ... ?

Thank you.

attachment.php?attachmentid=54568&cid=1&stc=1inaccessible viewport.dwg

inaccessible viewport.jpg

Posted

Looking at the crosshairs and the Model Tab being selected they appear to be Model Space Viewports. Something I've never used from back before Paper Space was introduced in r11, but still exists.

Posted

Run the AUDIT command, you should get this result:

 

AcDbViewportTableRecord: "*Active"
       Tilemode Viewport Corners Not filling up whole screen Set to 0,0..1,1
Pass 1 100     objects auditedAcDbViewportTableRecord: "16225629"
       Tilemode Viewport Corners Not filling up whole screen Set to 0,0..1,1

 

Then run the VPORTS command, click on Single, then OK.

The drawing will be back to normal then.

 

normaldwg.jpg

Posted
Looking at the crosshairs and the Model Tab being selected they appear to be Model Space Viewports.

 

Yes, these are tiled viewports in MS.

Posted

Thanks for answering.

I need to know which command allows me to activate the lower window.

Sorry for my English, I only speak Spanish.

Posted
Looking at the crosshairs and the Model Tab being selected they appear to be Model Space Viewports. Something I've never used from back before Paper Space was introduced in r11, but still exists.

 

To call up the Viewports configuration dialog enter _vports at the commandline, highly configurable and customized configurationscan be named and saved for subsequent use.

To activate any one viewport, just double click inside it. You can MAXIMIZE any of the viewports with the viewport control in the upper left corner of an active viewport.

configuring modelspace viewports.jpg

Posted
Thanks for answering.

I need to know which command allows me to activate the lower window.

Sorry for my English, I only speak Spanish.

 

Ejecute el comando AUDIT, usted debe obtener un resultado que demuestra que corrigió algunos errores.

 

A continuación, ejecute el comando VENTANAS, haga clic en Individual, entonces está bien. El sorteo se volverá a la normalidad luego.

 

véase también: https://translate.google.com

Posted (edited)
Ejecute el comando AUDIT, usted debe obtener un resultado que demuestra que corrigió algunos errores.

 

A continuación, ejecute el comando VENTANAS, haga clic en Individual, entonces está bien. El sorteo se volverá a la normalidad luego.

 

véase también: https://translate.google.com

 

 

I understand what you say, but I do not want to fix in sight, I want to create two views with attached routine. The problem is that one is not activated. I can get right as this?

 

(defun c:creovista1 ()
   (setq nomvista (substr (rtos (getvar "CDATE") 2 8 10 
      (entmake (list
               (cons 0 "VPORT")
               (cons 100 "AcDbSymbolTableRecord")
               (cons 100 "AcDbViewportTableRecord")
               (cons 2 nomvista)
               (cons 70 0)
               (cons 10 '(0.0 0.230000 0.0))
               (cons 11 '(1.0 1.0 0.0))
               (cons 12 '(40.4079 100.14 0.0))
               (cons 13 '(0.0 0.0 0.0))
               (cons 14 '(0.5 0.5 0.0))
               (cons 15 '(0.5 0.5 0.0))
               (cons 16 '(0.0 0.0 1.0))
               (cons 17 '(139.465 -94.4008 0.405))
               (cons 40 86.7926)
               (cons 41 2.20896)
               (cons 42 50.0)
               (cons 43 0.0)
               (cons 44 0.0)
               (cons 50 0.0)
               (cons 51 0.0) 
               (cons 71 0) 
               (cons 72 1000)
               (cons 73 1)
               (cons 74 3)
               (cons 75 0) 
               (cons 76 0) 
               (cons 77 0)
               (cons 78 0)
               (cons 281 0)
               (cons 65 1)
               (cons 110 '(0.0 0.0 0.0))
               (cons 111 '(1.0 0.0 0.0))
               (cons 112 '(0.0 1.0 0.0))
               (cons 79 0)
               (cons 146 0.0)
               (cons 60 2)
               (cons 61 5)
               (cons 292 1)
               (cons 282 1)
               (cons 141 0.0)
               (cons 142 0.0)
               (cons 63 250)
               (cons 421 3355443)
           )
   )
   (command-s "-ventanas" "R" nomvista "")
)

 

I am a newbie in AutoLISP.

Edited by rkmcswain
Added [CODE] tags
Posted

You haven't created two viewports you have modified the space autocad uses in the graphics screen. If your goal is to create two vports quickly just use the -vports command in your lisp routine. Something like this.

 

(defun c:vh ()

(command "-vports" "2" "h")

)

Posted
You haven't created two viewports you have modified the space autocad uses in the graphics screen.

 

Ding !!! Thanks ^^^^^

Posted

OK. There is no way to split the screen as I will, only the options that have default Autocad.

Posted

First create the viewport configuration(s) you want in your default template, give them a name. Simply drag the vports to the sizes you want, new in 2015.

 

Then simply restore the named vport and you have it ready to go.

 

Prior to 2015 sse -vports, notice the dash in front, and you can create combine viewports until you get the sizes you want.

 

2016 made this very easy by allowing us to adjust the viewports dynamically.

Posted
First create the viewport configuration(s) you want in your default template, give them a name. Simply drag the vports to the sizes you want, new in 2015.

 

Then simply restore the named vport and you have it ready to go.

 

Prior to 2015 sse -vports, notice the dash in front, and you can create combine viewports until you get the sizes you want.

 

2016 made this very easy by allowing us to adjust the viewports dynamically.

 

 

I understand what you propose, and what I already do. But I wanted to do with AutoLISP and insert as part of a routine that requires that particular screen configuration.

Autocad I did not think was so limited in that aspect ...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...