See the top rated post in this thread. Click here

Page 3 of 5 FirstFirst 12345 LastLast
Results 21 to 30 of 47

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

  1. #21
    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

    Ok, I tried my code. It dosen't work. I'm not sure that PN Allows you to do this. The trick is to find a way around PN.

  2. #22
    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

    I tried it but it didnt seem to change anything, its not using the file path that is specified instead it is prompting and the last drawing opened is the default, if you follow?

  3. #23
    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

    Hold on there Mr. Cory, the Calvary is on it's way. I'm starting to think that a macro may not work. But the good news it's that's not the only way to get to what you want. I've asked our Resident ADT guru Mr. Steve Bennett to take a peak when he gets a chance. He may have some good suggestions. Again personally I think this is an issue specific to ADT/ABS and PN. Then again maybe not. I just figure that anything (or sequence) that you can type in with out the dialog box coming up can be made into a marco, but I couldn't get this one to work in plain cad either. I keep getting prompted for the last file that it opened. It won't open it, so I can't seem to get past the path portion.

  4. #24
    Certifiable AUGI Addict dzatto's Avatar
    Join Date
    2006-12
    Location
    Big "D"
    Posts
    3,711
    Login to Give a bone
    0

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

    If you only have one template, just go into options and change the path under template settings, default template for QNEW, to your template location. Then when you need it, just hit the QNEW icon.

  5. #25
    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

    Its more if i want to make changes to the template itself, and to my styles drawing

    Thats where im stuck,

  6. #26
    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 dzatto
    If you only have one template, just go into options and change the path under template settings, default template for QNEW, to your template location. Then when you need it, just hit the QNEW icon.
    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.

  7. #27
    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

    Spot on David, sorry i didnt explain it very well

  8. #28
    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 dzatto
    If you only have one template, just go into options and change the path under template settings, default template for QNEW, to your template location. Then when you need it, just hit the QNEW icon.
    What dzatto said...

    It seems to me that your are trying to get it to do what it already can do using qnew.

    Thanks for the guru reference, but honestly this is out of my relm (making macros that is...) - my understanding is that if a macro works in vanilla acad, then it should work in ADT as well. As far as getting macros to control stuff in PN, good luck and let me know if you find a way.

    Steve Bennett |BIM Manager
    Taylor Design | Adventures in BIM

  9. #29
    Certifiable AUGI Addict dzatto's Avatar
    Join Date
    2006-12
    Location
    Big "D"
    Posts
    3,711
    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.
    Oh..... But wouldn't you need to open the template to edit it? When I created my templates, I would just QNEW to open it, make my changes, then save as and pick .dwt from the drop down, pick the template from the list and save it.

  10. #30
    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

    Thats another way to do it

Page 3 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
  •