Reply
Solved! Go to solution

Trim a line2d in a part skecth via visual basic

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
Solution
Solution
Accepted by topic author JMD53
‎03-03-2016 05:17 PM

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

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