• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

ion

  • Thread starter Thread starter Quoque69
  • Start date Start date

Quoque69

Guest
slave to all I'm trying to create which ilogic (actually playing) but I can't figure out how to save a stp file in a certain folder
Can anyone help me?
thanks in advance
 
ciao

io sto utilizzando questo comandino (trovato in rete e poi modificato)


' set reference to active document.
odoc = thisapplication.activedocument

' check the document type is an assembly or part
if (odoc.documenttype <> kassemblydocumentobject and _
odoc.documenttype <> kpartdocumentobject) then
msgbox("error:document type is not assembly/part")
exit sub
end if

' get document's full file name
'sfname = thisdoc.pathandfilename(false) & ".sat"
sfname = thisdoc.filename(false) & ".stp"'without extension

' do a 'save copy as' to sat format
cartella_ordine = "c:\__matteo__\___email___\stp\"

odoc.saveas(cartella_ordine & sfname, true)
messagebox.show("il file " & sfname & " .step è stato copiato in: " & cartella_ordine , "mc-cad")
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top