How Do I Change the Name a File is Saved as When Plotting DWF??

Discussion in 'AutoCAD' started by arsnik91, Sep 11, 2003.

  1. arsnik91

    arsnik91 Guest

    I have a routine that plots a slug of drawings out to DWF. The routine activates certain layers too but doesn't save changes. The part I have not figured out yet is how to change the name of the DWF file name. It defaults to "Docname" plus "Model" when it plots but I want to change the name it saves as. Can anyone give me a tip on this?
     
    arsnik91, Sep 11, 2003
    #1
  2. arsnik91

    KingCAD Guest

    How about ThisDrawing.Plot.PlotToFile(Place new file name here, place plot confihg here). I use this line after defining a variable to be the new file name i.e. - StrFileName = Left(ThisDrawing.Name, Len(ThisDrawing.Name) - 4) and then defining another variable to be the plot config i.e. - StrPlotConfig = "DWFeView(optimize for viewing).pc3" then it's as simple as ThisDrawing.Plot.PlotToFile(StrFileName, StrPlotConfig)

    Hope this is of some help.

    Dave. K
     
    KingCAD, Sep 11, 2003
    #2
  3. arsnik91

    arsnik91 Guest

    Dave,

    Your code worked wonderfully! I appreciate your help. Thank you very much.

    Dean
     
    arsnik91, Sep 12, 2003
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.