Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iLogic to create copy

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
wjk221
374 Views, 3 Replies

iLogic to create copy

Hello all, I need help coding iLogic to make a copy of the open model under a diferent name is a pre determined location with the same extension.

Any help would be greatly appreciated, I have been searching for the answer but can't find exactly what I need

3 REPLIES 3
Message 2 of 4
jdkriek
in reply to: wjk221

Here you go 😉

 

Dim Path As String = "C:\Temp\"
Dim FileName As String = "yourfilename"
Dim ext() = Split(ThisDoc.FileName(True), ".")
ThisDoc.Document.SaveAs(Path & FileName & "." & ext(1), True)
Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


Message 3 of 4
wjk221
in reply to: jdkriek

Thank you sir it worked great!!!!

Message 4 of 4
jdkriek
in reply to: wjk221

You're welcome. Glad it worked for you.

Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report