Hi,
within the function AcDbEntity::intersectWith you do have the parameter for extending elements. So you can compare each element to each other, extending the entities set to on and you just have to collect the intersection points.
From the help:
The intType is used to determine how to deal with extending the two entities in order to calculate intersections. The possible AcDb::Intersect values are:
AcDb::kOnBothOperands Do not extend either entity. This results in only calculating intersections where the two entitys' geometry actually intersect
AcDb::kExtendThis Extend this entity (if necessary) when calculating intersections, but do not extend the pEnt entity.
AcDb::kExtendArg Extend the pEnt entity (if necessary) when calculating intersections, but do not extend this entity.
AcDb::kExtendBoth Extend both the pEnt entity and this entity (if necessary) when calculating intersections
I hope that answers your questions, if not, please be more specific of what your question is, where you do have a problem in your codeing.
HTH, - alfred -
------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ...
blog.ish-solutions.at ...
LinkedIn ...
CDay 2026------------------------------------------------------------------------------------
(not an Autodesk consultant)