infamia
Guest
Good evening,
Is there any soul that helps me in this macro?
which may also be useful to other users.
I tell you the problem:
daily I get many compressed files that I have to fuck, import on sw and then save.
I can automate these phases with a macro that launch from sw.
es: Launching the macro, opening user form(which I did) I choose the compressed file and running these steps(disappearance(7 zip or winrar) ,import and save) ?
at the limit I am satisfied to disappear the hand file and choose the path where the .xt or .stp file is located...etc
inside the folder is always there and only 1 files with those formats
so far I have recorded the macro but I can't figure out how to collage the box where I insert the path and make the file fish.
private sub cmd_start_click()
set swapp = application.sldworksboolstatus = swapp.loadfile2("txt_percorso1.value", "")set part = swapp.activedoc
' take snapshot
dim swsnapshot as snapshot
set swsnapshot = part.modelviewmanager.addsnapshot("home")
dim mymodelview as object
set mymodelview = part.activeview
mymodelview.framestate = swwindowstate_e.swwindowmaximized
' save as
longstatus = part.saveas3("txt_percorso1", 0, 0)
' close document
set swassembly = nothing
set part = nothing
swapp.closedoc "ce11_stampo mat. finestrini + parabrezza st1747-3d part drawing-20230127.sldasm"
end subThank you very much
Is there any soul that helps me in this macro?
which may also be useful to other users.
I tell you the problem:
daily I get many compressed files that I have to fuck, import on sw and then save.
I can automate these phases with a macro that launch from sw.
es: Launching the macro, opening user form(which I did) I choose the compressed file and running these steps(disappearance(7 zip or winrar) ,import and save) ?
at the limit I am satisfied to disappear the hand file and choose the path where the .xt or .stp file is located...etc
inside the folder is always there and only 1 files with those formats
so far I have recorded the macro but I can't figure out how to collage the box where I insert the path and make the file fish.
private sub cmd_start_click()
set swapp = application.sldworksboolstatus = swapp.loadfile2("txt_percorso1.value", "")set part = swapp.activedoc
' take snapshot
dim swsnapshot as snapshot
set swsnapshot = part.modelviewmanager.addsnapshot("home")
dim mymodelview as object
set mymodelview = part.activeview
mymodelview.framestate = swwindowstate_e.swwindowmaximized
' save as
longstatus = part.saveas3("txt_percorso1", 0, 0)
' close document
set swassembly = nothing
set part = nothing
swapp.closedoc "ce11_stampo mat. finestrini + parabrezza st1747-3d part drawing-20230127.sldasm"
end subThank you very much