コマンドラインオプションによるPreFormの起動
コマンドラインオプションによるPreFormの起動
PreFormアプリケーションは、コマンドラインで様々なアクションを自動的に実行することができます。モデルの読み込み、材料の事前選択、造形品のセットアップ、プリンターへのジョブアップロードなどの機能があります。
コマンドラインオプションによるPreFormの起動
PreFormをアプリケーションから起動する場合、またはオペレーティングシステムのターミナルから起動する場合、コマンドラインオプションを渡すことができます。Windowsではアプリケーション名はPreForm.exe、MacOSでは実行ファイルはアプリケーション内のPreForm.app/Contents/MacOS/PreFormにあります。
コマンドプロンプトアプリケーションを使用してWindowsでファイルを自動インポートする例:
cd path/to/your/preform
PreForm.exe myfile.stl --ignoreRepair
コマンドライン引数
PreForm起動時にモデルを自動的に読み込む モデルまたは.FORMファイルのリストをコマンドライン入力として渡すと、PreFormの起動後に自動的に読み込まれます。
./PreForm model1.stl model2.stl
モデルインポート動作
コマンドライン入力で指定したモデルリストのデフォルトのモデルインポート動作を上書きします。
| 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". |
読み込んだモデルを自動的にプリンターにアップロード
| 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. |
造形設定の選択
PreFormでは、デフォルトで選択したプリンタまたは入力した.FORMファイルの材料が使用されます。以下のオプションを使用して、異なる材料を事前に指定することができます。ただし、指定する造形設定はPreFormで利用可能なものである必要があります。FormlabsローカルAPIの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 |
その他のオプション
| 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 |