跳到主要内容

IDP.Kada.Detection.spatialProximityDetectionAsync() function

对传入的模型(支持:装配体/装配单体/定制模型/组合/块/混组)进行相近连接检测 注意:仅支持办公模式内

Signature:

function spatialProximityDetectionAsync(elementIds?: IDPCommon.DB.Types.ElementId[]): Promise<DetectionResult>;

Links: function spatialProximityDetectionAsync(elementIds?: IDPCommon.DB.Types.ElementId[]): Promise<DetectionResult>;

Parameters

Parameter

Type

Description

elementIds

IDPCommon.DB.Types.ElementId[]

(Optional) 传入要检测的模型Id数组,不传则检测场景中所有模型

Returns:

Promise<DetectionResult>

返回检测结果,结果中的成功/失败/未处理会和传入值一一对应 注意:如果组合/块/混组内存在一个没有通过检测,整个组合/块/混组认为检测失败