ilogic

Quoque69

Utente Junior
professione: progettista
software: Inventor 2019
regione: Lombardia
slave a tutti sto cercando di creare quale iLogic ( in realtà sta giocando) ma non riesco a capire come salvare un file stp in una determinata cartella
qualcuno mi può aiutare?
grazie in anticipo
 

Matteo Cappelli dis.CAD

Utente Standard
professione: disegnatore
software: Inventor / autocad
regione: Emilia romagna
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")
 

Statistiche forum

Discussioni
59,428
Messaggi
506,279
Utenti registrati
111,283
Ultimo utente registrato
DIMA

Utenti online

Top