Model.writepart#

Model.writepart(file_path, collection)#

Exports part information.

Parameters:
  • file_path (hwString) – The directory to write to.

  • collection (Collection) – The collection containing the part entities to export.

Example#

Export all part information to C:/temp#
import hm
import hm.entities as ent

model = hm.Model()

# Creating a collection that contains all the parts
part_collection = hm.Collection(model, ent.Part)

model.writepart(file_path="C:/temp", collection=part_collection)