iLogic. Move a drawing file

iLogic. Move a drawing file

smart-cad
Enthusiast Enthusiast
559 Views
3 Replies
Message 1 of 4

iLogic. Move a drawing file

smart-cad
Enthusiast
Enthusiast

Good afternoon everyone!
Maybe someone knows ...
How do I move a drawing file?

 

 


Dim Filename_and_Path_start As String
      'Dim Filename_and_Path_end As String
Dim Path_end As String

Filename_and_Path_start = ThisDoc.Path + "\DATA\Drawing_1.idw"
Filename_and_Path_end = ThisDoc.Path + "\Drawing_1.idw"
Path_end = ThisDoc.Path



                            InventorVb.Application.FileManager.MoveFile("Filename_and_Path_start", "Path_end")

0 Likes
Accepted solutions (1)
560 Views
3 Replies
Replies (3)
Message 2 of 4

WCrihfield
Mentor
Mentor

Similar to what I posted within your other similar post.  You can use the System.IO.File.Move()

Dim oOldNamePath As String = "C:\Temp\MyFolder\MyDrawing.idw"
Dim oNewNamePath As String = "C:\Temp\MyDrawing.idw"
System.IO.File.Move(oOldName, oNewName, False)

System.IO.File.Move() 

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) 👍.

If you want and have time, I would appreciate your Vote(s) for My IDEAS 💡or you can Explore My CONTRIBUTIONS

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 3 of 4

WCrihfield
Mentor
Mentor
Accepted solution

Here's another similar method, that can be used the same way from within iLogic (vb.net):

FileIO.FileSystem.MoveFile()

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

Message 4 of 4

smart-cad
Enthusiast
Enthusiast
My.Computer.FileSystem.MoveFile(Filedata, Filework, False) - works well !

Thank you so much )))
0 Likes