Skip to main content
18-Opal
August 17, 2018
Solved

How do I create points using curves?

  • August 17, 2018
  • 1 reply
  • 2584 views

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

Best answer by syalagudri

Go through UgGeneralPointCreate.c

 

and provide the reference as per the required Datum point.

1 reply

14-Alexandrite
August 17, 2018

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

CHASEONHO18-OpalAuthor
18-Opal
August 17, 2018

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.

14-Alexandrite
August 17, 2018

Go through UgGeneralPointCreate.c

 

and provide the reference as per the required Datum point.