cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

Can I create a coordinate system in the toolkit using points and planes?

CHASEONHO
18-Opal

Can I create a coordinate system in the toolkit using points and planes?

I tried to create a coordinate system by looking at UgGeneralCsysCreate.c.
Origin Reference uses PRO_VALUE_TYPE_SELECTION as its data.
PRO_VALUE_TYPE_SELECTION selects a coordinate system and refers to the direction and offset of that coordinate system.
PRO_CSYS_ORIENTMOVE_MOVE_OPT_ROT_X and PRO_CSYS_ORIENTMOVE_MOVE_OPT_TRAN_X can be used to set the orientation or offset of the referenced coordinate system.


My question starts here.
Can I create a coordinate system by selecting two datum points and planes without selecting a coordinate system?
For example, The direction from the first datum point to the second datum point is the Z axis.
The opposite of the direction from the point to the plane is the Y axis.

 

The tasks that are done at Creo are as follows and I need to implement them in a toolkit.

image_7.png

1. The first selected datum point becomes the circular reference of the coordinate system.

image_8.png

2. The Z axis direction is set with reference to the second selected datum point.

image_10.png

3. The Y axis is the direction you flipped over to for the last selected plane.

 

Is it possible?
If is possible, how do I modify the options in the code in the user guide?

If not, are there any other good ways?

1 ACCEPTED SOLUTION

Accepted Solutions

Success.
I attach the source code here.
A code that creates a coordinate system with two points and one plane.
You used the search keyword PRO_E_CSYS_ORIENTSELAXIS1_OPT and referenced CS221868.
Have a nice day

 

Warm Regards,

SeonHo

View solution in original post

2 REPLIES 2

Creation of coordinate system succeeded using PRO_E_CSYS_ORIENTSELAXIS1_REF
However, the axis marking is not what I want.
The first reference is X, and the second reference is Z.
How can I modify the initial reference from X to Z?

Success.
I attach the source code here.
A code that creates a coordinate system with two points and one plane.
You used the search keyword PRO_E_CSYS_ORIENTSELAXIS1_OPT and referenced CS221868.
Have a nice day

 

Warm Regards,

SeonHo

Top Tags