DatumLine#

class ansys.geometry.core.designer.datumline.DatumLine(id: str, name: str, line: ansys.geometry.core.shapes.curves.line.Line, parent_component: ansys.geometry.core.designer.component.Component)#

Provides for creating datum lines in components.

Parameters:
idstr

Server-defined ID for the datum line.

namestr

User-defined label for the datum line.

lineLine

3D line constituting the datum line.

parent_componentComponent

Parent component to place the new datum line under within the design assembly.

Overview#

id

ID of the datum line.

name

Name of the datum line.

line

Line of the datum line.

parent_component

Component node that the datum line is under.

is_alive

Check if the datum line is still present on the server.

__repr__

Represent the datum line as a string.

Import detail#

from ansys.geometry.core.designer.datumline import DatumLine

Property detail#

property DatumLine.id: str#

ID of the datum line.

property DatumLine.name: str#

Name of the datum line.

property DatumLine.line: ansys.geometry.core.shapes.curves.line.Line#

Line of the datum line.

property DatumLine.parent_component: ansys.geometry.core.designer.component.Component#

Component node that the datum line is under.

property DatumLine.is_alive: bool#

Check if the datum line is still present on the server.

Method detail#

DatumLine.__repr__() str#

Represent the datum line as a string.