Skip to main content

Mechanical scripting interface

ConstructionLineHelper

Last update: 14.01.2025

class Ansys.Mechanical.DataModel.ConstructionLines.ConstructionLineHelper

Bases: object

Helper to perform queries and modifications against a ConstructionLine instance.

Overview

Constructors

Name Description
ClearExistingDataAndImportFromXML Import global points and connecting edges from an XML file.
ExportToXML Collect all the edges and edge vertices, then export them as global points to an XML file.
GetContainedEdges Get all the edges that have both start and end edge vertices in the given plane.
GetEdgeVerticesById GetEdgeVerticesById method.
GetEdgesById GetEdgesById method.
GetEdgesUsingPoint Get a list of IEdge that use the given Point.
GetPlanesById GetPlanesById method.
GetRelatedEdges Get all the edges that have only edge vertex in the given plane.

Method detail

classmethod ConstructionLineHelper.ClearExistingDataAndImportFromXML(constructionLine: Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine, xmlFilePath: str)

Import global points and connecting edges from an XML file.

classmethod ConstructionLineHelper.ExportToXML(constructionLine: Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine, xmlFilePath: str)

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

classmethod ConstructionLineHelper.GetContainedEdges(plane: Ansys.Mechanical.DataModel.ConstructionLines.Plane)

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

classmethod ConstructionLineHelper.GetEdgeVerticesById(constructionLine: Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine, edgeVertexIdCollection: Iterable[int])

GetEdgeVerticesById method.

classmethod ConstructionLineHelper.GetEdgesById(constructionLine: Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine, edgeIdCollection: Iterable[int])

GetEdgesById method.

classmethod ConstructionLineHelper.GetEdgesUsingPoint(point: Ansys.Mechanical.DataModel.ConstructionLines.Point)

Get a list of IEdge that use the given Point.

classmethod ConstructionLineHelper.GetPlanesById(constructionLine: Ansys.ACT.Automation.Mechanical.ConstructionLines.ConstructionLine, planeIdCollection: Iterable[int])

GetPlanesById method.

classmethod ConstructionLineHelper.GetRelatedEdges(plane: Ansys.Mechanical.DataModel.ConstructionLines.Plane)

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