lucadileta
Guest
Thank you so much jenuary, you're a myth! I'll be back tonight and see where I'm coming.as regards point 1:
- in the macro that I had laid down I avoided replacing the component, it is not necessary, in fact for each selected component I open it,
I perform offset and body deletion work and then I perform a "Save with Name" using the bee call
boolstatus = swpartmodel.extension.saveas(newfile, 0, 1, nothing, longstatus, longwarnings)
this save automatically renames the file in use, leaving the old file in the directory, not having saved it before the save by name,
the changes are eliminated, getting the same result you were trying to do.
the axieme takes the new references, just remember to save it after the macro has finished.
by point 2:
selcount = swselmgr.getselectedobjectcount()
if selcount
dim swselobj as object
for z = 1 to swselmgr.getselectedobjectcount()
set swselobj = swselmgr.getselectedobject5(z)
set swcomp = swselmgr.getselectedobjectscomponent2(z)
set swcompmodel = swcomp.getmodeldoc
.... now continue with the code, obtaining the path of the component, open it as a file of part, process the body, and save by name
....
♪
end if
I set your way because I know you want to complete it yourself, if you need it in the next steps ask yourself, never give up
Good day