Share

AcAxIntersectWith

C++

HRESULT AXAUTOEXP AcAxIntersectWith(
    const AcDbObjectId& objId, 
    LPDISPATCH pEntity, 
    AcExtendOption option, 
    VARIANT* intPoints
);

File

axboiler.h

Description

Gets all the points of intersection between the object identified by objId and the object represented by the IDispatch*pEntity. Possible values for the enum AcExtendOption are:

acExtendNone 0
acExtendThisEntity 1
acExtendOtherEntity 2
acExtendBoth 3

Returns HRESULT. The macros SUCCEEDED() and FAILED() can be used to determine whether the function succeeded. The return value should be forwarded to the COM client; nothing else needs to be done. The function cleans up after itself in case of an error and also sets up the Error Info object that can be queried from the COM client to get specific information about what caused any given failure.

Parameters

Parameters Description
objId Input object ID for which to check intersections
pEntity Input IDispatch* of object to check intersections with
option Input enumerated type indicating whether to extend entities
intPoints Pointer to VARIANT that will be populated with a SAFEARRAY of doubles (VT_R8)

Was this information helpful?