#### 6.5.8.1. ElementSet

`class compolyx.ElementSet`(graph, obj=None, parent=None)

Bases: compolyx.entity_set.EntitySet

Element set class

Exemplary usage

    >>> m=db.models.values()[-1]
    >>> eset=m.element_sets['DECK']
    >>> eset.modify(op='none')
    >>> eset.modify(op='new', element_labels=[1,2,3,4])
    >>> eset.modify(op='add', element_sets=[ m.element_sets['Deck_layup-1'] ])
    >>> eset.modify(op='intersect', x=[-6.5,-5.5])

`boundaries`

  Get the boundaries of the Element Set

`locked`

  Element Set is imported and cannot be changed.

`middle_offset`

  Middle offset flag

`modify`(op='new', element_labels=None, element_sets=None, x=None, y=None, z=None)

  General method to modify the elements in an element set

  Parameters

  - op : Selection method: new, add, remove, intersect or inverse

  - element_labels : List of element ids

  - element_sets : List of element sets

  - x : Min and max of x location

  - y : Min and max of y location

  - z : Min and max of z location

`normals`

  Get the Normals of the Element Set

`orientable`

  True if the Element Set has an orientable topology

`partition`()

  Partitions this ElementSet into new ElementSets with an orientable topology if this ElementSet is already orientable, a copy will be created

`planar`

  True if the Element Set has a planar topology

`serialize`()

  Serialize to Python string

`write_boundaries`(filename, format=None)

  Write boundaries in iges/step format :Parameters: - filename : output file - format : 'iges', 'step', None (automatic format recognition)

Release 18.2 - © ANSYS, Inc. All rights reserved.