Trim a line2d in a part skecth via visual basic

Experimenter
Experimenter

Hello,

I try to trim a line2d in a sketch of a part with Visual Basic with the function :

Sub Trim(x As Double, y As Double, CutObj1 As Object, Optional CutObj2 As Object = Nothing)

 but the trim operation is not done on the good direction.

 

 

Could someones explain me what are really the X and Y parameters?

 

Thank you.

1 REPLY

Re: Trim a line2d in a part skecth via visual basic

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom
Hi,
the line and the cut object define an intersection point on the line. You have to decide which end of the line should be trimmed.
Use the point x,y to define the end. The point only needs to be near to the desired end of the line.

Regards
regards

JB
VS2015, SE ST10