<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Acroplot to PDF (specified folder) button in VBA Forum</title>
    <link>https://forums.autodesk.com/t5/vba-forum/acroplot-to-pdf-specified-folder-button/m-p/2199382#M20680</link>
    <description>I like this idea - saves me from having to make another PDF with Acroplot.&lt;BR /&gt;
&lt;BR /&gt;
Where does that VB code you listed get placed? In an Acad button? I only have experience with Microsloth Access VBA...thank you.</description>
    <pubDate>Sun, 09 Mar 2008 17:11:42 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2008-03-09T17:11:42Z</dc:date>
    <item>
      <title>Acroplot to PDF (specified folder) button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acroplot-to-pdf-specified-folder-button/m-p/2199380#M20678</link>
      <description>We use Acroplot. Here's the process I need to improve:&lt;BR /&gt;
&lt;BR /&gt;
User completes a drawing and it gets approved, we then need to create a PDF using Acroplot and have that PDF go to a specified folder on one of our servers.&lt;BR /&gt;
&lt;BR /&gt;
But any other time, we simply create PDFs for checking (along the approval process) and it goes in the same folder as the .dwg file. I really need this 'toggle' flexibility (between destination folders).&lt;BR /&gt;
&lt;BR /&gt;
Basically I'm thinking a "Release" button in AutoCAD that would create that PDF and place it in the correct folder - thus eliminating any human error.&lt;BR /&gt;
&lt;BR /&gt;
Has anyone ever done this? I'm pretty good with Microsoft VBA and scripting in AutoCAD over the years, just not sure where to get started.&lt;BR /&gt;
&lt;BR /&gt;
I did contact CadZation and they showed me the samples folder that came with Acroplot. I'm just not sure where to place the VB code they show in their example. I've never used VB in Acad. How? Any thoughts on an even better solution to my process? Thank you.&lt;BR /&gt;
&lt;BR /&gt;
-Robert</description>
      <pubDate>Fri, 07 Mar 2008 11:31:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acroplot-to-pdf-specified-folder-button/m-p/2199380#M20678</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-07T11:31:42Z</dc:date>
    </item>
    <item>
      <title>Re: Acroplot to PDF (specified folder) button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acroplot-to-pdf-specified-folder-button/m-p/2199381#M20679</link>
      <description>maybe you could post their code?&lt;BR /&gt;
&lt;BR /&gt;
you might be able to use the FileSystemObject to move the file after its created.&lt;BR /&gt;
&lt;BR /&gt;
Dim oFso As Object&lt;BR /&gt;
Set oFso = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;
... specify source name and destination name&lt;BR /&gt;
oFso.MoveFile sSourceFile, sDestinationFile</description>
      <pubDate>Sun, 09 Mar 2008 16:54:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acroplot-to-pdf-specified-folder-button/m-p/2199381#M20679</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-09T16:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Acroplot to PDF (specified folder) button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acroplot-to-pdf-specified-folder-button/m-p/2199382#M20680</link>
      <description>I like this idea - saves me from having to make another PDF with Acroplot.&lt;BR /&gt;
&lt;BR /&gt;
Where does that VB code you listed get placed? In an Acad button? I only have experience with Microsloth Access VBA...thank you.</description>
      <pubDate>Sun, 09 Mar 2008 17:11:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acroplot-to-pdf-specified-folder-button/m-p/2199382#M20680</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-09T17:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Acroplot to PDF (specified folder) button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acroplot-to-pdf-specified-folder-button/m-p/2199383#M20681</link>
      <description>welll...&lt;BR /&gt;
&lt;BR /&gt;
in autocad type 'vbaide'&lt;BR /&gt;
insert a module&lt;BR /&gt;
&lt;BR /&gt;
insert somethin like this code&lt;BR /&gt;
&lt;BR /&gt;
Sub movePDF&lt;BR /&gt;
Dim oFso As Object&lt;BR /&gt;
Set oFso = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;
Dim existFullName As String&lt;BR /&gt;
Dim newFullName As String&lt;BR /&gt;
Dim existShortName As String&lt;BR /&gt;
existShortName = Replace(ThisDrawing.name, ".dwg", ".PDF")&lt;BR /&gt;
existFullName = Replace(ThisDrawing.FullName, ".dwg", ".PDF") ' assumes pdf in dwg folder&lt;BR /&gt;
newFullName = "G:\foldername\" &amp;amp; existShortName&lt;BR /&gt;
oFso.MoveFile existFullName, newFullName&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
i am back in 2004, don't know if things have changed much but i have vba commands loaded in a lisp file that is automatically loaded with each drawing.  Could also be assigned to a button.&lt;BR /&gt;
&lt;BR /&gt;
e.g. &lt;BR /&gt;
(defun c:MOVEPDF() (COMMAND "-VBARUN" "MODULE1.MOVEPDF")(PRINC))&lt;BR /&gt;
&lt;BR /&gt;
maybe someone else could answer if you need to set a reference for the filesystemobject  e.g. Tools, Reference</description>
      <pubDate>Sun, 09 Mar 2008 17:57:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acroplot-to-pdf-specified-folder-button/m-p/2199383#M20681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-09T17:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Acroplot to PDF (specified folder) button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acroplot-to-pdf-specified-folder-button/m-p/2199384#M20682</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
