Skip to main content
Version: 2026R2

Fabric

class compolyx.Fabric(graph, obj, parent=None)

Class to represent fabric.

Attributes

NameDescription
Fabric.activeActive status of object
Fabric.area_priceArea price of fabric
Fabric.area_weightArea weight of fabric
Fabric.cut_off_materialCut-off material used in cut-off areas of this fabric
Fabric.cut_off_material_handlingType defining how cut-off material is used in cut-off areas of this fabric
Fabric.draping_material_modelDraping material model
Fabric.draping_ud_coefficientUD draping coefficient
Fabric.drop_off_materialDrop-off material used in drop-off areas of this fabric
Fabric.drop_off_material_handlingType defining how drop-off material is used in drop-off areas of this fabric
Fabric.enabledWhether this object is currently enabled or not
Fabric.graph_plotGraph Plot object used to configure 2D plots
Fabric.idID of object
Fabric.ignore_for_postprocessingFlag if this material is not postprocessed
Fabric.is_dict_itemSpecifies whether the object is an item of a dict
Fabric.is_list_itemSpecifies whether the object is an item of a list
Fabric.link_pathRoot path of the current node in the tree for links to this object
Fabric.materialMaterial of the fabric
Fabric.nameName of object
Fabric.parentParent object in tree
Fabric.root_pathRoot path of the current node in the tree
Fabric.statusStatus of the object
Fabric.status_changedBoolean flag which is set to true in C++ when up-to-date status of object changes
Fabric.thicknessThickness of fabric
Fabric.uidUID of object
Fabric.vertexThrows an error if the object has been removed from the graph

Methods

NameDescription
Fabric.capture_analysis_plot([path, size])Saves the 2D polar plot to a file
Fabric.clt_query([query])Returns the properties of the classical laminate theory
Fabric.create_plot([query])Generates 2D plots with the results of interest
Fabric.find_parent(type)Steps up the tree and returns the first parent with given type
Fabric.is_constant()Returns true if all engineering constants and strength limits of the assigned material are constant
Fabric.obj_exists()Checks if __obj still references the C++ object (i.e. has not been reset to None by self._delete) and exists in the graph
Fabric.serialize()Serialize to Python string
Fabric.serialize_name_and_id()Helper function to serialize name and ID
Fabric.update()
Fabric.update_plot()Updates the 2D plot
Fabric.visit(visitor)Walk through the tree and let the visitor perform an action on every descendant node