Operator.GetPort2
 
 
 

Operator.GetPort2 operator

Introduced

v6.0

Description

Returns the specified Port object for the operator. PortGroup and PortGroupInstance (index) arguments are ignored for scripted operators created using the scripted operator editor (also known as runtime scripted operators). For all other types of operators if PortGroup and PortGroupInstance are not specified, the first port found with the given Name is returned.

Note: This method could return an invalid object in python, use Operator.GetPort3 instead.

C# Syntax

Port Operator.GetPort2( String in_bstrPort, String in_bstrPortGroup, Int32 in_lPortGroupInstance );

Scripting Syntax

Operator.GetPort2( Name, [PortGroup], [PortGroupInstance] );

Parameters

Parameter Type Description
Name String Name of a port
PortGroup String Name of a port group.

Default Value: "" (empty string)

PortGroupInstance Long The port group instance index. This argument does not apply to runtime operators. If you don't provide a port group this argument is ignored.

Default Value: 0

See Also

Operator.Port