Starten von PreForm mit Befehlszeilenoptionen
Starten von PreForm mit Befehlszeilenoptionen
Die Anwendung PreForm kann mit zusätzlichen Befehlszeilenargumenten gestartet werden, um nach dem Öffnen automatisch verschiedene Aktionen durchzuführen. Zu den Funktionen gehören das Laden von Modellen, die Vorauswahl von Materialien, das Einrichten eines Drucks und der Upload des Drucks auf einen Drucker.
Wie man PreForm mit Befehlszeilenoptionen startet
Beim Starten von PreForm durch Öffnen der Anwendung oder über das Terminal Ihres Betriebssystems können Befehlszeilenoptionen übergeben werden. Unter Windows lautet der Name der Anwendung PreForm.exe, während unter MacOS die ausführbare Datei in der Anwendung unter PreForm.app/Contents/MacOS/PreForm verschachtelt ist.
Beispiel für den automatischen Import einer Datei unter Windows mit der Eingabeaufforderung:
cd path/to/your/preform
PreForm.exe myfile.stl --ignoreRepair
Befehlszeilenargumente
Modelle automatisch laden, wenn PreForm startet Eine Liste von Modellen oder .FORM-Dateien kann als Eingabe in der Befehlszeile übergeben werden, um sie nach dem Start von PreForm automatisch zu laden.
./PreForm model1.stl model2.stl
Modellimportverhalten
Das Standardverhalten für den Modellimport für die in der Befehlszeileneingabe angegebene Liste von Modellen überschreiben.
| Command line option | Description |
|---|---|
| --silentRepair | Automatically repair the model’s meshes if needed without asking the user for input. |
| --ignoreRepair | Skip repairing the model’s meshes without asking the user for input. |
| --modelUnits <unit> | Specify the unit system of the .stl or .obj file. Valid values are "mm" and "in". Default is "mm". |
Automatischer Upload der geladenen Modelle auf einen Drucker
| Command line option | Description |
|---|---|
| --printer <printer> | Select a printer as the upload target. Printer name can either be its local IP address for local network printing or its serial name for remote printing if used with the --useRemote option. |
| --upload | Automatically upload the loaded models to a printer when PreForm starts. |
| --jobName <jobName> | Job name to use when sending a job to a printer. |
| --username <username> | Username to use when logging in to your Dashboard account. |
| --password <password> | Password to use when logging in to your Dashboard account. |
| --useRemote | Upload the print using remote printing. Must be used with the username and password options. |
| --close | Upload the print using remote printing. Must be used with the username and password options. If used with the --upload option, automatically close the PreForm application after the upload completes. |
| --autoSetup | Automatically set up the imported models using PreForm's One Click Print automatic setup. |
Druckeinstellungen auswählen
Standardmäßig verwendet PreForm das Material des ausgewählten Druckers oder der eingegebenen .FORM-Datei. Die folgenden Optionen können zur Vorauswahl eines anderen Materials verwendet werden. Die Kombination der Eingaben für die Druckeinstellungen muss in PreForm verfügbar sein. Eine Liste der unterstützten Einstellungen und Kennungen finden Sie im Endpunkt „Formlabs Local API's List Materials“.
| Command line option | Description |
|---|---|
| --material <material> | Material code to use for the job. Example: FLGPGR04 |
| --thickness_um <thickness> | Layer Thickness to use for the job in microns. Example: 100 |
| --printSetting <printSetting> | Print setting to use for the job. Must be used with --material and --thickness_um options. Example: Beta |
Sonstige Optionen
| Command line option | Description |
|---|---|
| --lang <lang> | Set the UI Language -- en, de, es, fr, it, ja, zh, zh-Hans, zh-Hant |
| -v, --version | Displays version information |