EditObjectCS

Edits an existing object coordinate system. See: CreateObjectCS.

UI Access

Modeler > Coordinate System > Edit.

Parameters
Name Type Description

<Parameters>

Array

Structured array. 

Array("NAME:ObjectCSParameters",

<OriginArray>

"MoveToEnd:=" , <boolean>,

"ReverseXAxis:=" , <boolean>,

"ReverseYAxis:=" , <boolean>,

<xAxisArray / xAxisPosArray>

<yAxisArray / yAxisPosArray>)

Note: xAxisArray and xAxisPosArray differ. Use xAxisArray for absolute position and xAxisPosArray for relative position. Do the same for yAxisArray and yAxisPosArray.

     <OriginArray> Array Structured array.

Array("NAME:Origin",

"IsAttachedToEntity:=" , <boolean>,

"EntityID:=" , <integer>,

"FacetedBodyTriangleIndex:=", <integer>,

"TriangleVertexIndex:=" , <integer>,

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

"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. If True, provide UParam and VParam. If False, provide XPosition, YPosition, and ZPosition to provide fixed position. Pass "0" for unused parameters.

     <xAxisArray> Array Structured array for absolute position:

Array("NAME:xAxis",

"DirectionType:=" , "AbsoluteDirection",

"EdgeID:=" , <integer>,

"FaceID:=" , <integer>,

"xDirection:=" , <string>,

"yDirection:=" , <string>,

"zDirection:=" , <string>,

"UParam:=" , <float>,

"VParam:=" , <float>)

     <xAxisPosArray> Array Structured array for relative position:

Array("NAME:xAxisPos",

"IsAttachedToEntity:=" , <boolean>,

"EntityID:=" , <integer>,

"FacetedBodyTriangleIndex:=", <integer>,

"TriangleVertexIndex:=" , <integer>,

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

"UParam:=" , <float>,

"VParam:=" , <float>,

"XPosition:=" , <string>,

"YPosition:=" , <string>,

"ZPosition:=" , <string>)

     <yAxisArray> Array Structured array for absolute position:

Array("NAME:yAxis",

"DirectionType:=" , "AbsoluteDirection",

"EdgeID:=" , <integer>,

"FaceID:=" , <integer>,

"xDirection:=" , <string>,

"yDirection:=" , <string>,

"zDirection:=" , <string>,

"UParam:=" , <float>,

"VParam:=" , <float>)

     <yAxisPosArray> Array Structured array for relative position:

Array("NAME:yAxisPos",

"IsAttachedToEntity:=" , <boolean>,

"EntityID:=" , <integer>,

"FacetedBodyTriangleIndex:=", <integer>,

"TriangleVertexIndex:=" , <integer>,

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

"UParam:=" , <float>,

"VParam:=" , <float>,

"XPosition:=" , <string>,

"YPosition:=" , <string>,

"ZPosition:=" , <string>)

<AttributesArray> Array Structured array. See: AttributesArray. Use to select the coordinate system to edit.
Return Value None.

Python Syntax

EditObjectCS(<Parameters>,<AttributesArray>)

Python Example

oEditor.EditObjectCS(

["NAME:ObjectCSParameters",

["NAME:Origin",

"IsAttachedToEntity:=" , True,

"EntityID:=" , 59,

"FacetedBodyTriangleIndex:=", -1,

"TriangleVertexIndex:=" , -1,

"PositionType:=" , "OnVertex",

"UParam:=" , 0,

"VParam:=" , 0,

"XPosition:=" , "0",

"YPosition:=" , "0",

"ZPosition:=" , "0"

],

"MoveToEnd:=" , False,

"ReverseXAxis:=" , False,

"ReverseYAxis:=" , False,

["NAME:xAxis",

"DirectionType:=" , "AbsoluteDirection",

"EdgeID:=" , -1,

"FaceID:=" , -1,

"xDirection:=" , "1",

"yDirection:=" , "0",

"zDirection:=" , "0",

"UParam:=" , 0,

"VParam:=" , 0

],

["NAME:yAxis",

"DirectionType:=" , "AbsoluteDirection",

"EdgeID:=" , -1,

"FaceID:=" , -1,

"xDirection:=" , "0",

"yDirection:=" , "1",

"zDirection:=" , "0",

"UParam:=" , 0,

"VParam:=" , 0

]

],

["NAME:Attributes",

"Name:=" , "ObjectCS1",

"PartName:=" , "Box2"

])