Skip to main content

ACP in-app scripting API 2026 R1

MaterialData

Last update: 16.07.2026

class compolyx.MaterialData(graph, parent=None)

MaterialData manages all composite material data

Attributes

Name Description
MaterialData.enabled Whether MaterialData is currently enabled or not.
MaterialData.fabrics Dictionary with all fabrics defined.
MaterialData.is_dict_item Indicates whether the object is an item in a dictionary.
MaterialData.is_list_item Indicates whether the object is an item of a list.
MaterialData.link_path Root path of the current node in the tree for links to this object.
MaterialData.material_apdl_path Optional path to file with APDL material definitions to be used in the CDB export.
MaterialData.materials Dictionary with all materials defined.
MaterialData.matml_path Path to MatML file as provided by Workbench EngineeringData.
MaterialData.name Currently a name is needed for every object in the db tree.
MaterialData.parent Parent object in the tree.
MaterialData.root_path Root path of the current node in the tree.
MaterialData.stackups Dictionary with all stack ups defined.
MaterialData.sub_laminates Dictionary with all sub laminates defined.
MaterialData.unit_system Unit system of material data, propagated from model.

Methods

Name Description
MaterialData.copy(source[, on_duplicate_name]) Copy a list of material data source.
MaterialData.copy_fabric(source[, ...]) Copy a fabric.
MaterialData.copy_material(source[, ...]) Copy a material.
MaterialData.copy_stackup(source[, ...]) Copy a stackup.
MaterialData.copy_sub_laminate(source[, ...]) Copy a sublaminate.
MaterialData.create_fabric(name[, id, ...]) Create a new fabric.
MaterialData.create_material(name[, id, ...]) Create a constant material.
MaterialData.create_stackup(name[, id, ...]) Create a new stackup.
MaterialData.create_sub_laminate(name[, id, ...]) Create a new sublaminate.
MaterialData.export_matml(path[, unit_system]) Export materials to ANSYS Engineering Data MatML format.
MaterialData.find_materials(**properties) Find materials with the given properties or property ranges.
MaterialData.find_parent(type) Steps up the tree and returns the first parent with given type.
MaterialData.import_matml(path[, ...]) Import material data from MatML file as provided by Workbench Engineering Data.
MaterialData.serialize() Serialize to Python string.
MaterialData.visit(visitor) Walk through the tree and let the visitor perform action on every descendant node.

Connect with Ansys