Skip to main content
Version: 2026R2

LayupPlotDict

class compolyx.plot_data.LayupPlotDict(name, label=None, obj=None, list=[], item_type=<class 'object'>, parent=None, key_attr='name')

Container for Layup Plots

Attributes

NameDescription
LayupPlotDict.enabledWhether this object is currently enabled or not
LayupPlotDict.is_dict_itemSpecifies whether the object is an item of a dict
LayupPlotDict.is_list_itemSpecifies whether the object is an item of a list
LayupPlotDict.item_typeType of items stored in this UIDict
LayupPlotDict.key_attrName of attribute of item objects which is mapped to the key of the UIDict
LayupPlotDict.label
LayupPlotDict.link_pathRoot path of the current node in the tree for links to this object
LayupPlotDict.nameName of object
LayupPlotDict.parentParent object in tree
LayupPlotDict.root_pathRoot path of the current node in the tree

Methods

NameDescription
LayupPlotDict.append(value)Append a new item to the UIDict
LayupPlotDict.clear()
LayupPlotDict.copy_plot(source)Copy a plot object
LayupPlotDict.create_angle_plot([name, id, ...])Create a Angle Plot object
LayupPlotDict.create_draping_plot([name, ...])Create a Draping Plot object
LayupPlotDict.create_field_definition_plot([...])Create a FieldDefinition Plot object
LayupPlotDict.create_layup_mapping_plot([...])Create a Layup Mapping Plot object
LayupPlotDict.create_material_plot([name, ...])Create a Material Plot object
LayupPlotDict.create_scalar_field_plot([...])Create a Field Plot object
LayupPlotDict.create_thickness_plot([name, ...])Create a Thickness Plot object
LayupPlotDict.create_user_defined_plot([...])Create a User-defined Plot object
LayupPlotDict.extend(values)Extend the UIDict with multiple items at once
LayupPlotDict.find(func)Return the value of the first value in dict where func(value) == True
LayupPlotDict.find_key(func)Return the key of the first value in dict where func(value) == True
LayupPlotDict.find_parent(type)Function steps up the tree and returns the first parent with given type
LayupPlotDict.get(key[, default])
LayupPlotDict.index(key)
LayupPlotDict.items()Return ordered list with (key,value) pairs
LayupPlotDict.iteritems()
LayupPlotDict.iterkeys()
LayupPlotDict.itervalues()
LayupPlotDict.keys()
LayupPlotDict.new(name[, type])
LayupPlotDict.rename(old_name, new_name)Rename function which updates the name of the object by calling obj._update_name(new_name)
LayupPlotDict.sort([cmp, key, reverse])
LayupPlotDict.update_key(old)Update old key of object to the current value of the key_attr attribute of this object
LayupPlotDict.values()
LayupPlotDict.visit(visitor)Walk through the tree and let the visitor perform action on every descendant node