InputsCsharpGenerator#
- class ansys.dpf.core.operators.utility.csharp_generator.InputsCsharpGenerator(op: ansys.dpf.core.dpf_operator.Operator)#
Bases:
ansys.dpf.core.inputs._InputsIntermediate class used to connect user inputs to csharp_generator operator.
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.csharp_generator() >>> my_dll_source_path = str() >>> op.inputs.dll_source_path.connect(my_dll_source_path) >>> my_output_path = str() >>> op.inputs.output_path.connect(my_output_path) >>> my_load_symbol = str() >>> op.inputs.load_symbol.connect(my_load_symbol) >>> my_library_key = str() >>> op.inputs.library_key.connect(my_library_key)
Overview#
Connect any input (an entity or an operator output) to any input pin of this operator. |
Allows to connect dll_source_path input to the operator. |
|
Allows to connect output_path input to the operator. |
|
Allows to connect load_symbol input to the operator. |
|
Allows to connect library_key input to the operator. |
Import detail#
from ansys.dpf.core.operators.utility.csharp_generator import InputsCsharpGenerator
Property detail#
- property InputsCsharpGenerator.dll_source_path: ansys.dpf.core.inputs.Input[str]#
Allows to connect dll_source_path input to the operator.
Path to the plugin DLL to load.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.csharp_generator() >>> op.inputs.dll_source_path.connect(my_dll_source_path) >>> # or >>> op.inputs.dll_source_path(my_dll_source_path)
- property InputsCsharpGenerator.output_path: ansys.dpf.core.inputs.Input[str]#
Allows to connect output_path input to the operator.
Path where the .cs wrapper file will be written.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.csharp_generator() >>> op.inputs.output_path.connect(my_output_path) >>> # or >>> op.inputs.output_path(my_output_path)
- property InputsCsharpGenerator.load_symbol: ansys.dpf.core.inputs.Input[str]#
Allows to connect load_symbol input to the operator.
Symbol name used to load operators from the DLL. Defaults to “LoadOperators”.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.csharp_generator() >>> op.inputs.load_symbol.connect(my_load_symbol) >>> # or >>> op.inputs.load_symbol(my_load_symbol)
- property InputsCsharpGenerator.library_key: ansys.dpf.core.inputs.Input[str]#
Allows to connect library_key input to the operator.
Key used to identify the plugin library when loading.
- Returns:
An Input instance for this pin.
- Return type:
input
Examples
>>> from ansys.dpf import core as dpf >>> op = dpf.operators.utility.csharp_generator() >>> op.inputs.library_key.connect(my_library_key) >>> # or >>> op.inputs.library_key(my_library_key)
Method detail#
- InputsCsharpGenerator.__str__()#
- InputsCsharpGenerator.connect(inpt)#
Connect any input (an entity or an operator output) to any input pin of this operator.
Searches for the input type corresponding to the output.
Deprecated since version Deprecated: in favor of explicit output-to-input connections.
- InputsCsharpGenerator.__call__(inpt)#