Results 1 to 6 of 6

Thread: Publish to PDF w/o the Layout name appended?

  1. #1
    I could stop if I wanted to Mamma Jamma's Avatar
    Join Date
    2000-11
    Location
    Massachusetts
    Posts
    343
    Login to Give a bone
    0

    Default Publish to PDF w/o the Layout name appended?

    Using AutoCAD 2009 or 2010, is there any way to Publish without the Layout name (or -Model, for that matter) being added to the PDF file name?

  2. #2
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,803
    Login to Give a bone
    0

    Default Re: Publish to PDF w/o the Layout name appended?

    It's a function of the driver used. Which one are you using?
    R.K. McSwain | CAD Panacea |

  3. #3
    I could stop if I wanted to Mamma Jamma's Avatar
    Join Date
    2000-11
    Location
    Massachusetts
    Posts
    343
    Login to Give a bone
    0

    Default Re: Publish to PDF w/o the Layout name appended?

    I use whatever driver "DWG to PDF" is.
    As long as there's been the Publish command, regardless of AutoCAD or Adobe version, it's always done it this way. "Filename-Layoutname.PDF", "Filename-Model.PDF".

  4. #4
    Administrator rkmcswain's Avatar
    Join Date
    2004-09
    Location
    Earth
    Posts
    9,803
    Login to Give a bone
    0

    Default Re: Publish to PDF w/o the Layout name appended?

    That is the driver that comes with AutoCAD.

    It has to include the layout name, otherwise each subsequent plot would overwrite the last one since only the drawing name would be used.

    If you use SSM and publish from there, then the PDF files are created using the names assigned in SSM.
    R.K. McSwain | CAD Panacea |

  5. #5
    Member
    Join Date
    2001-01
    Posts
    16
    Login to Give a bone
    0

    Default Re: Publish to PDF w/o the Layout name appended?

    I use the DOS rename command to get rid of the -Layout1 in the file name, however because of the difference in the length you will have to use a ? for each unique character versus an *.

    rename C????-Layout1.pdf C????.pdf

    will rename all the files in the directory

    you might want to create a test or practice directory when you try it.

    if you file names are not similar, use DOS dir > filename.txt to create a file that you can bring into excel and use concatonate to create a bat command.

  6. #6
    Member girishpongalil's Avatar
    Join Date
    2005-08
    Location
    Dubai, UAE
    Posts
    45
    Login to Give a bone
    0

    Default Re: Publish to PDF w/o the Layout name appended?

    1. Put this below coding in a notepad file and save the file as " cad.vbs "
    2. Place all your PDF files which includes "Layout1" in filename to the same folder
    3. Rename the folder path to match this location on 2nd line of script.
    4. save the file and just double click the bat file to execute.
    5. You can see all your "Layout1" name is vanished from the file name

    -------------------------------------------------------------------

    Set objFso = CreateObject("Scripting.FileSystemObject")
    Set Folder = objFSO.GetFolder("C:\Users\Girish\Desktop\CAD")

    For Each File In Folder.Files
    sNewFile = File.Name
    sNewFile = Replace(sNewFile,"Layout1" , "")
    if (sNewFile<>File.Name) then
    File.Move(File.ParentFolder+"\"+sNewFile)
    end if

    Next

    -------------------------------------------------------------------

Similar Threads

  1. 2012: Publish only Layout Tab
    By Michael Anderson in forum AutoCAD Customization
    Replies: 2
    Last Post: 2013-01-24, 08:06 PM
  2. 2009: Publish Layout tabs
    By nguyenvanhiep03051984826546 in forum AutoCAD General
    Replies: 3
    Last Post: 2012-09-20, 03:33 PM
  3. Replies: 12
    Last Post: 2010-01-08, 07:49 PM
  4. Plot All Layout Tabs Without Using Publish
    By autocad.wishlist1734 in forum AutoCAD Wish List
    Replies: 1
    Last Post: 2009-02-01, 08:57 PM
  5. Publish layout tabs and layout tab names to PDF
    By dfuehrer in forum AutoCAD Plotting
    Replies: 9
    Last Post: 2005-11-09, 02:49 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
  •