Results 1 to 3 of 3

Thread: How can I tell if I am in Modelspace or Paperspace

  1. #1
    I could stop if I wanted to
    Join Date
    2003-03
    Location
    Alberta
    Posts
    260
    Login to Give a bone
    0

    Question How can I tell if I am in Modelspace or Paperspace

    How can I tell if I am in Modelspace or Paperspace. There's the TILEMODE that I can read but this does me no good if I'm in a viewport in paperspace. If I'm in a viewport I'm really in model am I not but the Thisdrawing.Activespace returns 0 (acPaperSpace) when I'm in a viewport or in the layout. What can I check to see if my layout is active or if a viewport is active?

  2. #2
    Administrator Ed Jobe's Avatar
    Join Date
    2000-11
    Location
    Turlock, CA
    Posts
    6,420
    Login to Give a bone
    0

    Default Re: How can I tell if I am in Modelspace or Paperspace

    You're in a forrest and trees scenario. There isn't just one thing you can check, you need to check both.

    Code:
    Check1: 'first check for tilemode = 0
        If ThisDrawing.ActiveSpace = acPaperSpace Then
    Check2: 'then make sure ms is active
            If ThisDrawing.MSpace = True Then
                'do your stuff
            End If
        End if
    C:> ED WORKING....


    LinkedIn

  3. #3
    I could stop if I wanted to
    Join Date
    2003-03
    Location
    Alberta
    Posts
    260
    Login to Give a bone
    0

    Talking Re: How can I tell if I am in Modelspace or Paperspace

    Thanks, I just found the solution as well.

Similar Threads

  1. ModelSpace V. PaperSpace
    By Christopher.cornell in forum VBA/COM Interop
    Replies: 1
    Last Post: 2007-07-12, 06:11 PM
  2. Replies: 9
    Last Post: 2007-01-10, 09:28 AM
  3. Can I WMFOUT from both Paperspace & Modelspace?
    By bmonk in forum AutoCAD General
    Replies: 4
    Last Post: 2006-08-01, 04:49 AM
  4. Modelspace vs Paperspace
    By dragomanusa in forum AutoCAD General
    Replies: 3
    Last Post: 2006-02-12, 07:57 PM
  5. Object in Paperspace vs Modelspace
    By matt.worland in forum VBA/COM Interop
    Replies: 5
    Last Post: 2004-07-29, 02:38 PM

Posting Permissions

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