Skip to main content

Mechanical scripting interface 2026 R1

`SectionPlanes`

Last update: 09.03.2026

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.
CreateSectionPlane Creates a SectionPlane based on a coordinate system and plane orientation.
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.
ShowHatching Controls whether to render hatch lines (the black parallel lines) on the capped surfaces of section planes. Default: true
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.ShowHatching : bool | None

Controls whether to render hatch lines (the black parallel lines) on the capped surfaces of section planes. Default: true

property SectionPlanes.ShowWholeElement : bool | None

Gets or Sets the Element Visibility of the Section Plane

Method detail

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

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() → None

Clears the collection of all SectionPlane objects.

SectionPlanes.CreateSectionPlane(coordinateSystem: Ansys.ACT.Automation.Mechanical.CoordinateSystem, planeOrientation: Ansys.Mechanical.DataModel.MechanicalEnums.Common.PlaneOrientation) → Ansys.Mechanical.Graphics.SectionPlane

Creates a SectionPlane based on a coordinate system and plane orientation.

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

Removes the requested SectionPlane from the collection.

SectionPlanes.RemoveAt(index: int) → None

Removes the SectionPlane at the given index.

Connect with Ansys