Hi @j_span755F8. You will need to be a lot more specific with your requests before anyone can properly answer them.
As for the 'specific folder' request:
There are many different possible ways to set the 'path' to a specific folder. The question remains...how do you 'want' to do it? Is this specific folder you want to specify in a whole other directory, in a different storage area than the model file, or is it simply a sub folder to where the model file is? If it is simply a sub folder, then what is its name? Does this folder possibly need to be created first? The simplest way to specify it would be to use an extra variable, and just type it in as the value of that variable.
As for the different file name:
Again, very vague suggestions, with no specifics. Do you literally want the PDF's file name to start with the text "iLogic Drawing"? What about the drawing's current file name...is that not going to be included? Which iProperty are you talking about there? Which 'data' should be in the file's name...today's date, or the creation date of the drawing, or some other date? What format does the date need to be in? Remember, some of the special characters that may be found in a 'date' may not be valid to use in a file name in your file system.
Also, which code are you currently work with...the one attached to Message 4 above, or the one attached to Message 6 above, or another edited version?
Edit: Below is just one possible variation (out of a great many) to a section of the code (Line 20 - 23) in Message 6 above. This variation is replacing the following block of code:
'specify the full path and file name for the PDF file that is to be created.
'this is using the same path and file name of the IDW, but with ".pdf" file extension
Dim sPDF As String = System.IO.Path.ChangeExtension(oDDoc.FullFileName, ".pdf")
If sPDF = "" Then Return 'or notify user that they did not choose anything, then exit rule
...with this modified block of code:
'specify the full path and file name for the PDF file that is to be created.
Dim sPath As String = System.IO.Path.GetDirectoryName(oDDoc.FullDocumentName) & "\PDF"
If Not System.IO.Directory.Exists(sPath) Then System.IO.Directory.CreateDirectory(sPath)
Dim sPropVal As String = oDDoc.PropertySets.Item(3).Item(2).Value 'Part Number of drawing
Dim sDate As String = Today.ToShortDateString
Dim sFileName As String = "iLogic Drawing " & sPropVal & " " & sDate & ".pdf"
Dim sPDF As String = System.IO.Path.Combine(sPath, sFileName)
If sPDF = "" Then Return 'or notify user that they did not choose anything, then exit rule
You will notice that it now contains more variables. One for 'path', one for file name, one for the iProperty value, one for the 'date', and one for the final full path and file name combined. It first gets the current path of the drawing, then specifies a sub folder named "PDF". Then it makes sure that folder exists. Then it gets the value of this drawing's Part Number iProperty. It does not check if its value was 'empty' though. Then it gets today's date and uses one of man possible ways to convert the Date data type into String data type. Then it concatenates 4 pieces of data into one file name. Then it combines the path and file name. As I said before though, each line can be changed in too many different ways to mention here, and due to lack of specific information, I have no idea if I am specifying the correct folder, or the correct iProperty, or the correct date, or the correct date format, so this 'effort' may have been a waist of time. Code needs to be extremely specific for it to work properly, so those who write code to accomplish specific tasks need to know every possible tiny little detail about the task, in order to make it work.
Wesley Crihfield

(Not an Autodesk Employee)