Converter Command Line Options
HOOPS Converter is a stand-alone application named converter, which is located in the bin directory of the HOOPS Communicator package. The application accepts the following command-line options:
Option |
Description |
---|---|
|
Deprecated - use export_exchange_ids. |
|
If set, the font provided to –substitution_font will be used for all PMI text. If True but substitution_font is not set, the first font available on the system will be used. Default: False. |
|
An RGB triplet which defines the window background color for the image and 3D PDF export. Example: (‘1.0,0.0,0.0’). Default: Black |
|
Name of the configuration to load. Or if ‘load_all_configurations’ is used, tells the one that will be active |
|
A bit field value which allows you to set currently unpublished options. Please note, any options here are not guaranteed to be supported from release to release. Please do not use this option unless specifically advised by the Tech Soft 3D support group. |
|
Decodes an obfuscated license key |
|
Controls what to import from drawing files. 0=only 3D, 1=only drawings, 2=Both 3D and drawings. Default: 1. |
|
If set, then exchange ids will be computed and exported. Default: False. |
|
If set, forces capping meshes to be created even if source data contains non-manifold geometry. |
|
If set, then low, medium and high LOD (Level Of Detail) per brep body. Default: False |
|
Print help message |
|
If set, then opening elements in the CAD File will be imported. Default: false |
|
If set, then relationships set in an IFC CAD file will be imported. Default: true |
|
If set, then hidden objects in the CAD File will be imported. Default: False |
|
If set, then PMI will be imported. Default: True |
|
Name of input file to convert. |
|
The name of the HTML file that is used as a template for the exported self contained HTML document. This template file must contain a specific string to receive the model data. Please refer to the Monolithic HTML Export page for additional details. |
|
The name of the pdf file that is used as a template for the exported PDF. In order to export the 3d model to the PDF this file needs to contain a Button Field labeled My3DWindow1 which will be replaced with the 3D Model. |
|
Directories (comma separated) to look for textures. |
|
The name of a file which contains a series of command line options that should be executed in succession. If you are using this approach then the only other option you provide is a license key. A sample file called sample_batch.xml is included in the authoring->converter->example directory. |
|
Name of shattered XML File describing an assembly hierarchy indexing individual part-level SC models. |
|
0=Low, 1=Medium, 2=High. Default: High |
|
Your license key (required if ‘license_file’ not specified). Note: HOOPS Converter will not function without a license key. |
|
Path to a text file containing your license key (required if ‘license’ not specified). The file should contain only your license key (no quotation marks should be used). Note: HOOPS Converter will not function without a license key. |
|
If set, will load all the available configurations |
|
List of key value pairs for modifying text fields in the supplied PDF template separated by $$ (e.g. Filename$$Part.CatPart$$FileType$$CatiaModel) |
|
Deprecated - This feature will be removed in a future release. Number of processes used to load native CAD assemblies (will work for CatiaV5, NX, ProE, SolidWorks and JT file formats). Default: 1 |
|
Name of output 3MF file. |
|
Name of output configuration file. If you provide a configuration filename, Converter will create a file which lists all the product configurations in the input file. |
|
Name of output dependencies file. |
|
Path to output directory. |
|
Name of output HSF file. |
|
Name of output HTML file. |
|
Name of output JT file. |
|
If provided, name of the log file where HOOPS Converter will write error and warning messages. In addition, all messages will be sent to stdout and stderr. Message format: [02/20/2013 14-04-38-205 D:097890 PID:1252 M:415MB R:0]INFO: Parsing PRC done. date and time, D: time passed since beginning of last block in milliseconds (blocks are indented), PID: process ID, M: current memory consumption (in MB), R: current sequence (only applies to batch conversion), message type (INFO, WARNING, or ERROR), optional error code - used for internal diagnostic purposes, message text |
|
Name of output measurement data file. |
|
Name of the output model info file. If you provide an model info filename, Converter will create a file which provides general information about the conversion process of the input file. A useful debugging tool. |
|
Name of output PDF file. |
|
Name of output PNG file. |
|
Resolution of PNG image (default resolution is 640x480). |
|
Name of output PRC file. |
|
Full path of SC Model to generate. Warning: This option will recursively delete all existing files in the target directory. |
|
Full path of SC Model generated from shattered XML Input File. |
|
Full path of SCS file to generate. |
|
Name of output STEP file. |
|
Name of output STL file. |
|
Name of Assembly tree xml file associated with the imported model. |
|
Name of output XML BOM file. |
|
Name of output XT file. |
|
Explicitly sets the camera to be used for image export. The values are set in a comma-separated list as follows: positionX,positionY,positionZ, targetX,targetY,targetZ, upX,upY,upZ, cameraFieldX,cameraFieldY,projection. All values except ‘projection’ are floats. Only comma characters should separate the values passed in (no spaces). The ‘projection’ field can have a value of ‘orthographic’ or ‘perspective’. |
|
Sets the camera for image export to be a preset camera view. Supported options consist of Iso or a combination of the following: Front, Back, Top, Bottom, Right, and Left. Names are case insensitive. Examples: TopBackRight, Bottom, LeftTop. Converter now supports generating images based on the HC 2015 camera presets. Supported values are: iso2015, none2015, xy, yx, xz, zx, yz, zy |
|
Controls whether or not the exported PNG contains PMI. Default: True |
|
Fits the camera for image export tightly around the scene’s geometry. |
|
Fits the camera for image export tightly around the scene’s geometry. |
|
0 = HC 2015 lighting, 1 = HC 2016 and newer. Default: 1. |
|
Sets the rendering mode used when exporting a PNG thumbnail. Supported options consist of ‘ShadedWithLines’, ‘Shaded’, or ‘HiddenLine’. Default: ShadedWithLines |
|
Render PNG images with a transparent background. Default: false |
|
0 = Off, 1 = 0.001mm, 2 = 0.01mm, 3 = 0.1mm. Default: Off |
|
List of directories separated by ‘ ‘ that contain additional fonts. Example:’C:fonts C:otherfonts’ |
|
This will remove the BREP from the PRC and PDF export. This may be important to protect intellectual property. Default: False. |
|
If set, then a lossless algorithm is applied to reduce the size of the 3D stream inside the PDF/PRC document. Default: False. |
|
Specifies a directory to put shattered parts models into. If set, then an individual part level SC model will be created per part. |
|
Specifies a directory to put shattered parts models into. If set, then an individual part level SCS files will be created per part. |
|
If set, then the XML file needed to build master assembly file from shattered data, will be created. |
|
If set, then the attributes of the model will be imported. Default: True. |
|
If set, then the geometry of the model will be imported alongside the tessellation. Default: True. Note: If –sc_export_measurement is set to True, then –read_geometry will be forced to True. |
|
If set, then wireframe geometry will be imported. Default: True. |
|
If set, physical properties from the revit file will be read. Reading the physical properties might negatively impact performance. 0 = Not computed, 1 = Computed during reading process, stored as attributes. Default: 0 |
|
Deprecated - Use sc_create_scz and sc_compress_scz. Setting sc_compress_models to True is the equivalent of setting both sc_create_scz and sc_compress_scz to True. |
|
If set, then generated .scz files will be compressed. Default: True |
|
If True, then the model will be editable. Currently, only SCZ output is affected. Default: False for uncompressed SCZ output, True otherwise |
|
Sets compression strategy that will be used to compress large meshes and images. 0=Fast, 1=Default, 2=Strong. Default: 1 |
|
Define nodes where bounding boxes are computed. Values: All/Leaves/None Default: None. |
|
If set, then triangle edges matching certain criteria will be added to the model as lines. Note: that setting this forces sc_discard_lines to True. Default: False |
|
The minimum angle in degrees between two adjacent triangle normals that will trigger a line to be added for the connecting edge. [0,180]. 0 will add every line, 180 will add no lines. Default: 50.0 |
|
The maximum angle in degrees between two adjacent lines that will cause the lines to join into a single polyline. [0,180]. 0 will connect no lines, 180 will connect every adjacent line. Default: 40.0 |
|
If set, a line will be added for each triangle edge that is not shared by any other adjacent triangle. Default: True |
|
If set, and sc_compute_lines is enabled, each face of the mesh may be split into new faces that fit within the added lines. Default: True |
|
If set, then generated SC models will be .scz files. Default: False |
|
Set a default color for PMIs. Only if sc_force_black_lines is false. Example:’1.0,1.0,1.0’ |
|
If set, all existing lines will be removed from the model. Default: False |
|
If True, vertex normals will not be included in SC output. This can greatly reduce memory usage. Default: True for STL input, False otherwise |
|
If set, then the assembly tree will be generated. Default: True |
|
If set, then user attributes will be part of the assembly tree. Default: False |
|
If set, the originalFileName will contain the full path. Default: False |
|
If set, then material information will be part of the assembly tree. Default: False |
|
If set, then matrix information will be part of the assembly tree. Default: True |
|
If set, then measurement data will be computed and exported. Only applies if the source data includes a B-rep definition, or if compute-lines is enabled. Default: True. Note: If –sc_export_measurement is set to True, then –read_geometry will be forced to True. |
|
If set, then merge the name of an attribute with the name of its value. Default: True. |
|
If set, then physical properties will be computed and exported. Only applies if the source data includes a B-rep definition. Default: True. |
|
If set, then PMI will get exported. Default: True |
|
If set, then views will get exported. Default: True |
|
If True, then all lines in the model will be forced to black. Default: True |
|
If set, then SC actions will do logging. Default: False |
|
Specifies a directory containing shattered parts. If not provided the parent directory of –output_sc_master will be assumed. |
|
A path for a SC workspace |
|
List of directories separated by ‘ ‘ that contain external files. Example:’C:external C:otherexternals’ |
|
0=StepAP203, 1=StepAP214, 2=StepAP242. Default: StepAP242 |
|
If set, then then an ASCII version of the STL will be generated. Default: False |
|
Name of the font to use when a CAD file refers to a font that cannot be found. If set, and always_substitute_font is False, the set font only applies to text that does not have its PRC-specified font available on the system. Default: null |
|
Input: 0=Extra Low, 1=Low, 2=Medium, 3=High, 4=Extra High. Default: Medium. Note: This option is only applicable to formats that contain BRep and has no effect on files containing only tessellation (e.g. STL, FBX, 3MF, PRC or X_T that only contain tessellation, etc). |
|
Provides the path to the XML settings file |
Error Codes
Error code |
Value |
Description |
---|---|---|
|
0 |
The conversion was successful. |
|
1 << 0 (1) |
The conversion failed with a generic failure. |
|
1 << 1 (2) |
Failure to load model. |
|
1 << 2 (4) |
Provided license is invalid. |
|
1 << 3 (8) |
Failed to initialize required components, probably HOOPS Exchange or HOOPS Vizualize. |
|
1 << 4 (16) |
No input file was provided. |
|
1 << 5 (32) |
Failed to output SC master model. |
|
1 << 6 (64) |
Failed to output PNG. |
|
1 << 7 (128) |
Failed to output HSF. |
|
1 << 8 (256) |
Failed to output PRC. |
|
1 << 9 (512) |
Failed to output STEP. |
|
1 << 10 (1024) |
Failed to output STL. |
|
1 << 11 (2048) |
Failed to output XT. |
|
1 << 12 (4096) |
Failed to output 3MF. |
|
1 << 13 (8192) |
Failed to output JT. |
|
1 << 14 (16384) |
Failed to output PDF. |
|
1 << 15 (32768) |
Failed to output SC. |
|
1 << 16 (65536) |
Failed to output XML. |
|
1 << 17 (131072) |
Failed to output HTML. |
|
1 << 18 (262144) |
Failed to output dependencies. |
|
1 << 19 (524288) |
Failed to output XML BOM. |
|
1 << 20 (1048576) |
Failed to output config file. |
|
1 << 21 (2097152) |
Failed to output shattered model. |
In case of a failed conversion, additional information regarding the nature of the error can be obtained from the log file.