Following my old question, I would like to improve my macro to save my X_T in a subfolder of the room location?
We would have a part or assembly file in a folder and in this folder a subfolder called "FILES X_T" or our macro would save my exported file.
How do you make these changes?
Current program:
Sub Sauvegarde_X_T()
Dim swApp As Object Dim Part As Object Dim boolstatus As Boolean Dim longstatus As Long, longwarnings As Long Dim Locatie As String Dim Locatie_aangepast As String Dim OpenDoc As Object Dim Extensie_nieuw As String Dim Extensie_oud As String Dim retval As String Dim Naam As String Dim Naam_aangepast As String
Set swApp = CreateObject("SldWorks.Application") Set swModel = swApp.ActiveDoc Set OpenDoc = swApp.ActiveDoc()
I just tried, it's perfect except for the name of my folder that I named: "X_T FILES"
This gives:
Sub Sauvegarde_X_T()
Dim swApp As Object Dim Part As Object Dim boolstatus As Boolean Dim longstatus As Long, longwarnings As Long Dim Locatie As String Dim Locatie_aangepast As String Dim OpenDoc As Object Dim Extensie_nieuw As String Dim Extensie_oud As String Dim retval As String Dim Naam As String Dim Naam_aangepast As String
Set swApp = CreateObject("SldWorks.Application") Set swModel = swApp.ActiveDoc Set OpenDoc = swApp.ActiveDoc()
Come on, if I want that when the "X_T FILES" folder doesn't exist, that it can create it to insert the exported file in it, how should we program that?
I already work like this with my pdf and dxf for my plans and it suits me very well. Anyway it's like BatchConverter except by looking at the date and if it was created, there's no real way to see if it's ok.