Jozi68 发表于 2022-7-6 12:18:20

VB.net: Trim a line

I have the ObjectID of a circle.I have the objectID of a line.The line ends at the centre of the circle.The starting point is somewhere outside the circle.I need to trim the line on the circle, i.e. delete the part that is inside the circle.
I need .net code for this.Any ideas will be appreciated.

SEANT 发表于 2022-7-6 13:39:32

That should be a perfect situation for the Entity.IntersectWith Method.Once the intersection is found, change the Line.EndPoint to the returned intersection point.
页: [1]
查看完整版本: VB.net: Trim a line