question

Khalid Kayal avatar image
0 Likes"
Khalid Kayal asked Khalid Kayal commented

How to add centerObjects with flexscript

I was wondering if there's a way to write a flexscript that add centerObjects to an object ?

FlexSim 17.1.1
flexscriptcenterobjects
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Matthew Gillespie avatar image
2 Likes"
Matthew Gillespie answered Khalid Kayal commented

Use the contextdragconnection command with "S" as the pressed key:

contextdragconnection(model().find("Processor1"), model().find("Operator1"), "S");
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Khalid Kayal avatar image Khalid Kayal commented ·

Thank you, it worked as intended.

0 Likes 0 ·