CreateFaceCS

Creates a Face Coordinate System from a selected face.

UI Access Modeler > Coordinate System > Create > FaceCS.
Parameters
Name Type Description

<Parameters>

Array

Structured array. 

Array("NAME:FaceCSParameters",

<OriginArray>,

"MoveToEnd:=", <boolean>,

"FaceID:=", <integer>,

<AxisPosnArray>,

"WhichAxis:=" , <string "X", "Y", or "Z">,

"ZRotationAngle:=" , <string>,

"XOffset:=" , <string>,

"YOffset:=" , <string>,

"AutoAxis:=" , <boolean>)

<OriginArray>

Array

Structured array.

Array("NAME:Origin",

"IsAttachedToEntity:=" , <boolean>,

"EntityID:=" , <integer>,

"FacetedBodyTriangleIndex:=", <integer>,

"TriangleVertexIndex:=" , <integer>,

"PositionType:=" , <string "FaceCenter", "EdgeCenter", "OnVertex", "OnEdge", or "OnFace">,

"UParam:=" , <float between 0 and 1 representing the relative position of the point on the edge or face>,

"VParam:=" , <float between 0 and 1 representing the relative position of the point on the edge or face>,

"XPosition:=" , <string>,

"YPosition:=" , <string>,

"ZPosition:=" , <string>)

IsAttachedToEntity specifies whether the point is anchored to a vertex, edge, or face. If True, provide UParam and VParam. If False, provide XPosition, YPosition, and ZPosition to provide fixed position. Pass "0" for unused parameters.

<AxisPosnArray>

Array

Structured array.

Array("NAME:AxisPosn",

"IsAttachedToEntity:=" , <boolean>,

"EntityID:=" , <integer>,

"FacetedBodyTriangleIndex:=", <integer>,

"TriangleVertexIndex:=" , <integer>,

"PositionType:=" , <string "FaceCenter", "EdgeCenter", "OnVertex", "OnEdge", or "OnFace">,

"UParam:=" , <float>,

"VParam:=" , <float>,

"XPosition:=" , <string>,

"YPosition:=" , <string>,

"ZPosition:=" , <string>)

<AttributesArray> Array Structured array. See: AttributesArray. 
Return Value None.

Python Syntax

CreateFaceCS(<Parameters>,<AttributesArray>)

Python Example

oEditor.CreateFaceCS(

["NAME:FaceCSParameters",

["NAME:Origin",

"IsAttachedToEntity:=" , True,

"EntityID:=" , 46,

"FacetedBodyTriangleIndex:=", -1,

"TriangleVertexIndex:=" , -1,

"PositionType:=" , "FaceCenter",

"UParam:=" , 0,

"VParam:=" , 0,

"XPosition:=" , "0",

"YPosition:=" , "0",

"ZPosition:=" , "0"

],

"MoveToEnd:=" , False,

"FaceID:=" , 46,

["NAME:AxisPosn",

"IsAttachedToEntity:=" , True,

"EntityID:=" , 46,

"FacetedBodyTriangleIndex:=", -1,

"TriangleVertexIndex:=" , -1,

"PositionType:=" , "OnFace",

"UParam:=" , 0.487129134674319,

"VParam:=" , 0.308528523557527,

"XPosition:=" , "1292.27748080459mm",

"YPosition:=" , "-814.882885865484mm",

"ZPosition:=" , "0mm"

],

"WhichAxis:=" , "X",

"ZRotationAngle:=" , "0deg",

"XOffset:=" , "0mm",

"YOffset:=" , "0mm",

"AutoAxis:=" , False

],

["NAME:Attributes",

"Name:=" , "FaceCS1",

"PartName:=" , "Rectangle1"

])