> ## 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.

# View

### *class* compolyx.View(name, position=(0.0, 0.0, 0.0), orientation=(0.0, 0.0, 0.0), rotation\_point=(0.0, 0.0, 0.0), parallel\_scale=1.0, projection='perspective', locked=False, parent=None)

Represents a view and its properties.

Access:

```python theme={null}
>>> import compolyx
>>> db = compolyx.DB()
>>> view1 = db.create_view(name='View.1', position=[1.5, 5.75, 7.], orientation=[-0.4, -0.4, 0.8], rotation_point=[-6.0, 0.6, 0.75], projection='perspective')
```

### Attributes

| Name | Description |
| - | - |
| [`View.is_dict_item`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.View.is_dict_item) | Indicates whether the object is an item in a dictionary. |
| [`View.is_list_item`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.View.is_list_item) | Indicates whether the object is an item of a list. |
| [`View.link_path`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.View.link_path) | Root path of the current node in the tree for links to this object. |
| [`View.locked`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.View.locked) | A View which is imported from another source cannot be modified. |
| [`View.name`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.View.name) | Name of the object. |
| [`View.orientation`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.View.orientation) | Get/set the view orientation. |
| [`View.parallel_scale`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.View.parallel_scale) | Get/set the view parallel‑perspective scale factor. |
| [`View.parent`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.View.parent) | Parent object in the tree. |
| [`View.position`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.View.position) | Get/set the view position. |
| [`View.projection`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.View.projection) | Get/set the projection method parallel or perspective. |
| [`View.root_path`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.View.root_path) | Root path of the current node in the tree. |
| [`View.rotation_point`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.View.rotation_point) | Get/set the view rotation point. |

### Methods

| Name | Description |
| - | - |
| [`View.find_parent`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.View.find_parent)(type) | Steps up the tree and returns the first parent with given type. |
| [`View.serialize`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.View.serialize)() | Serialize to Python string. |
| [`View.visit`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.View.visit)(visitor) | Walk through the tree and let the visitor perform action on every descendant node. |