Standard VBA can also do this:&lt;BR /&gt;
&lt;BR /&gt;
Sub movePDF&lt;BR /&gt;
Dim existFullName As String&lt;BR /&gt;
Dim newFullName As String&lt;BR /&gt;
Dim existShortName As String&lt;BR /&gt;
    existShortName = Replace(ThisDrawing.name, ".dwg", ".PDF")&lt;BR /&gt;
    existFullName = Replace(ThisDrawing.FullName, ".dwg", ".PDF") ' assumes &lt;BR /&gt;
pdf in dwg folder&lt;BR /&gt;
    newFullName = "G:\foldername\" &amp;amp; existShortName&lt;BR /&gt;
    FileCopy  existFullName, newFullName&lt;BR /&gt;
    Kill existFullName ' Only use if you don't want ot keep the local copy&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
An alternative lisp function to run it is:&lt;BR /&gt;
&lt;BR /&gt;
(defun c:MOVEPDF() (VL-LOAD-COM) (VL-VBARUN" "MODULE1.MOVEPDF")(PRINC))&lt;BR /&gt;
&lt;BR /&gt;
-- &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Regards&lt;BR /&gt;
&lt;BR /&gt;
Laurie Comerford&lt;BR /&gt;
&lt;BR /&gt;
&lt;CADGER&gt; wrote in message news:5870706@discussion.autodesk.com...&lt;BR /&gt;
welll...&lt;BR /&gt;
&lt;BR /&gt;
in autocad type 'vbaide'&lt;BR /&gt;
insert a module&lt;BR /&gt;
&lt;BR /&gt;
insert somethin like this code&lt;BR /&gt;
&lt;BR /&gt;
Sub movePDF&lt;BR /&gt;
Dim oFso As Object&lt;BR /&gt;
Set oFso = CreateObject("Scripting.FileSystemObject")&lt;BR /&gt;
Dim existFullName As String&lt;BR /&gt;
Dim newFullName As String&lt;BR /&gt;
Dim existShortName As String&lt;BR /&gt;
existShortName = Replace(ThisDrawing.name, ".dwg", ".PDF")&lt;BR /&gt;
existFullName = Replace(ThisDrawing.FullName, ".dwg", ".PDF") ' assumes pdf &lt;BR /&gt;
in dwg folder&lt;BR /&gt;
newFullName = "G:\foldername\" &amp;amp; existShortName&lt;BR /&gt;
oFso.MoveFile existFullName, newFullName&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
i am back in 2004, don't know if things have changed much but i have vba &lt;BR /&gt;
commands loaded in a lisp file that is automatically loaded with each &lt;BR /&gt;
drawing.  Could also be assigned to a button.&lt;BR /&gt;
&lt;BR /&gt;
e.g.&lt;BR /&gt;
(defun c:MOVEPDF() (COMMAND "-VBARUN" "MODULE1.MOVEPDF")(PRINC))&lt;BR /&gt;
&lt;BR /&gt;
maybe someone else could answer if you need to set a reference for the &lt;BR /&gt;
filesystemobject  e.g. Tools, Reference&lt;/CADGER&gt;</description>
      <pubDate>Sun, 09 Mar 2008 20:28:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acroplot-to-pdf-specified-folder-button/m-p/2199384#M20682</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-09T20:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Acroplot to PDF (specified folder) button</title>
      <link>https://forums.autodesk.com/t5/vba-forum/acroplot-to-pdf-specified-folder-button/m-p/2199385#M20683</link>
      <description>thanks laurie, i did not know that...</description>
      <pubDate>Mon, 10 Mar 2008 00:20:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/vba-forum/acroplot-to-pdf-specified-folder-button/m-p/2199385#M20683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2008-03-10T00:20:30Z</dc:date>
    </item>
  </channel>
</rss>

