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
DesignCurveis 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:
- id
str Server-defined ID for the curve.
- name
str User-defined label for the curve.
- length
Distance Length of the curve.
- start
Point3D Start point of the curve.
- end
Point3D End point of the curve.
- grpc_client
GrpcClient gRPC client for communicating with the server.
- parent_component
Component Parent component that the curve belongs to in the design assembly.
- id
Overview#
ID of the design curve. |
|
Name of the design curve. |
|
Parent component of the design curve. |
|
Flag indicating whether the design curve is still present on the server. |
|
Underlying trimmed curve geometry of the design curve. |
|
Calculated length of the design curve. |
|
Start point of the design curve. |
|
End point of the design curve. |
Represent the design curve as a string. |
Import detail#
from ansys.geometry.core.designer.designcurve import DesignCurve
Property detail#
- 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.