    

 ## On this page

  

 

 # `ConstructionLineHelper`

 Last update: 16.07.2025 

<a id="ansys.mechanical.stubs.v241.Ansys.Mechanical.DataModel.ConstructionLines.ConstructionLineHelper"></a>

#### *class* Ansys.Mechanical.DataModel.ConstructionLines.ConstructionLineHelper

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

Helper to perform queries and modifications against a ConstructionLine instance.

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

## Overview

### Constructors

NameDescription[`ClearExistingDataAndImportFromXML`](#ConstructionLineHelper.ClearExistingDataAndImportFromXML)Import global points and connecting edges from an XML file.[`ExportToXML`](#ConstructionLineHelper.ExportToXML)Collect all the edges and edge vertices, then export them as global points to an XML file.[`GetContainedEdges`](#ConstructionLineHelper.GetContainedEdges)Get all the edges that have both start and end edge vertices in the given plane.[`GetEdgeVerticesById`](#ConstructionLineHelper.GetEdgeVerticesById)GetEdgeVerticesById method.[`GetEdgesById`](#ConstructionLineHelper.GetEdgesById)GetEdgesById method.[`GetEdgesUsingPoint`](#ConstructionLineHelper.GetEdgesUsingPoint)Get a list of IEdge that use the given Point.[`GetPlanesById`](#ConstructionLineHelper.GetPlanesById)GetPlanesById method.[`GetRelatedEdges`](#ConstructionLineHelper.GetRelatedEdges)Get all the edges that have only edge vertex in the given plane.<a id="method-detail"></a>

## Method detail

<a id="ConstructionLineHelper.ClearExistingDataAndImportFromXML"></a>

### *classmethod* ConstructionLineHelper.ClearExistingDataAndImportFromXML(constructionLine: [Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine](../../../ACT/Automation/Mechanical/ConstructionLines/ConstructionLine.md#ansys.mechanical.stubs.v241.Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine), xmlFilePath: [str](https://docs.python.org/3/library/stdtypes.html#str))

Import global points and connecting edges from an XML file.

<a id="ConstructionLineHelper.ExportToXML"></a>

### *classmethod* ConstructionLineHelper.ExportToXML(constructionLine: [Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine](../../../ACT/Automation/Mechanical/ConstructionLines/ConstructionLine.md#ansys.mechanical.stubs.v241.Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine), xmlFilePath: [str](https://docs.python.org/3/library/stdtypes.html#str))

Collect all the edges and edge vertices, then export them as global points to an XML file.

<a id="ConstructionLineHelper.GetContainedEdges"></a>

### *classmethod* ConstructionLineHelper.GetContainedEdges(plane: [Ansys.Mechanical.DataModel.ConstructionLines.Plane](Plane.md#ansys.mechanical.stubs.v241.Ansys.Mechanical.DataModel.ConstructionLines.Plane))

Get all the edges that have both start and end edge vertices in the given plane.

<a id="ConstructionLineHelper.GetEdgeVerticesById"></a>

### *classmethod* ConstructionLineHelper.GetEdgeVerticesById(constructionLine: [Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine](../../../ACT/Automation/Mechanical/ConstructionLines/ConstructionLine.md#ansys.mechanical.stubs.v241.Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine), edgeVertexIdCollection: Iterable\[[int](https://docs.python.org/3/library/functions.html#int)\])

GetEdgeVerticesById method.

<a id="ConstructionLineHelper.GetEdgesById"></a>

### *classmethod* ConstructionLineHelper.GetEdgesById(constructionLine: [Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine](../../../ACT/Automation/Mechanical/ConstructionLines/ConstructionLine.md#ansys.mechanical.stubs.v241.Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine), edgeIdCollection: Iterable\[[int](https://docs.python.org/3/library/functions.html#int)\])

GetEdgesById method.

<a id="ConstructionLineHelper.GetEdgesUsingPoint"></a>

### *classmethod* ConstructionLineHelper.GetEdgesUsingPoint(point: [Ansys.Mechanical.DataModel.ConstructionLines.Point](Point.md#ansys.mechanical.stubs.v241.Ansys.Mechanical.DataModel.ConstructionLines.Point))

Get a list of IEdge that use the given Point.

<a id="ConstructionLineHelper.GetPlanesById"></a>

### *classmethod* ConstructionLineHelper.GetPlanesById(constructionLine: [Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine](../../../ACT/Automation/Mechanical/ConstructionLines/ConstructionLine.md#ansys.mechanical.stubs.v241.Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine), planeIdCollection: Iterable\[[int](https://docs.python.org/3/library/functions.html#int)\])

GetPlanesById method.

<a id="ConstructionLineHelper.GetRelatedEdges"></a>

### *classmethod* ConstructionLineHelper.GetRelatedEdges(plane: [Ansys.Mechanical.DataModel.ConstructionLines.Plane](Plane.md#ansys.mechanical.stubs.v241.Ansys.Mechanical.DataModel.ConstructionLines.Plane))

Get all the edges that have only edge vertex in the given plane.