You are currently reviewing an older revision of this page.
Currently, sort code values for supports are not automatically written to database.
Please follow the steps below to accomplish the same.
1. Go to C:\Program Files (x86)\Bentley\Plant V8i\Modules\Base\common and open Pipedata.ebs
2. Find the function below
Sub at_Support_Data () Dim compID As At_ComponentID Dim status As Integer status = at_Component_getCurrID(compID) End Sub
3. Change it to look like this:
Sub at_Support_Data ()
Dim compID As At_ComponentID
Dim status As Integer
Dim sortcode As Integer
status = at_Component_getCurrID(compID)
sortcode = 100
status = at_DbExt_put (sortcode, AT_DB_TABLE_PIPING, AT_CURRENT_DOCUMENT, compID, "SORT_CODE")
End Sub
4. Save and close the file. Now all supports are automatically assigned a sort_code value of 100.