+ Reply to Thread
Page 1 of 6 1 2 3 ... LastLast
Results 1 to 10 of 51
  1. #1
    Junior Member
    Using
    AutoCAD 2006
    Join Date
    Mar 2009
    Posts
    23

    Default Model Tab To Layout Tab

    Registered forum members do not see this ad.

    IS THERE ANY COMMAND TO SWITCH MODEL TAB TO LAYOUT TAB.
    I USED <Switching to: Layout1> .BUT IT DOES NOT WORK.

  2. #2
    Senior Member
    Using
    AutoCAD 2009
    Join Date
    Apr 2009
    Posts
    231

    Default

    Code:
    (defun c:tm (/)
      (setvar 'tilemode
              (if (zerop (getvar 'tilemode))
                1
                0
              )
      )
      (princ)
    )

  3. #3
    Junior Member
    Using
    AutoCAD 2006
    Join Date
    Mar 2009
    Posts
    23

    Default

    Thanks for your lisp program. But when i am using it gives the following error

    ; error: AutoCAD variable setting rejected: TILEMODE nil
    Command:

  4. #4
    Senior Member
    Using
    AutoCAD 2009
    Join Date
    Apr 2009
    Posts
    231

    Default

    Strange...what version of cad are you using?

  5. #5
    Forum Deity
    Using
    not specified
    Join Date
    Jul 2004
    Location
    Anchorage, Alaska
    Posts
    2,074

    Default

    It should have worked, did you copy & paste the code?

    here's a slightly differnet version:

    Code:
    (defun c:tm (/)
      (setvar 'tilemode
              (- 1 (getvar 'tilemode))
      )
      (princ)
    )

  6. #6
    Super Member David Bethel's Avatar
    Discipline
    Multi-disciplinary
    David Bethel's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Commercial Food Service
    Using
    AutoCAD pre 2000
    Join Date
    Dec 2003
    Location
    Newport News, Virginia
    Posts
    1,925

    Default

    This's a new one
    Code:
    'tilemode
    It was always
    Code:
    "tilemode"
    Did it change? -David
    R12 (Dos) - A2K

  7. #7
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,708

    Default

    I thought they were two of the same?

    'tilemode and "tilemode"
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  8. #8
    Senior Member
    Using
    AutoCAD 2009
    Join Date
    Apr 2009
    Posts
    231

    Default

    Here is my favorite version (I believe Se7en is the original author)

    Code:
    (defun c:tm (/)
      (setvar 'tilemode (boole 6 1 (getvar 'tilemode)))
      (princ)
    )

  9. #9
    Quantum Mechanic Lee Mac's Avatar
    Computer Details
    Lee Mac's Computer Details
    Operating System:
    Windows 7 Ultimate (32-bit)
    Discipline
    Multi-disciplinary
    Lee Mac's Discipline Details
    Discipline
    Multi-disciplinary
    Details
    Custom Programming / Software Customisation
    Using
    AutoCAD 2013
    Join Date
    Aug 2008
    Location
    London, England
    Posts
    15,708

    Default

    ^^ pretty neat
    Lee Mac Programming

    With Mathematics there is the possibility of perfect rigour, so why settle for less?

    Just another Swamper

  10. #10
    Luminous Being alanjt's Avatar
    Using
    Civil 3D 2011
    Join Date
    Apr 2008
    Posts
    5,985

    Default

    Registered forum members do not see this ad.

    much less elegant, but since many options are being offered, i thought i'd throw another option in the mix:
    Code:
    (defun c:TM (/)
     (if (eq (getvar 'tilemode) 1)
       (setvar 'tilemode 0)
       (setvar 'tilemode 1)
     )
     (princ)
    )
    se7en's is by far the most impressive. they all do the same thing. 6 in one, half a dozen in the other.

Similar Threads

  1. model different to layout
    By fbby in forum AutoCAD 2D Drafting, Object Properties & Interface
    Replies: 6
    Last Post: 22nd May 2008, 07:54 am
  2. Replies: 7
    Last Post: 5th Feb 2008, 08:37 am
  3. model? layout?
    By bethw in forum AutoCAD Beginners' Area
    Replies: 7
    Last Post: 12th Nov 2007, 02:04 am
  4. Model to layout
    By carl mac in forum AutoCAD Beginners' Area
    Replies: 4
    Last Post: 25th Feb 2006, 04:42 pm
  5. from Layout to model!
    By stargirl in forum AutoCAD Beginners' Area
    Replies: 4
    Last Post: 15th Jan 2004, 02:39 am

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts