Hi Jan,
I am looking for a solution to change/set the direction of multiple ports. E.g. I select 10 Ports and want all to be "inputs".
thanks,
Sven
I think utilizing a finder on the selection should work here best:
Global.getFinder(selection).findByType(Metamodel.sysml.SysMLFlowPortUsage).forEach(function (p) { p.direction = Metamodel.sysml.SysMLFlowDirection.IN;});
Happy Scripting
jan