Results 1 to 2 of 2

Thread: ModelSpace V. PaperSpace

  1. #1
    Member
    Join Date
    2007-06
    Posts
    44
    Login to Give a bone
    0

    Default ModelSpace V. PaperSpace

    I searched on the boards for this question but did not find anything. I am using VBA to xref in some drawings. I would like a few of them to go to model space and a few to go to paperspace. I already have all the logic worked out as to which go where I just need to know what is going on. This is basically how I would put it in paperspace:

    ThisDrawing.PaperSpace.InsertBlock(insertionPnt, PathName, 0.083333, 0.083333, 0.083333, 0)

    and likewise if I wanted it in ModelSpace I would just replace Paperspace with Modelspace. However upon trying this, for some reason they all show up in paperspace. Do I need to set them active before I do this or something. Thank you very much.

    EDIT: Sorry for wasting your time. I figured it out and apparently thats what you need to do is set it active first.
    Last edited by Christopher.cornell; 2007-07-12 at 02:30 PM.

  2. #2
    All AUGI, all the time
    Join Date
    2015-12
    Location
    Central Oregon
    Posts
    591
    Login to Give a bone
    0

    Default Re: ModelSpace V. PaperSpace

    I would think that your original code would work just fine. But, I do know that if you use the Actual block object to insert it to it works as desired without setting it current. Do so by grabbing the Layout from the Layouts collection (Set oLayout = oLayouts.Item("Model") 'for Modelspace) and then get the Layout's Block object (which is what actually contains the entities in the Layout). Do the same for each PS Layout.

Similar Threads

  1. Replies: 9
    Last Post: 2007-01-10, 09:28 AM
  2. How can I tell if I am in Modelspace or Paperspace
    By bweir in forum VBA/COM Interop
    Replies: 2
    Last Post: 2006-11-16, 06:49 PM
  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
  •