> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SamplingPoint

### *class* compolyx.SamplingPoint(graph, obj, parent=None)

The sampling point enables picking through the laminate at a certain point to run detailed analyses.

Key features:
: - Layup in the object tree of the closest element to the selected point.

* Sampling direction defines the ply order (bottom-up or top-down).
* Reference direction defines the 0 degree axis of the element used for the evaluations (CLT).
* Optional a user-defined coordinate system can be selected to compute the reference direction. The element normal and reference direction.
  defines the result coordinate system.
* 2D plots showing the layup, stress, strain and failure distribution through the laminate.
* Polar plot of the laminate properties.
* Analysis based on the Classical Laminate Theory (CLT).
* Export to ESAComp, CSV file, etc.

- **Usage:**
  ```python theme={null}
  >>> model.create_sampling_point(name='Sampling Point')
  ```

### Attributes

| Name | Description |
| - | - |
| [`SamplingPoint.active`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.active) | Active status of object |
| [`SamplingPoint.consider_coupling_effect`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.consider_coupling_effect) | Whether to consider coupling effects (B-Matrix) for the calculation of the laminate engineering constants |
| [`SamplingPoint.direction`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.direction) | Sampling Point Direction |
| [`SamplingPoint.element_id`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.element_id) | Element ID (label) of the Sampling Point |
| [`SamplingPoint.enabled`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.enabled) | Whether this object is currently enabled |
| [`SamplingPoint.graph_plot`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.graph_plot) | Graph Plot object used to configure 2D plots |
| [`SamplingPoint.id`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.id) | ID of object |
| [`SamplingPoint.is_dict_item`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.is_dict_item) | Specifies whether the object is an item of a dict |
| [`SamplingPoint.is_list_item`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.is_list_item) | Specifies whether the object is an item of a list |
| [`SamplingPoint.link_path`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.link_path) | Root path of the current node in the tree for links to this object |
| [`SamplingPoint.locked`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.locked) | Sampling Point is generated from an imported source and cannot be changed |
| [`SamplingPoint.name`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.name) | Name of object |
| [`SamplingPoint.offset_is_middle`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.offset_is_middle) | Whether to offset the reference surface to the mid-plane of the laminate. |
| [`SamplingPoint.parent`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.parent) | Parent object in tree |
| [`SamplingPoint.plies`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.plies) | Plies of the Sampling Point |
| [`SamplingPoint.point`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.point) | Sampling Point Point |
| [`SamplingPoint.reference_direction`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.reference_direction) | Reference direction |
| [`SamplingPoint.root_path`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.root_path) | Root path of the current node in the tree |
| [`SamplingPoint.rosette`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.rosette) | Rosette of the Sampling Point |
| [`SamplingPoint.solution_set`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.solution_set) | Solution and Set selection |
| [`SamplingPoint.status`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.status) | Status of the object |
| [`SamplingPoint.status_changed`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.status_changed) | Boolean flag which is set to true in C++ when up-to-date status of object changes. |
| [`SamplingPoint.uid`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.uid) | UID of object |
| [`SamplingPoint.use_default_reference_direction`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.use_default_reference_direction) | Flag to use default reference direction |
| [`SamplingPoint.vertex`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.vertex) | This will throw an error if the object has been removed from the graph |

### Methods

| Name | Description |
| - | - |
| [`SamplingPoint.aligned`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.aligned)() | Returns true if the sampling direction is aligned with the normal direction of the closest element |
| [`SamplingPoint.capture_analysis_plot`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.capture_analysis_plot)(\[path, size]) | Saves the sampling point analysis plot to a file |
| [`SamplingPoint.clt_query`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.clt_query)(\[query, ...]) | Returns the properties of the classical laminate theory |
| [`SamplingPoint.create_plot`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.create_plot)(\[query, ...]) | Generates 2D plots with the results of interest |
| [`SamplingPoint.export_laminate`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.export_laminate)(filename\[, ...]) | |
| [`SamplingPoint.find_parent`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.find_parent)(type) | Function steps up the tree and returns the first parent with given type |
| [`SamplingPoint.obj_exists`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.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 |
| [`SamplingPoint.serialize`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.serialize)() | |
| [`SamplingPoint.serialize_name_and_id`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.serialize_name_and_id)() | Helper function to serialize name and ID |
| [`SamplingPoint.update`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.update)() | |
| [`SamplingPoint.update_plot`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.update_plot)(offset\_is\_middle, ...) | Updates the 2D plot |
| [`SamplingPoint.visit`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/2025-r2/_autosummary/compolyx.SamplingPoint.visit)(visitor) | Walk through the tree and let the visitor perform action on every descendant node |
