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

Community email notifications are disrupted. While we are working to resolve, please check on your favorite boards regularly to keep up with your conversations and new topics.

How do I create points using curves?

CHASEONHO
18-Opal

How do I create points using curves?

The user guide and example code describe the coordinate system.
How do I create a point with a real number offset from the end curve with reference to the curve?


Please help me.

image_1.png

I need to implement the red area shown in the figure as toolkit code.

 

Thanks

 

Warm Regards,

SeonHo

1 ACCEPTED SOLUTION

Accepted Solutions

Go through UgGeneralPointCreate.c

 

and provide the reference as per the required Datum point.

View solution in original post

6 REPLIES 6

Go through the "tkuse.pdf" document. You can see the following details:

 

Example 6: Point At Center of Curve or Surface
To create a datum point at the center of an arc or circle entity, use the following
constraints.
Placement Constraint
Element
Reference Element Valid Value
PRO_E_DPOINT_PLA_
CONSTRAINT (Constraint 1)
PRO_E_DPOINT_PLA_
CONSTR_REF
Curve, edge, or surface (Sphere)
PRO_E_DPOINT_PLA_
CONSTR_TYPE
PRO_DTMPNT_CONSTR_TYPE_
CENTER
PRO_E_DPOINT_PLA_
CONSTR_VAL
Not applicable

I do not know the document-only report.
I need to be at the offset of the real number, not the center.


UgFieldPointCreate.c We also looked at it.
However, the point created by referring to UgFieldPointCreate.c does not have an edit value.

image_2.png

If you have experience creating points for end curves, please share.

 

PS. The PTC Technical Support Officer went on vacation and posted to the community.
I will create a case when a technical support representative returns to his / her vacation.

Go through UgGeneralPointCreate.c

 

and provide the reference as per the required Datum point.

 

I added curve to ProSelect in the file(UgGeneralPointCreate.c) and tried to run it.
The result will fail.
You want to create a point that has a certain offset from the end point of the curve by selecting the curve.

I am also looking at the example files in the guide and the creo installation location.
If you are dealing good with the toolkit, please share me the knowledge that solve my problem.

thanks

My code and the results of the execution.
Can you see what is wrong?

image_4.png

Problems caused by using only PRO_E_DPOINT_DIM_CONSTR_TYPE.
PRO_E_DPOINT_PLA_CONSTR_TYPE was also used to create the tree, so points were created correctly on the curve.

thanks

 

Warm Regards,

SeonHo

Top Tags