LIBRO BLANCO
Formlabs Logo

Inicio de PreForm con opciones de línea de comandos

Inicio de PreForm con opciones de línea de comandos

La aplicación de PreForm se puede iniciar con argumentos adicionales en la línea de comandos para realizar varias acciones automáticamente después de abrirla. Algunas funciones son las de cargar modelos, preseleccionar materiales, configurar una impresión y cargarla en una impresora.

Cómo iniciar PreForm con opciones de línea de comandos

Al iniciar PreForm abriendo la aplicación o desde el terminal de tu sistema operativo, se pueden introducir opciones de línea de comandos. En Windows, el nombre de la aplicación es PreForm.exe, mientras que en MacOS el ejecutable está anidado dentro de la aplicación en PreForm.app/Contents/MacOS/PreForm.

Ejemplo de importación automática de un archivo en Windows mediante la aplicación Símbolo del sistema:

cd ruta/a/tu/preform

PreForm.exe miarchivo.stl --ignoreRepair

Argumentos de la línea de comandos

Cargar automáticamente los modelos al iniciar PreForm Se puede pasar una lista de modelos o archivos .FORM como entradas de la línea de comandos para que se carguen automáticamente después de iniciar PreForm.

./PreForm model1.stl model2.stl

Comportamiento de importación de modelos

Anula el comportamiento de importación de modelos por defecto para la lista de modelos especificada en la entrada de la línea de comandos.

Command line optionDescription
--silentRepairAutomatically repair the model’s meshes if needed without asking the user for input.
--ignoreRepairSkip 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".

Cargar automáticamente los modelos cargados en una impresora

Command line optionDescription
--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.

--uploadAutomatically 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.

--autoSetupAutomatically set up the imported models using PreForm's One Click Print automatic setup.

Selección de ajustes de impresión

Por defecto, PreForm utiliza el material de la impresora seleccionada o del archivo FORM introducido. Las siguientes opciones pueden utilizarse para preseleccionar un material diferente. La combinación de entradas de ajustes de impresión debe estar disponible en PreForm. Consulta el parámetro Lista de materiales de la API local de Formlabs para obtener la lista de ajustes e identificadores que admite.

Command line optionDescription
--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

Otras opciones

Command line optionDescription
--lang <lang>Set the UI Language -- en, de, es, fr, it, ja, zh, zh-Hans, zh-Hant
-v, --versionDisplays version information