Results 1 to 1 of 1

Thread: Oh, so close...

  1. #1
    AUGI Addict bowlingbrad's Avatar
    Join Date
    2003-11
    Location
    Chicago
    Posts
    1,226

    Default Oh, so close...

    Trying to start a new drawing from a template using tool palette. The code below works beautifully but, the new file is not the active document. Please help me add the code that will set the newly created file to the active document. Thanks!

    Code:
    (vl-load-com);(setq x "X:/Imperial.dwt");(vla-Add (vla-get-Documents (vlax-get-acad-object)) x);(princ)
    GOT IT!! Here is the simple addition: vla-activate
    Code:
    ^C^C(vl-load-com);(setq x "X:/CAD Library/01-GP Content/GP-Imperial.dwt");(vla-activate (vla-Add (vla-get-Documents (vlax-get-acad-object)) x));(princ)
    Last edited by bowlingbrad; 2009-02-17 at 08:21 PM.
    Brad Novak
    Director of Information Technology
    Gp GOETTSCH PARTNERS
    Chicago, IL

Similar Threads

  1. I'm close, but not quite there yet...
    By dwahl in forum AutoLISP
    Replies: 7
    Last Post: 2011-10-13, 01:58 PM
  2. Welcome Screen Will not Close
    By CADdancer in forum ACA General
    Replies: 6
    Last Post: 2008-11-10, 07:03 PM
  3. Pan in vba or something close.
    By kap_78 in forum VBA/COM Interop
    Replies: 1
    Last Post: 2005-09-16, 05:03 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
  •