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
58,632
Messaggi
499,983
Utenti registrati
104,425
Ultimo utente registrato
Robert25

Utenti online

Top