API Help
Eplan.EplApi.HEServices Namespace / Placement3DService Class / CheckIfPlacementsCollide Method
First of 3d placements used to check collision. Can't be null.
Second of 3d placements used to check collision. Can't be null.
Use mounting clearances for checking collisions.
If true, collisions which are allowed are not reported.

In This Topic
    CheckIfPlacementsCollide Method
    In This Topic
    Checks whether two 3d objects collides each other.
    Syntax

    Parameters

    pPlacementA
    First of 3d placements used to check collision. Can't be null.
    pPlacementB
    Second of 3d placements used to check collision. Can't be null.
    bConsiderMountingClearance
    Use mounting clearances for checking collisions.
    bExcludeAllowedCollisions
    If true, collisions which are allowed are not reported.

    Return Value

    Returns true if a collision between two objects is found.
    Exceptions
    ExceptionDescription
    Thrown when necessary argument is null.
    Thrown in case of invalid arguments.
    The functionality is not available.
    Remarks

    Method checks whether two objects collides each other. This is done by checking if bounding boxes of these objects don't share common space and if they do then the check is done using their meshes.

    In some cases collisions between two objects are allowed. This happens due to inaccuracy of some meshes and is acceptable for example in case of a terminal on a rail. Parameter bExcludeAllowedCollisions helps to control whether such collisions should be reported or not.

    Many objects in layout space represents only logical instances without meshes. For example Cabinet or Plane are one of such objects. In this case, collision with these objects will not be reported.

    See Also