Model.ossmooth_savesurf#

Model.ossmooth_savesurf(mode, filepath, units, output)#

Exports the final design geometry from OptiStruct topology, topography and shape optimization results.

Parameters:
  • mode (int) –

    0 - Create .oss file only to be used in standalone version (do not execute OSSmooth)

    1 - Do not load geometry into HyperMesh.

    2 - Load geometry into HyperMesh.

  • filepath (hwString) – The full name and path of the OptiStruct .fem results file generated from the optimization.

  • units (int) –

    Units used for IGES and STEP output. Valid values are:

    1 - inch

    2 - mm

    4 - foot

    6 - meter

    10 - cm

  • output (int) –

    1 - Nastran

    2 - IGES

    3 - STL

    4 - H3D

    5 - STEP

    6 - PARASOLID

    7 - IGES (advanced)

Example#

Execute OSSmooth to save surfaces to STEP file “ C:/test / os1.step “ , use mm as units#
import hm
import hm.entities as ent

model = hm.Model()

model.ossmooth_savesurf(mode=2, filepath="C:/test/os1.fem", units=2, output=5)