Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

AFElement.CreateDefaultPorts Method

  • Last UpdatedNov 18, 2025
  • 2 minute read
AFElement.CreateDefaultPorts Method
This method can be used to create the default connection ports based upon the element's type.

Namespace:  OSIsoft.AF.Asset
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public void CreateDefaultPorts()
Public Sub CreateDefaultPorts

Dim instance As AFElement

instance.CreateDefaultPorts()
public:
void CreateDefaultPorts()
member CreateDefaultPorts : unit -> unit 

Remarks

This method can only be called for elements which are not created from a template. This table lists the ports that are created for each of the different element types. If a type is not listed, then there will not be any ports created when this method is called.
AFElementTypePort NameAFPortTypeAllowedElementTypes
Node
    InInputFlow, Transfer
OutOutputFlow, Transfer
Measurement
 MeasureUndirectedFlow
Flow
 MeasurementUndirectedMeasurement
InInputBoundary, Node
OutOutputBoundary, Node
Transfer
 InInputBoundary, Node
OutOutputBoundary, Node

Version Information

AFSDK


See Also

In This Topic
Related Links
TitleResults for “How to create a CRG?”Also Available in