Main Content
removeAllPortConstraints
Class: Simulink.Mask
Namespace: Simulink
Remove all port constraints on masked block
Since R2022a
Syntax
aMaskObj.removeAllPortConstraints
Description
aMaskObj.removeAllPortConstraints
removes all the port
constraints from the masked block.
Examples
amaskObj=Simulink.Mask.get(model1/subsystem)
amaskObj.removeAllPortConstraints
amaskObj.getPortConstraint('pc1')
Constraints 'pc1' is not available in the block 'model1/Subsystem'.
Version History
Introduced in R2022a