Skip to main content

Mechanical scripting interface

SectionPlanes

Last update: 14.01.2025

class Ansys.Mechanical.Graphics.SectionPlanes

Bases: object

Represents the collection of section planes used by graphics

Overview

Methods

Name Description
Add Adds the given SectionPlane object to the collection to modify the view. Currently only 6 SectionPlane objects in the collection can be activated at once.
Clear Clears the collection of all SectionPlane objects.
Remove Removes the requested SectionPlane from the collection.
RemoveAt Removes the SectionPlane at the given index.

Properties

Name Description
Capping Gets or Sets the Capping style of the Section Plane
Count The number of section planes in the collection.
ShowWholeElement Gets or Sets the Element Visibility of the Section Plane

Property detail

property SectionPlanes.Capping : Ansys.Mechanical.DataModel.Enums.SectionPlaneCappingType | None

Gets or Sets the Capping style of the Section Plane

property SectionPlanes.Count : int | None

The number of section planes in the collection.

property SectionPlanes.ShowWholeElement : bool | None

Gets or Sets the Element Visibility of the Section Plane

Method detail

SectionPlanes.Add(sectionPlane: Ansys.Mechanical.Graphics.SectionPlane)

Adds the given SectionPlane object to the collection to modify the view. Currently only 6 SectionPlane objects in the collection can be activated at once.

SectionPlanes.Clear()

Clears the collection of all SectionPlane objects.

SectionPlanes.Remove(sectionPlane: Ansys.Mechanical.Graphics.SectionPlane)

Removes the requested SectionPlane from the collection.

SectionPlanes.RemoveAt(index: int)

Removes the SectionPlane at the given index.