Applies To Product(s): AutoPLANT Piping/Modeler Version(s): AutoPLANT XM,V8i Environment: Windows 7/XP 32/64 bit Area: General Subarea: Original Author: Dinesh Solanki, Bentley Technical Support Group 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. Note: Changing the Pipedata.ebs from the newtwork location will change affect All the projects. To make the customization Project specific copy the modified file to your project directory under ..\%PROJECT_ROOT%\%PROJECT_NAME\Config\modules\
↧