Main Content

removeAllCrossPortConstraints

Class: Simulink.Mask
Namespace: Simulink

Remove all cross-port constraints from mask object

Since R2023a

Syntax

maskobj.removeAllCrossPortConstraints()

Description

maskobj.removeAllCrossPortConstraints() removes all cross-port constraints from the mask object.

Examples

expand all

amaskobj = Simulink.Mask.get('mymodel/Subsystem');
amaskobj.removeAllCrossPortConstraints();
amaskobj.getCrossPortConstraint('CheckDimensions');
Constraints 'CheckDimensions' is not available in the block 'mymodel/Subsystem'.

Version History

Introduced in R2023a