walter
November 29, 2018, 1:49pm
#21
If you don’t want it to be seen, you have several choices:
set Shape.fill to null and Shape.strokeWidth to 0
set its opacity property to 0.0
set its visible property to false, although this might change the link connection behavior
Since you don’t really need this Circle Shape to be the default port, I would remove the portId: ""
assignment.
Tany
November 29, 2018, 2:00pm
#22
OK,
i tried :
var partInGroup = part.findObject(“someName”);
delete partInGroup.portId
Didn’t help…
So i did
partInGroup.portId=“dddd”;
Bingo !!!
walter
November 29, 2018, 2:13pm
#23
No, I was suggesting that you change your template not to set portId at all.
Tany
November 29, 2018, 2:16pm
#24
But i need this type of connection (links behind nodes) for the network layout.
walter
November 29, 2018, 2:21pm
#25
In general one should not be modifying the portId of an element dynamically. I suppose in this situation it might happen to work.
Tany
November 29, 2018, 2:25pm
#26
I see,
I will try to avoid that in future use cases.
Nevertheless, it is for me the “cheapest” way to use the group template for tree layout and network layout.
Thanks for the support.