新しい構造物をパイプ ネットワークの意味のある一部にするには、AeccStructure.ConnectToPipe メソッドを使用してその構造物をネットワーク内のパイプに接続するか、または AeccPipe.ConnectToStructure メソッドを使用してパイプをその構造物に接続する必要があります。 構造物がネットワークに接続されたら、ネットワーク パーツの読み込み専用コレクションである Connections プロパティを使用して、接続されているパイプを特定できます。 また、構造物の物理計測のすべてのタイプを設定および取得するためのメソッドとプロパティ、および構造物のカスタム説明用のユーザ定義プロパティのコレクションにアクセスするためのメソッドとプロパティも存在します。
' Given a pipe and a structure, join the second endpoint ' of the pipe to the structure. oStructure.ConnectToPipe oPipeNew, aeccPipeEnd ' Determine flow directions from all pipes connected ' to a structure. Dim i As Integer For i = 0 To oStructure.ConnectedPipesCount - 1 If (oStructure.IsConnectedPipeFlowingIn(i) = True) Then Debug.Print "Pipe "; i; " flows into structure" Else Debug.Print "Pipe "; i; " does not flow into structure" End If Next i