Hello,
I have a script that I call from MATLAB. The script is called from the command prompt which opens Hypermesh and uploads a solver deck into the Hypermesh gui. The problem I face is that the .fem file does not upload into Hypermesh as long as MATLAB is running its own script.
Also, importing any other solver deck into Hypermesh does not work either unless MATLAB is paused or by starting a new instance of Hypermesh.
The code used to upload the fem file is here;
#threshold values
set solid_domain_threshold 0.694147
#osmooth constrols
set surfacecode 2
set laplacian_iteration 20
set laplacian_feature_angle 25
#'isosurf: surfacecode1 surfacemode2 densitythreshold3 detectbridge4 lowthreshold5 distancecoefficient6 optismoothboundary7 lapiteration8 lapfeatureangle9 lapsmoothboundary10 drawrecovery11'
puts 'Uploading Solid Domain '
*createstringarray 2 'isosurf: $surfacecode 3 $solid_domain_threshold 0 -1 0 0 $laplacian_iteration $laplacian_feature_angle 1 0' 'other_params: 1 0 0 0 10 0'
if { [ catch {*ossmooth_12 0 1 0 1 'C:////Users////////Large Tension Hinge Rebuilt 2.2 Stage 2 Initial_1.fem' 'C:////Users////Large Tension Hinge Rebuilt 2.2 Stage 2 Initial_1.sh' '' 1 0 1 2} ] } {
puts 'Error During Solid Domain Tetmeshing'
} else {
puts 'Solid TetMesh Succesful!'
}
What could be the source of the problem? I am running on Windows 10 home edition.
Thank you
A screen shot is provided to visualize the problem a little bit better.
<?xml version="1.0" encoding="UTF-8"?>