    

 ## On this page

  

 

 # `CrossSection`

 Last update: 09.03.2026 

<a id="ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.CrossSection"></a>

#### *class* Ansys.ACT.Automation.Mechanical.CrossSection

Bases: [`object`](https://docs.python.org/3/library/functions.html#object)

Defines a CrossSection.

<a id="overview"></a>

## Overview

### Methods

NameDescription[`Activate`](#CrossSection.Activate)Activate the current object.[`AddComment`](#CrossSection.AddComment)Creates a new child Comment.[`AddFigure`](#CrossSection.AddFigure)Creates a new child Figure.[`AddImage`](#CrossSection.AddImage)Creates a new child Image.[`CopyTo`](#CrossSection.CopyTo)Copies all visible properties from this object to another.[`CreateParameter`](#CrossSection.CreateParameter)Creates a new parameter for a Property.[`Delete`](#CrossSection.Delete)Run the Delete action.[`Duplicate`](#CrossSection.Duplicate)Creates a copy of the current DataModelObject.[`GetChildren`](#CrossSection.GetChildren)Gets the list of children, filtered by type.[`GetParameter`](#CrossSection.GetParameter)Gets the parameter corresponding to the given property.[`GroupAllSimilarChildren`](#CrossSection.GroupAllSimilarChildren)Run the GroupAllSimilarChildren action.[`GroupSimilarObjects`](#CrossSection.GroupSimilarObjects)Run the GroupSimilarObjects action.[`PropertyByAPIName`](#CrossSection.PropertyByAPIName)Get a property by its API name.[`PropertyByName`](#CrossSection.PropertyByName)Get a property by its unique name.[`RemoveParameter`](#CrossSection.RemoveParameter)Removes the parameter from the parameter set corresponding to the given property.### Properties

NameDescription[`Children`](#CrossSection.Children)Gets the list of children.[`Comments`](#CrossSection.Comments)Gets the list of associated comments.[`DataModelObjectCategory`](#CrossSection.DataModelObjectCategory)Gets the current DataModelObject's category.[`Figures`](#CrossSection.Figures)Gets the list of associated figures.[`Images`](#CrossSection.Images)Gets the list of associated images.[`InternalObject`](#CrossSection.InternalObject)Gets the internal object. For advanced usage only.[`Properties`](#CrossSection.Properties)Gets the list of properties for this object.[`ReadOnly`](#CrossSection.ReadOnly)Gets or sets the ReadOnly.[`VisibleProperties`](#CrossSection.VisibleProperties)Gets the list of properties that are visible for this object.<a id="property-detail"></a>

## Property detail

<a id="CrossSection.Children"></a>

### *property* CrossSection.Children *: List\[[Ansys.Mechanical.DataModel.Interfaces.IDataModelObject](../../../Mechanical/DataModel/Interfaces/IDataModelObject.md#ansys.mechanical.stubs.v261.Ansys.Mechanical.DataModel.Interfaces.IDataModelObject)\] | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the list of children.

<a id="CrossSection.Comments"></a>

### *property* CrossSection.Comments *: Iterable\[[Ansys.ACT.Automation.Mechanical.Comment](Comment.md#ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.Comment)\] | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the list of associated comments.

<a id="CrossSection.DataModelObjectCategory"></a>

### *property* CrossSection.DataModelObjectCategory *: [Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory](../../../Mechanical/DataModel/Enums/DataModelObjectCategory.md#ansys.mechanical.stubs.v261.Ansys.Mechanical.DataModel.Enums.DataModelObjectCategory) | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the current DataModelObject's category.

<a id="CrossSection.Figures"></a>

### *property* CrossSection.Figures *: Iterable\[[Ansys.ACT.Automation.Mechanical.Figure](Figure.md#ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.Figure)\] | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the list of associated figures.

<a id="CrossSection.Images"></a>

### *property* CrossSection.Images *: Iterable\[[Ansys.ACT.Automation.Mechanical.Image](Image.md#ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.Image)\] | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the list of associated images.

<a id="CrossSection.InternalObject"></a>

### *property* CrossSection.InternalObject *: Ansys.Common.Interop.DSObjectsAuto.IDSCrossSectionAuto | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the internal object. For advanced usage only.

<a id="CrossSection.Properties"></a>

### *property* CrossSection.Properties *: [tuple](https://docs.python.org/3/library/stdtypes.html#tuple)\[Ansys.ACT.Automation.Mechanical.Property\] | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the list of properties for this object.

<a id="CrossSection.ReadOnly"></a>

### *property* CrossSection.ReadOnly *: [bool](https://docs.python.org/3/library/functions.html#bool) | [None](https://docs.python.org/3/library/constants.html#None)*

Gets or sets the ReadOnly.

<a id="CrossSection.VisibleProperties"></a>

### *property* CrossSection.VisibleProperties *: [tuple](https://docs.python.org/3/library/stdtypes.html#tuple)\[Ansys.ACT.Automation.Mechanical.Property\] | [None](https://docs.python.org/3/library/constants.html#None)*

Gets the list of properties that are visible for this object.

<a id="method-detail"></a>

## Method detail

<a id="CrossSection.Activate"></a>

### CrossSection.Activate() → [None](https://docs.python.org/3/library/constants.html#None)

Activate the current object.

<a id="CrossSection.AddComment"></a>

### CrossSection.AddComment() → [Ansys.ACT.Automation.Mechanical.Comment](Comment.md#ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.Comment)

Creates a new child Comment.

<a id="CrossSection.AddFigure"></a>

### CrossSection.AddFigure() → [Ansys.ACT.Automation.Mechanical.Figure](Figure.md#ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.Figure)

Creates a new child Figure.

<a id="CrossSection.AddImage"></a>

### CrossSection.AddImage(filePath: [str](https://docs.python.org/3/library/stdtypes.html#str)) → [Ansys.ACT.Automation.Mechanical.Image](Image.md#ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.Image)

```text
Creates a new child Image.
If a filePath is provided, the image will be loaded from that file,
if not, the image will be a screen capture of the Geometry window.

```

<a id="CrossSection.CopyTo"></a>

### CrossSection.CopyTo(other: Ansys.ACT.Automation.Mechanical.DataModelObject) → [None](https://docs.python.org/3/library/constants.html#None)

Copies all visible properties from this object to another.

<a id="CrossSection.CreateParameter"></a>

### CrossSection.CreateParameter(propName: [str](https://docs.python.org/3/library/stdtypes.html#str)) → Ansys.ACT.Interfaces.Mechanical.IParameter

Creates a new parameter for a Property.

<a id="CrossSection.Delete"></a>

### CrossSection.Delete() → [None](https://docs.python.org/3/library/constants.html#None)

Run the Delete action.

<a id="CrossSection.Duplicate"></a>

### CrossSection.Duplicate() → [Ansys.Mechanical.DataModel.Interfaces.IDataModelObject](../../../Mechanical/DataModel/Interfaces/IDataModelObject.md#ansys.mechanical.stubs.v261.Ansys.Mechanical.DataModel.Interfaces.IDataModelObject)

Creates a copy of the current DataModelObject.

<a id="CrossSection.GetChildren"></a>

### CrossSection.GetChildren(recurses: [bool](https://docs.python.org/3/library/functions.html#bool), children: List\[ChildrenType\]) → List\[ChildrenType\]

Gets the list of children, filtered by type.

<a id="CrossSection.GetParameter"></a>

### CrossSection.GetParameter(propName: [str](https://docs.python.org/3/library/stdtypes.html#str)) → Ansys.ACT.Interfaces.Mechanical.IParameter

Gets the parameter corresponding to the given property.

<a id="CrossSection.GroupAllSimilarChildren"></a>

### CrossSection.GroupAllSimilarChildren() → [None](https://docs.python.org/3/library/constants.html#None)

Run the GroupAllSimilarChildren action.

<a id="CrossSection.GroupSimilarObjects"></a>

### CrossSection.GroupSimilarObjects() → [Ansys.ACT.Automation.Mechanical.TreeGroupingFolder](TreeGroupingFolder.md#ansys.mechanical.stubs.v261.Ansys.ACT.Automation.Mechanical.TreeGroupingFolder)

Run the GroupSimilarObjects action.

<a id="CrossSection.PropertyByAPIName"></a>

### CrossSection.PropertyByAPIName(name: [str](https://docs.python.org/3/library/stdtypes.html#str)) → Ansys.ACT.Automation.Mechanical.Property

```text
Get a property by its API name.
If multiple properties have the same API Name, only the first property with that name will be returned.

```

<a id="CrossSection.PropertyByName"></a>

### CrossSection.PropertyByName(name: [str](https://docs.python.org/3/library/stdtypes.html#str)) → Ansys.ACT.Automation.Mechanical.Property

Get a property by its unique name.

<a id="CrossSection.RemoveParameter"></a>

### CrossSection.RemoveParameter(propName: [str](https://docs.python.org/3/library/stdtypes.html#str)) → [None](https://docs.python.org/3/library/constants.html#None)

Removes the parameter from the parameter set corresponding to the given property.