Skip to main content

system.kanoa.tooling.setBlockedPositions(assetId, positionNumbers)

Called by the assetTooling Inputs/Blocked Positions tag: the asset's output tool ends up with exactly these position numbers blocked (reason 'other') and its other output positions unblocked, each change made like setPositionBlocked (the standard rate doesn't change, so no new run starts).


Parameters​

assetId Integer: The asset (the tag's Configuration/assetId)

positionNumbers Object: A list of position numbers, or text such as "1, 3"; None or blank = none blocked


Returns​

(positionsChanged, message)


Example​

assetId = 1
positionNumbers = 'positionNumbers'
positionsChanged, message = system.kanoa.tooling.setBlockedPositions(assetId, positionNumbers)