How to pass string between operators?

User: "Haoyang"
New Altair Community Member
Updated by Jocelyn
I am working on an extension where I will define a model in a string with some operator and then pass the model to a Python operator to parse the model. I noticed that I can only deliver IOObject through the output ports, how can I pass a string between ports? How can I pass a string from self-defined operators to a Python script operator as input?

Find more posts tagged with

Sort by:
1 - 2 of 21
    User: "CKönig"
    New Altair Community Member
    Accepted Answer
    Hi @Haoyang
    You can pass it as part of an ordinary example set, with one nominal attribute containing one example.
    User: "jwpfau"
    Altair Employee
    Accepted Answer
    Hi,

    what you could also try:

    - Generate the complete python code and pass it as a FileObject (for the scr port) or call the Execute Python operator from your code
    - Use Macros 

    Greetings,
    Jonas