Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: Problem with upgrading to new plotter

  1. #1
    Member
    Join Date
    2010-03
    Posts
    23

    Default Problem with upgrading to new plotter

    We have upgraded to a new plotter in our company, and have a problem regarding using the PUBLISH command.

    We already have page setups in all of our drawing files, called things such as "A2"
    I have set up a button (F6) using script that when you press it, it will import and overwrite the existing page setups, and this works fine.
    The problem is however, that it only updates the "named page setups", and not the layout itself, which is apparently using that named setup.
    Refer to the attached pictures, and you will see what Im saying (hopefully).
    I have also tried using DWG convert to replace the pagesetups, and it does the same thing.
    I have also tried re-naming the page setups, and it will still not update the current layouts settings.

    Basically, I believe the answer to our problem would be to somehow delete ALL of the page setups including the ones in current use, and then reload the new ones.
    OR, to reload the new layouts, and somehow "update" or "apply" it to the layouts in the drawing.

    We are using AutoCAD 2010 LT, so I am happy to try any scrpit stuff people might recommend, but unable to run any VBA or lisp.

    A script type solution would be best, as we would need to do this to hundreds of drawings.

    I hope this all makes sense, it's not the easiest thing to explain lol
    Attached Images Attached Images

  2. #2
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    6,836

    Default Re: Problem with upgrading to new plotter

    I understand exactly what you want. I'm just not sure how to handle it with the limitations of LT.
    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

  3. #3
    Member
    Join Date
    2010-03
    Posts
    23

    Default Re: Problem with upgrading to new plotter

    Quote Originally Posted by Opie View Post
    I understand exactly what you want. I'm just not sure how to handle it with the limitations of LT.
    what about if there was an easy way to run a lisp program accross the entire contents of our file server? looking for all dwg's?
    we do have 1 copy of full version AutoCAD, so we can run Lisp if need be....

  4. #4
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    6,836

    Default Re: Problem with upgrading to new plotter

    Last year, we changed servers. The plotter did not change. However, the name for each drawing contained the old server UNC path. The following code seems to work in changing the name.
    Code:
    (vla-put-configname (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object))) "\\\\NewServer\\Plotter Name")
    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

  5. #5
    Member
    Join Date
    2010-03
    Posts
    23

    Default Re: Problem with upgrading to new plotter

    Quote Originally Posted by Opie View Post
    Last year, we changed servers. The plotter did not change. However, the name for each drawing contained the old server UNC path. The following code seems to work in changing the name.
    Code:
    (vla-put-configname (vla-get-activelayout (vla-get-activedocument (vlax-get-acad-object))) "\\\\NewServer\\Plotter Name")
    so how would I edit the above routine to set the "vla-put-configname"(?) to my named page setup that is currently loaded in the drawing?

  6. #6
    Member
    Join Date
    2010-03
    Posts
    23

    Default Re: Problem with upgrading to new plotter

    I currently have got this far.....
    lisp deletes all current setups, and then loads new ones.......All I need to do now is make it "set" the current layout to the named layout such as "A1"
    Code:
    (vl-load-com)
      (vlax-for
               pc
                 (vla-get-plotconfigurations
                   (vla-get-ActiveDocument (vlax-get-acad-object)))
        (vla-delete pc)
        )
    (command "._-PSETUPIN" "U:/ACAD Support/pagesetups.dwg" "*")
    somewhere I read this code.....whick KINDA works
    Code:
    (foreach x (layoutlist)
    (command "._plot" "_n" x "A1" "" "" "_y" "_n"))
    the "for each layoutlist bit doenst seem to work at all.....but the command plot will set it current, however it doesnt "regen" the view.....so the title block is half off the paperspace paper view

  7. #7
    Administrator RobertB's Avatar
    Join Date
    2001-08
    Location
    Dallas TX USA
    Posts
    5,825

    Default Re: Problem with upgrading to new plotter

    R. Robert Bell
    Design Technology Manager
    S P A R L I N G
    Opinions expressed are mine alone and do not reflect the views of Sparling.

  8. #8
    Member
    Join Date
    2010-03
    Posts
    23

    Default Re: Problem with upgrading to new plotter

    Quote Originally Posted by RobertB View Post
    thanks, but yeah, I have tried that, and it will reload and replace all of the "named page setups, but it will not changed the page setup in current use

  9. #9
    Member
    Join Date
    2010-03
    Posts
    23

    Default Re: Problem with upgrading to new plotter

    Right, I have this code below now....it works pefectly fine in doing what I want it to do, except it will only do it to the Currently activated layout tab......how do I get the "foreach" section of the below code to work so that it will apply the settings to all layout tabs within the file?
    .....(foreach x (layoutlist).......how do I use this code?

    Code:
    (vl-load-com)
      (defun ActLay	()
        (vla-get-ActiveLayout
          (vla-get-activedocument
    	(vlax-get-acad-object)
          )
        )
      )
      (defun PutActivePlotDevice (PlotDeviceName)
        (vla-put-ConfigName
          (ActLay)
          PlotDeviceName
        )
      )
      (PutActivePlotDevice "Kyocera Plotter.pc3")
    Im so close to having it right I can taste it! lol

  10. #10
    Administrator Opie's Avatar
    Join Date
    2002-01
    Location
    jUSt Here (a lot)
    Posts
    6,836

    Default Re: Problem with upgrading to new plotter

    You might try this.
    Code:
    (vlax-for *layout (vla-get-layouts (vla-get-activedocument (vlax-get-acad-object)))
      (if (/= (vla-get-name *layout) "Model")
        (vla-put-ConfigName *layout PlotDeviceName)
      )
    )
    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

Page 1 of 2 12 LastLast

Similar Threads

  1. plotter A3 SIZE margin problem
    By Ashraf Kpm in forum AutoCAD General
    Replies: 0
    Last Post: 2011-11-24, 04:23 AM
  2. HP T770 plotter problem
    By msupenia in forum Hardware
    Replies: 3
    Last Post: 2011-03-30, 08:32 AM
  3. Oce Print/plotter Problem
    By jmedley in forum Hardware
    Replies: 10
    Last Post: 2008-01-10, 05:41 AM
  4. Big Problem Printing HP plotter 1050= Crashed
    By s_sasson in forum Revit Architecture - General
    Replies: 3
    Last Post: 2007-01-30, 06:18 PM
  5. Plotter printing problem
    By sisa in forum AutoCAD Plotting
    Replies: 1
    Last Post: 2004-07-13, 01:09 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
  •