DesignCurve#

class ansys.geometry.core.designer.designcurve.DesignCurve(id: str, name: str, length: ansys.geometry.core.misc.measurements.Distance, start: ansys.geometry.core.math.point.Point3D, end: ansys.geometry.core.math.point.Point3D, grpc_client: ansys.geometry.core.connection.client.GrpcClient, parent_component: ansys.geometry.core.designer.component.Component)#

Represents a standalone curve within the design assembly.

Unlike edges, which are always attached to a body, a DesignCurve is a free-standing curve object that lives directly under the root design object or a component in the design tree. These are typically created by operations such as revolving design points.

Parameters:
idstr

Server-defined ID for the curve.

namestr

User-defined label for the curve.

lengthDistance

Length of the curve.

startPoint3D

Start point of the curve.

endPoint3D

End point of the curve.

grpc_clientGrpcClient

gRPC client for communicating with the server.

parent_componentComponent

Parent component that the curve belongs to in the design assembly.

Overview#

id

ID of the design curve.

name

Name of the design curve.

parent_component

Parent component of the design curve.

is_alive

Flag indicating whether the design curve is still present on the server.

shape

Underlying trimmed curve geometry of the design curve.

length

Calculated length of the design curve.

start

Start point of the design curve.

end

End point of the design curve.

__repr__

Represent the design curve as a string.

Import detail#

from ansys.geometry.core.designer.designcurve import DesignCurve

Property detail#

property DesignCurve.id: str#

ID of the design curve.

property DesignCurve.name: str#

Name of the design curve.

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

Parent component of the design curve.

property DesignCurve.is_alive: bool#

Flag indicating whether the design curve is still present on the server.

property DesignCurve.shape: ansys.geometry.core.shapes.curves.trimmed_curve.TrimmedCurve#

Underlying trimmed curve geometry of the design curve.

The shape is fetched from the server on first access and then cached.

property DesignCurve.length: ansys.geometry.core.misc.measurements.Distance#

Calculated length of the design curve.

property DesignCurve.start: ansys.geometry.core.math.point.Point3D#

Start point of the design curve.

property DesignCurve.end: ansys.geometry.core.math.point.Point3D#

End point of the design curve.

Method detail#

DesignCurve.__repr__() str#

Represent the design curve as a string.