Skip to content

Create user-defined coordinate system #276

Closed Answered by OndraMichal
DannieCW asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @DannieCW,
create new coordinate system with help of set_coordinate_system function feeding definition of coordinate_system object into it. And than set it to Load. Is that what you are asking for?

# Create new coordinate system
clientObject = model.clientModel.factory.create('ns0:coordinate_system')
clientObject.no = 2
clientObject.type = 'TYPE_2_POINTS_AND_ANGLE'
clientObject.origin_coordinate_x = 0
clientObject.origin_coordinate_y = 1
clientObject.origin_coordinate_z = 1
clientObject.uw_plane_angle = 0.17453292519943295
...
model.clientModel.service.set_coordinate_system(clientObject)

Pull request for Coordinate System Class was just created (here).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dogukankaratas
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants