The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
[SOLVED]connect process inputs to an operator programmatically
siamak_want
Member Posts: 98 Contributor II
Hi guys,
I need to connect the input ports of my "Main process" to one of the inner operators in my process programmatically. I mean, I don't want to save the process as xml and I want to connect the input as follows:
Thanks
I need to connect the input ports of my "Main process" to one of the inner operators in my process programmatically. I mean, I don't want to save the process as xml and I want to connect the input as follows:
The above code works fine, because every "output port" has the method "connectTO()". But in my case, In fact, I need to connect 2 input ports together. i.e. the input port of my main process to the input port of one of my inner operators in the main process. So I don't have any "connectTo" method. Any idea?
ExtractClusterPrototypesOP.getOutputPorts().getPortByIndex(0).connectTo(generateIDOP.getInputPorts().getPortByIndex(0));
Thanks
Tagged:
0
Answers
have a look here: click
Regards,
Marco
Your method worked nice.