See the top rated post in this thread. Click here

Page 4 of 5 FirstFirst 12345 LastLast
Results 31 to 40 of 47

Thread: Write a macro that opens a specific drawing/template

  1. #31
    Time Lord Steve_Bennett's Avatar
    Join Date
    2015-12
    Location
    far, far, far away...
    Posts
    4,730
    Login to Give a bone
    0

    Default Re: Write a macro that opens a specific drawing/template

    Quote Originally Posted by david_peterson
    Hi Dan,
    Dosen't that just start a new drawing from a template? I think what he wants to do is open the template to edit it. ie He's working on some drawings and thiinks of something that needs to be fixed in his template (becuase he's testing it) and hits the button. Or at least that's my understanding.
    Then what about a shortcut of the item on the desktop?
    Steve Bennett |BIM Manager
    Taylor Design | Adventures in BIM

  2. #32
    Time Lord Steve_Bennett's Avatar
    Join Date
    2015-12
    Location
    far, far, far away...
    Posts
    4,730
    Login to Give a bone
    0

    Default Re: Write a macro that opens a specific drawing/template

    Quote Originally Posted by Steve_Bennett
    Then what about a shortcut of the item on the desktop?
    nevermind. that just makes a new dwg
    Steve Bennett |BIM Manager
    Taylor Design | Adventures in BIM

  3. #33
    AUGI Addict Mr Cory's Avatar
    Join Date
    2007-01
    Location
    Under a Rock over there
    Posts
    1,006
    Login to Give a bone
    0

    Default Re: Write a macro that opens a specific drawing/template

    That only works for the dwg, it actions the same as qnew if you open a template in explorer

  4. #34
    Super Moderator david_peterson's Avatar
    Join Date
    2002-09
    Location
    Madison, WI
    Posts
    5,687
    Login to Give a bone
    0

    Default Re: Write a macro that opens a specific drawing/template

    Quote Originally Posted by Steve_Bennett
    Then what about a shortcut of the item on the desktop?
    Now there's an outside the box idea. Create an icon on your desktop set to open the template that you want to modify. Then you can simply pick on the little windows "show desktop" icon and you can open it directly. Only problem there is waiting for it to launch another session of ADT. I'm still thinking that there's a way around this using a basic button or a right click maybe that acts like the "open x-ref" command but you don't have to select what you want to open because you already know that.

  5. #35
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    9,103
    Login to Give a bone
    1

    Default Re: Write a macro that opens a specific drawing/template

    Will this post, "Opening new template in LISP" help?
    If you have a technical question, please find the appropriate forum and ask it there.
    You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
    jUSt

  6. #36
    Super Moderator david_peterson's Avatar
    Join Date
    2002-09
    Location
    Madison, WI
    Posts
    5,687
    Login to Give a bone
    0

    Default Re: Write a macro that opens a specific drawing/template

    Quote Originally Posted by Opie
    Will this post, "Opening new template in LISP" help?
    Thanks Opie, Looks like that one should work.

  7. #37
    Time Lord Steve_Bennett's Avatar
    Join Date
    2015-12
    Location
    far, far, far away...
    Posts
    4,730
    Login to Give a bone
    0

    Default Re: Write a macro that opens a specific drawing/template

    Quote Originally Posted by david_peterson
    Thanks Opie, Looks like that one should work.
    Yeah, that would work. Just tested it. You can only have 1 dwg open when running the command in that lisp that rkmcswain posted.
    Steve Bennett |BIM Manager
    Taylor Design | Adventures in BIM

  8. #38
    AUGI Addict Mr Cory's Avatar
    Join Date
    2007-01
    Location
    Under a Rock over there
    Posts
    1,006
    Login to Give a bone
    0

    Default Re: Write a macro that opens a specific drawing/template

    Sweet cheers guys!! Thanx for all your help!

  9. #39
    AUGI Addict kennet.sjoberg's Avatar
    Join Date
    2002-05
    Posts
    1,707
    Login to Give a bone
    0

    Default Re: Write a macro that opens a specific drawing/template

    Quote Originally Posted by Steve_Bennett
    Yeah, that would work. Just tested it. You can only have 1 dwg open when running the command in that lisp that rkmcswain posted.
    yes, but you should try his last post
    (vl-load-com) with
    (vla-Add (vla-get-Documents (vlax-get-acad-object)) "acad.dwt")

    : ) Happy Computing !

    kennet

  10. #40
    AUGI Addict Mr Cory's Avatar
    Join Date
    2007-01
    Location
    Under a Rock over there
    Posts
    1,006
    Login to Give a bone
    0

    Default Re: Write a macro that opens a specific drawing/template

    Grr is it just me or does it flick back to the drawing you had open?

Page 4 of 5 FirstFirst 12345 LastLast

Similar Threads

  1. 2014: Excel opening when a drawing opens
    By rstiles in forum AutoCAD Civil 3D - General
    Replies: 2
    Last Post: 2014-02-19, 01:12 PM
  2. Which variables are Drawing Specific and Which are Session Specific?
    By stusic in forum CAD Management - General
    Replies: 4
    Last Post: 2013-09-10, 01:28 PM
  3. Replies: 4
    Last Post: 2007-01-22, 11:04 AM
  4. Text Window Opens up on top of each Drawing
    By TheAllusionist in forum AutoCAD General
    Replies: 3
    Last Post: 2005-05-25, 11:57 PM
  5. Is site template IE-specific
    By John K. in forum Suggestions
    Replies: 3
    Last Post: 2003-07-15, 05:41 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
  •