hm_collisionwriteresultsfile

Writes the current collision results to a file.

Syntax

hm_collisionwriteresultsfile filename ?include_ignored?

Type

HyperMesh Tcl Query

Description

Writes the current collision results to a file. This must be preceded by a call to relevant hm_collision* commands to generate the collision data. In addition, the pair_results flag to hm_collisioncheck must be set to 1.

Inputs

filename
The full name and path of the file to write the results to.
include_ignored (optional)
Specifies if results ignored when the allowable_depth value is specified via hm_collisioninit should be reported or not:
0 - Do not include ignored results (default).
1 - Include ignored results.
Add a value of 10 to each of these to append to an existing file. By default, the file is overwritten.

Example

To find intersecting surfaces from IDs 1-10 and write the results to the file C:/collision.txt:

*createmark surfs 1 1-10
hm_collisioninit
hm_collisionentitycreate surfs 1 0 1 0 0 0 0 0 0
hm_collisioncheck 0 0 1 0 0 0 0 90.0 0 0 0.0 1
hm_collisionwriteresultsfile C:/collision.txt
hm_collisionend

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}

Version History

13.0