create_face_coordinate_system#
- Modeler2D.create_face_coordinate_system(face, origin, axis_position, axis='X', name=None, offset=None, rotation=0, always_move_to_end=True)[source]#
Create a face coordinate system.
The face coordinate has always the Z axis parallel to face normal. The X and Y axis lie on the face plane.
- Parameters:
- face
int
,FacePrimitive
Face where the coordinate system is defined.
- origin
int
,FacePrimitive
,EdgePrimitive
,VertexPrimitive
Coordinate system origin. The origin must belong to the face where the coordinate system is defined.
If a face is specified, the origin is placed on the face center. It must be the same as the
face
parameter.If an edge is specified, the origin is placed on the edge midpoint.
If a vertex is specified, the origin is placed on the vertex.
- axis_position
int
,FacePrimitive
,EdgePrimitive
,VertexPrimitive
Specify where the X or Y axis is pointing. The position must belong to the face where the coordinate system is defined. Select which axis is considered with the option
axis
. If a face is specified, the position is placed on the face center. It must be the same asface
. If an edge is specified, the position is placed on the edce midpoint. If a vertex is specified, the position is placed on the vertex.- axis
str
,optional
Select which axis is considered for positioning. Possible values are
"X"
and"Y"
. The default is"X"
.- name
str
,optional
Name of the coordinate system. The default is
None
.- offset
list
,optional
List of the
[x, y]
coordinates specifying the offset of the coordinate system origin. The offset specified in the face coordinate system reference. The default is[0, 0]
.- rotation
float
,optional
Rotation angle of the coordinate system around its Z axis. Angle is in degrees. The default is
0
.- always_move_to_endbool,
optional
If
True
the Face Coordinate System creation operation will always be moved to the end of subsequent objects operation. This will guarantee that the coordinate system will remain solidal with the object face. IfFalse
the option “Always Move CS to End” is set to off. The default isTrue
.
- face
- Returns:
ansys.aedt.core.modeler.Modeler.FaceCoordinateSystem