    

 ## On this page

  

 

 # `CrossSections`

 Last update: 09.03.2026 

<a id="ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.CrossSections"></a>

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

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

Defines a CrossSections.

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

## Overview

### Methods

NameDescription[`Activate`](#CrossSections.Activate)Activate the current object.[`AddChannelCrossSection`](#CrossSections.AddChannelCrossSection)Creates a new ChannelCrossSection[`AddCircularCrossSection`](#CrossSections.AddCircularCrossSection)Creates a new CircularCrossSection[`AddCircularTubeCrossSection`](#CrossSections.AddCircularTubeCrossSection)Creates a new CircularTubeCrossSection[`AddComment`](#CrossSections.AddComment)Creates a new child Comment.[`AddFigure`](#CrossSections.AddFigure)Creates a new child Figure.[`AddHatCrossSection`](#CrossSections.AddHatCrossSection)Creates a new HatCrossSection[`AddHollowRectangularCrossSection`](#CrossSections.AddHollowRectangularCrossSection)Creates a new HollowRectangularCrossSection[`AddICrossSection`](#CrossSections.AddICrossSection)Creates a new ICrossSection[`AddImage`](#CrossSections.AddImage)Creates a new child Image.[`AddLCrossSection`](#CrossSections.AddLCrossSection)Creates a new LCrossSection[`AddRectangularCrossSection`](#CrossSections.AddRectangularCrossSection)Creates a new RectangularCrossSection[`AddTCrossSection`](#CrossSections.AddTCrossSection)Creates a new TCrossSection[`AddUserDefinedCrossSection`](#CrossSections.AddUserDefinedCrossSection)Creates a new UserDefinedCrossSection[`AddZCrossSection`](#CrossSections.AddZCrossSection)Creates a new ZCrossSection[`CopyTo`](#CrossSections.CopyTo)Copies all visible properties from this object to another.[`CreateParameter`](#CrossSections.CreateParameter)Creates a new parameter for a Property.[`Delete`](#CrossSections.Delete)Run the Delete action.[`Duplicate`](#CrossSections.Duplicate)Creates a copy of the current DataModelObject.[`GetChildren`](#CrossSections.GetChildren)Gets the list of children, filtered by type.[`GetParameter`](#CrossSections.GetParameter)Gets the parameter corresponding to the given property.[`GroupAllSimilarChildren`](#CrossSections.GroupAllSimilarChildren)Run the GroupAllSimilarChildren action.[`GroupSimilarObjects`](#CrossSections.GroupSimilarObjects)Run the GroupSimilarObjects action.[`NameCrossSectionsUniquely`](#CrossSections.NameCrossSectionsUniquely)programmatically give each of the Cross Section objects a unique name .[`PropertyByAPIName`](#CrossSections.PropertyByAPIName)Get a property by its API name.[`PropertyByName`](#CrossSections.PropertyByName)Get a property by its unique name.[`RemoveParameter`](#CrossSections.RemoveParameter)Removes the parameter from the parameter set corresponding to the given property.### Properties

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

## Property detail

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

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

Gets the list of children.

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

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

Gets the list of associated comments.

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

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

Gets the current DataModelObject’s category.

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

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

Gets the list of associated figures.

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

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

Gets the list of associated images.

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

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

Gets the internal object. For advanced usage only.

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

### *property* CrossSections.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="CrossSections.VisibleProperties"></a>

### *property* CrossSections.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="CrossSections.Activate"></a>

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

Activate the current object.

<a id="CrossSections.AddChannelCrossSection"></a>

### CrossSections.AddChannelCrossSection() → [Ansys.ACT.Automation.Mechanical.ChannelCrossSection](ChannelCrossSection.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.ChannelCrossSection)

Creates a new ChannelCrossSection

<a id="CrossSections.AddCircularCrossSection"></a>

### CrossSections.AddCircularCrossSection() → [Ansys.ACT.Automation.Mechanical.CircularCrossSection](CircularCrossSection.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.CircularCrossSection)

Creates a new CircularCrossSection

<a id="CrossSections.AddCircularTubeCrossSection"></a>

### CrossSections.AddCircularTubeCrossSection() → [Ansys.ACT.Automation.Mechanical.CircularTubeCrossSection](CircularTubeCrossSection.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.CircularTubeCrossSection)

Creates a new CircularTubeCrossSection

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

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

Creates a new child Comment.

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

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

Creates a new child Figure.

<a id="CrossSections.AddHatCrossSection"></a>

### CrossSections.AddHatCrossSection() → [Ansys.ACT.Automation.Mechanical.HatCrossSection](HatCrossSection.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.HatCrossSection)

Creates a new HatCrossSection

<a id="CrossSections.AddHollowRectangularCrossSection"></a>

### CrossSections.AddHollowRectangularCrossSection() → [Ansys.ACT.Automation.Mechanical.HollowRectangularCrossSection](HollowRectangularCrossSection.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.HollowRectangularCrossSection)

Creates a new HollowRectangularCrossSection

<a id="CrossSections.AddICrossSection"></a>

### CrossSections.AddICrossSection() → [Ansys.ACT.Automation.Mechanical.ICrossSection](ICrossSection.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.ICrossSection)

Creates a new ICrossSection

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

### CrossSections.AddImage(filePath: [str](https://docs.python.org/3/library/stdtypes.html#str)) → [Ansys.ACT.Automation.Mechanical.Image](Image.md#ansys.mechanical.stubs.v252.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="CrossSections.AddLCrossSection"></a>

### CrossSections.AddLCrossSection() → [Ansys.ACT.Automation.Mechanical.LCrossSection](LCrossSection.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.LCrossSection)

Creates a new LCrossSection

<a id="CrossSections.AddRectangularCrossSection"></a>

### CrossSections.AddRectangularCrossSection() → [Ansys.ACT.Automation.Mechanical.RectangularCrossSection](RectangularCrossSection.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.RectangularCrossSection)

Creates a new RectangularCrossSection

<a id="CrossSections.AddTCrossSection"></a>

### CrossSections.AddTCrossSection() → [Ansys.ACT.Automation.Mechanical.TCrossSection](TCrossSection.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.TCrossSection)

Creates a new TCrossSection

<a id="CrossSections.AddUserDefinedCrossSection"></a>

### CrossSections.AddUserDefinedCrossSection() → [Ansys.ACT.Automation.Mechanical.UserDefinedCrossSection](UserDefinedCrossSection.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.UserDefinedCrossSection)

Creates a new UserDefinedCrossSection

<a id="CrossSections.AddZCrossSection"></a>

### CrossSections.AddZCrossSection() → [Ansys.ACT.Automation.Mechanical.ZCrossSection](ZCrossSection.md#ansys.mechanical.stubs.v252.Ansys.ACT.Automation.Mechanical.ZCrossSection)

Creates a new ZCrossSection

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

### CrossSections.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="CrossSections.CreateParameter"></a>

### CrossSections.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="CrossSections.Delete"></a>

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

Run the Delete action.

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

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

Creates a copy of the current DataModelObject.

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

### CrossSections.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="CrossSections.GetParameter"></a>

### CrossSections.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="CrossSections.GroupAllSimilarChildren"></a>

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

Run the GroupAllSimilarChildren action.

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

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

Run the GroupSimilarObjects action.

<a id="CrossSections.NameCrossSectionsUniquely"></a>

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

programmatically give each of the Cross Section objects a unique name .

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

### CrossSections.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="CrossSections.PropertyByName"></a>

### CrossSections.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="CrossSections.RemoveParameter"></a>

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