### 6.5.19. Sensor

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

Sensor object for meassuring areas, prices, weights, and centers of gravity

`add_entity`(entity)

  Add entity to Sensor

`area`

  Area covered by all Entities of the Sensor

`center_of_gravity`

  Center of Gravity over all Entities of the Sensor

`clear_entities`()

  Clear all entities of this Sensor

`enabled`

  Whether this object is currently enabled or not. Sensors are always enabled.

`entities`

  Entities of the Sensor

`locked`

  Sensor cut was imported and cannot be changed.

`modeling_ply_area`

  Cumulated area of all modeling-plies involved

`price`

  Price over all Entities of the Sensor

`production_ply_area`

  Cumulated area of all production-plies involved

`remove_entity`(entity)

  Remove entity from sensor

`sensor_type`

  Sensor type. Allowed string values: sensor_by_area, sensor_by_plies, sensor_by_material and sensor_by_solid_model.

`weight`

  Weight over all Entities of the Sensor

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