IntersectWith Method |
Gets the points where one object intersects another object in the drawing.
See Also | Example
Signature
RetVal = object.IntersectWith(IntersectObject, ExtendOption)
Object
AecBlockRef,
AecCamera,
AecCellLayoutTool,
AecClipVol,
AecClipVolRes,
AecEntity,
AecEntRef,
AecGeo,
AecGridAssembly,
AecLayoutCurve,
AecLayoutGrid2D,
AecLayoutGrid3D,
AecLayoutTool,
AecMaskBlockRef,
AecMassElement,
AecMassGroup,
AecMVBlockRef,
AecPolygon,
AecSlice,
AecVolumeLayoutTool
The object or objects this method applies to.
IntersectObject
Object, input-only;
This can be any drawing entity object.
ExtendOption
AcExtendOption enum; input-only
This option specifies if one or the other, both, or none of the entities are to be extended in order to attempt an intersection.
acExtendNone |
Does not extend either object. |
acExtendThisEntity |
Extends the base object. |
acExtendOtherEntity |
Extends the object passed as an argument. |
acExtendBoth |
Extends both objects. |
RetVal
Variant (array of doubles)
The array of points where one object intersects another object in the drawing.
Remarks
If the two objects do not intersect, no data is returned. You can request the point of intersection that would occur if one or both of the objects were extended to meet the other. For example, suppose a drawing contains the three lines shown in the illustration below. Line1 is the base object from which this method was called and line3 is the object passed as a parameter. If the ExtendOption passed is acExtendThisEntity, point A is returned as the point where line1 would intersect line3 if line1 were extended. If the ExtendOption is acExtendOtherEntity, no data is returned because even if line3 were extended, it would not intersect line1.
If the intersection type is acExtendBothEntities and line2 is passed as the parameter entity, point B is returned. If the ExtendOption is acExtendNone and line2 is the parameter entity, no data is returned.
|
|
line1 |