juan010101 Posted June 11, 2015 Share Posted June 11, 2015 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. inaccessible viewport.dwg Quote Link to comment Share on other sites More sharing options...
Tharwat Posted June 11, 2015 Share Posted June 11, 2015 What do you mean by windows ? layouts ? Quote Link to comment Share on other sites More sharing options...
tombu Posted June 11, 2015 Share Posted June 11, 2015 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. Quote Link to comment Share on other sites More sharing options...
Tharwat Posted June 11, 2015 Share Posted June 11, 2015 But the drawing has tow layouts ! Quote Link to comment Share on other sites More sharing options...
rkmcswain Posted June 11, 2015 Share Posted June 11, 2015 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. Quote Link to comment Share on other sites More sharing options...
rkmcswain Posted June 11, 2015 Share Posted June 11, 2015 Looking at the crosshairs and the Model Tab being selected they appear to be Model Space Viewports. Yes, these are tiled viewports in MS. Quote Link to comment Share on other sites More sharing options...
juan010101 Posted June 11, 2015 Author Share Posted June 11, 2015 Thanks for answering. I need to know which command allows me to activate the lower window. Sorry for my English, I only speak Spanish. Quote Link to comment Share on other sites More sharing options...
Dadgad Posted June 11, 2015 Share Posted June 11, 2015 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. Quote Link to comment Share on other sites More sharing options...
rkmcswain Posted June 11, 2015 Share Posted June 11, 2015 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 Quote Link to comment Share on other sites More sharing options...
juan010101 Posted June 11, 2015 Author Share Posted June 11, 2015 (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 June 11, 2015 by rkmcswain Added [CODE] tags Quote Link to comment Share on other sites More sharing options...
rkent Posted June 11, 2015 Share Posted June 11, 2015 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") ) Quote Link to comment Share on other sites More sharing options...
rkmcswain Posted June 11, 2015 Share Posted June 11, 2015 You haven't created two viewports you have modified the space autocad uses in the graphics screen. Ding !!! Thanks ^^^^^ Quote Link to comment Share on other sites More sharing options...
juan010101 Posted June 12, 2015 Author Share Posted June 12, 2015 OK. There is no way to split the screen as I will, only the options that have default Autocad. Quote Link to comment Share on other sites More sharing options...
rkent Posted June 12, 2015 Share Posted June 12, 2015 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. Quote Link to comment Share on other sites More sharing options...
juan010101 Posted June 13, 2015 Author Share Posted June 13, 2015 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 ... Quote Link to comment Share on other sites More sharing options...
tombu Posted June 14, 2015 Share Posted June 14, 2015 From AutoCAD help: Remarks The entmake function can define both graphical and nongraphical entities. You cannot create viewport objects with entmake. http://help.autodesk.com/view/CIV3D/2016/ENU/?guid=GUID-D47983BA-1E5D-417D-85B8-6F3DE5F506BA Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.